@hero-design/rn 8.3.3 → 8.3.4
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/.turbo/turbo-build.log +2 -2
- package/es/index.js +52 -48
- package/lib/index.js +52 -48
- package/package.json +5 -5
- package/src/components/Toolbar/ToolbarItem.tsx +2 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +12 -6
- package/src/components/Toolbar/index.tsx +4 -3
- package/src/components/Typography/Text/StyledText.tsx +2 -1
- package/src/components/Typography/Text/index.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -0
- package/src/theme/components/typography.ts +1 -0
- package/types/components/Toolbar/index.d.ts +3 -2
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/theme/components/typography.d.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[35m@hero-design/rn:build[0m: cache hit, replaying output [
|
|
1
|
+
[35m@hero-design/rn:build[0m: cache hit, replaying output [2m4e613a0c9a2f2d73[0m
|
|
2
2
|
[35m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
3
|
[35m@hero-design/rn:build: [0m$ rollup -c
|
|
4
4
|
[35m@hero-design/rn:build: [0m[36m
|
|
5
5
|
[35m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
6
|
[35m@hero-design/rn:build: [0m[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
7
7
|
[35m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
-
[35m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
8
|
+
[35m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m21.8s[22m[39m
|
|
9
9
|
[35m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
package/es/index.js
CHANGED
|
@@ -2665,7 +2665,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2665
2665
|
danger: theme.colors.onErrorSurface,
|
|
2666
2666
|
warning: theme.colors.onWarningSurface,
|
|
2667
2667
|
success: theme.colors.onSuccessSurface,
|
|
2668
|
-
inverted: theme.colors.onDarkGlobalSurface
|
|
2668
|
+
inverted: theme.colors.onDarkGlobalSurface,
|
|
2669
|
+
archived: theme.colors.onArchivedSurface
|
|
2669
2670
|
};
|
|
2670
2671
|
var fontSizes = {
|
|
2671
2672
|
small: theme.fontSizes.small,
|
|
@@ -5746,7 +5747,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
5746
5747
|
});
|
|
5747
5748
|
});
|
|
5748
5749
|
|
|
5749
|
-
var _excluded$
|
|
5750
|
+
var _excluded$m = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
5750
5751
|
var Text = function Text(_ref) {
|
|
5751
5752
|
var children = _ref.children,
|
|
5752
5753
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5757,7 +5758,7 @@ var Text = function Text(_ref) {
|
|
|
5757
5758
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5758
5759
|
_ref$typeface = _ref.typeface,
|
|
5759
5760
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
5760
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
5761
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
5761
5762
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
5762
5763
|
themeFontSize: fontSize,
|
|
5763
5764
|
themeFontWeight: fontWeight,
|
|
@@ -6236,10 +6237,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
6236
6237
|
};
|
|
6237
6238
|
});
|
|
6238
6239
|
|
|
6239
|
-
var _excluded$
|
|
6240
|
+
var _excluded$l = ["style"];
|
|
6240
6241
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
6241
6242
|
var style = _ref.style,
|
|
6242
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
6243
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
6243
6244
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
6244
6245
|
useEffect(function () {
|
|
6245
6246
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -6345,7 +6346,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
6345
6346
|
}, content));
|
|
6346
6347
|
};
|
|
6347
6348
|
|
|
6348
|
-
var _excluded$
|
|
6349
|
+
var _excluded$k = ["key"];
|
|
6349
6350
|
var Accordion = function Accordion(_ref) {
|
|
6350
6351
|
var items = _ref.items,
|
|
6351
6352
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -6366,7 +6367,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
6366
6367
|
testID: testID
|
|
6367
6368
|
}, items.map(function (_ref2, index) {
|
|
6368
6369
|
var key = _ref2.key,
|
|
6369
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6370
|
+
props = _objectWithoutProperties(_ref2, _excluded$k);
|
|
6370
6371
|
var open = _activeItemKey === key;
|
|
6371
6372
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
6372
6373
|
key: key
|
|
@@ -6748,7 +6749,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
6748
6749
|
};
|
|
6749
6750
|
});
|
|
6750
6751
|
|
|
6751
|
-
var _excluded$
|
|
6752
|
+
var _excluded$j = ["children", "visible", "intent", "style", "testID"];
|
|
6752
6753
|
var Status = function Status(_ref) {
|
|
6753
6754
|
var children = _ref.children,
|
|
6754
6755
|
_ref$visible = _ref.visible,
|
|
@@ -6757,7 +6758,7 @@ var Status = function Status(_ref) {
|
|
|
6757
6758
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6758
6759
|
style = _ref.style,
|
|
6759
6760
|
testID = _ref.testID,
|
|
6760
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6761
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
6761
6762
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
6762
6763
|
opacity = _React$useRef.current;
|
|
6763
6764
|
var isFirstRendering = React.useRef(true);
|
|
@@ -6790,7 +6791,7 @@ var Status = function Status(_ref) {
|
|
|
6790
6791
|
}));
|
|
6791
6792
|
};
|
|
6792
6793
|
|
|
6793
|
-
var _excluded$
|
|
6794
|
+
var _excluded$i = ["content", "visible", "max", "intent", "style", "testID"];
|
|
6794
6795
|
var DEFAULT_MAX_NUMBER = 99;
|
|
6795
6796
|
var getPaddingState = function getPaddingState(content) {
|
|
6796
6797
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -6805,7 +6806,7 @@ var Badge = function Badge(_ref) {
|
|
|
6805
6806
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6806
6807
|
style = _ref.style,
|
|
6807
6808
|
testID = _ref.testID,
|
|
6808
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6809
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
6809
6810
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
6810
6811
|
opacity = _React$useRef.current;
|
|
6811
6812
|
var isFirstRendering = React.useRef(true);
|
|
@@ -6909,7 +6910,7 @@ function omit(keys, obj) {
|
|
|
6909
6910
|
return result;
|
|
6910
6911
|
}
|
|
6911
6912
|
|
|
6912
|
-
var _excluded$
|
|
6913
|
+
var _excluded$h = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
6913
6914
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
6914
6915
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
6915
6916
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -6920,7 +6921,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
6920
6921
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
6921
6922
|
selectedTabKey = _ref.selectedTabKey,
|
|
6922
6923
|
tabs = _ref.tabs,
|
|
6923
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6924
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
6924
6925
|
var insets = useSafeAreaInsets();
|
|
6925
6926
|
/**
|
|
6926
6927
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7007,13 +7008,13 @@ var StyledDivider = index$a(View)(function (_ref) {
|
|
|
7007
7008
|
}, horizontalMargin), verticalMargin);
|
|
7008
7009
|
});
|
|
7009
7010
|
|
|
7010
|
-
var _excluded$
|
|
7011
|
+
var _excluded$g = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7011
7012
|
var Divider = function Divider(_ref) {
|
|
7012
7013
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7013
7014
|
marginVertical = _ref.marginVertical,
|
|
7014
7015
|
style = _ref.style,
|
|
7015
7016
|
testID = _ref.testID,
|
|
7016
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7017
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
7017
7018
|
return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7018
7019
|
themeMarginHorizontal: marginHorizontal,
|
|
7019
7020
|
themeMarginVertical: marginVertical,
|
|
@@ -7143,7 +7144,7 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
|
|
|
7143
7144
|
}, themeStyling());
|
|
7144
7145
|
});
|
|
7145
7146
|
|
|
7146
|
-
var _excluded$
|
|
7147
|
+
var _excluded$f = ["count", "size", "testID", "themeVariant"];
|
|
7147
7148
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7148
7149
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7149
7150
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7175,7 +7176,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7175
7176
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7176
7177
|
testID = _ref2.testID,
|
|
7177
7178
|
themeVariant = _ref2.themeVariant,
|
|
7178
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7179
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
|
|
7179
7180
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
7180
7181
|
useEffect(function () {
|
|
7181
7182
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -7571,11 +7572,11 @@ var Header = function Header(_ref) {
|
|
|
7571
7572
|
})) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
7572
7573
|
};
|
|
7573
7574
|
|
|
7574
|
-
var _excluded$
|
|
7575
|
+
var _excluded$e = ["scrollEventThrottle"];
|
|
7575
7576
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
7576
7577
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
7577
7578
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
7578
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7579
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
7579
7580
|
var _useContext = useContext(BottomSheetContext),
|
|
7580
7581
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
7581
7582
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -7890,7 +7891,7 @@ var borderWidths = {
|
|
|
7890
7891
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
7891
7892
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
7892
7893
|
|
|
7893
|
-
var _excluded$
|
|
7894
|
+
var _excluded$d = ["theme"];
|
|
7894
7895
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
7895
7896
|
var propConfig = config[key];
|
|
7896
7897
|
var propValue = props[key];
|
|
@@ -7917,18 +7918,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
7917
7918
|
var configKeys = Object.keys(config);
|
|
7918
7919
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
7919
7920
|
var theme = _ref5.theme,
|
|
7920
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
7921
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$d);
|
|
7921
7922
|
var styleProps = pick(configKeys, otherProps);
|
|
7922
7923
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
7923
7924
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
7924
7925
|
});
|
|
7925
7926
|
|
|
7926
|
-
var _excluded$
|
|
7927
|
+
var _excluded$c = ["children", "style", "testID"];
|
|
7927
7928
|
var Box = function Box(_ref) {
|
|
7928
7929
|
var children = _ref.children,
|
|
7929
7930
|
style = _ref.style,
|
|
7930
7931
|
testID = _ref.testID,
|
|
7931
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7932
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
7932
7933
|
return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
7933
7934
|
style: style,
|
|
7934
7935
|
testID: testID
|
|
@@ -10539,7 +10540,7 @@ var CarouselPaginator = function CarouselPaginator(_ref) {
|
|
|
10539
10540
|
}));
|
|
10540
10541
|
};
|
|
10541
10542
|
|
|
10542
|
-
var _excluded$
|
|
10543
|
+
var _excluded$b = ["rounded", "size", "testID", "style"];
|
|
10543
10544
|
var Image = function Image(_ref) {
|
|
10544
10545
|
var _ref$rounded = _ref.rounded,
|
|
10545
10546
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -10547,7 +10548,7 @@ var Image = function Image(_ref) {
|
|
|
10547
10548
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
10548
10549
|
testID = _ref.testID,
|
|
10549
10550
|
style = _ref.style,
|
|
10550
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10551
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
10551
10552
|
var theme = useTheme();
|
|
10552
10553
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
10553
10554
|
return /*#__PURE__*/React.createElement(Image$1, _extends$1({
|
|
@@ -10632,7 +10633,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
10632
10633
|
}, content, /*#__PURE__*/React.createElement(StyledCarouselHeading, null, heading), body ? /*#__PURE__*/React.createElement(Typography.Text, null, body) : null));
|
|
10633
10634
|
};
|
|
10634
10635
|
|
|
10635
|
-
var _excluded$
|
|
10636
|
+
var _excluded$a = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style"];
|
|
10636
10637
|
function useStateFromProp(initialValue) {
|
|
10637
10638
|
var _useState = useState(initialValue),
|
|
10638
10639
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10650,7 +10651,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
10650
10651
|
_ref$selectedItemInde = _ref.selectedItemIndex,
|
|
10651
10652
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
10652
10653
|
style = _ref.style,
|
|
10653
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10654
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
10654
10655
|
var carouselRef = useRef(null);
|
|
10655
10656
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
10656
10657
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
|
@@ -10750,12 +10751,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
10750
10751
|
};
|
|
10751
10752
|
});
|
|
10752
10753
|
|
|
10753
|
-
var _excluded$
|
|
10754
|
+
var _excluded$9 = ["intent", "children"];
|
|
10754
10755
|
var DataCard = function DataCard(_ref) {
|
|
10755
10756
|
var _ref$intent = _ref.intent,
|
|
10756
10757
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
10757
10758
|
children = _ref.children,
|
|
10758
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10759
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
10759
10760
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
10760
10761
|
themeIntent: intent,
|
|
10761
10762
|
testID: "data-card-indicator"
|
|
@@ -10773,11 +10774,11 @@ var StyledCard = index$a(View)(function (_ref) {
|
|
|
10773
10774
|
});
|
|
10774
10775
|
});
|
|
10775
10776
|
|
|
10776
|
-
var _excluded$
|
|
10777
|
+
var _excluded$8 = ["intent", "children"];
|
|
10777
10778
|
var Card = function Card(_ref) {
|
|
10778
10779
|
var intent = _ref.intent,
|
|
10779
10780
|
children = _ref.children,
|
|
10780
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10781
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
10781
10782
|
return /*#__PURE__*/React.createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
10782
10783
|
themeIntent: intent
|
|
10783
10784
|
}), children);
|
|
@@ -11011,7 +11012,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
11011
11012
|
};
|
|
11012
11013
|
});
|
|
11013
11014
|
|
|
11014
|
-
var _excluded$
|
|
11015
|
+
var _excluded$7 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11015
11016
|
var getVariant$1 = function getVariant(_ref) {
|
|
11016
11017
|
var disabled = _ref.disabled,
|
|
11017
11018
|
error = _ref.error,
|
|
@@ -11057,7 +11058,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11057
11058
|
value = _ref2.value,
|
|
11058
11059
|
defaultValue = _ref2.defaultValue,
|
|
11059
11060
|
renderInputValue = _ref2.renderInputValue,
|
|
11060
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11061
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
11061
11062
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11062
11063
|
var isEmptyValue = displayText.length === 0;
|
|
11063
11064
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11735,11 +11736,11 @@ var StyledFABText = index$a(Text$1)(function (_ref3) {
|
|
|
11735
11736
|
};
|
|
11736
11737
|
});
|
|
11737
11738
|
|
|
11738
|
-
var _excluded$
|
|
11739
|
+
var _excluded$6 = ["active"];
|
|
11739
11740
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
11740
11741
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
11741
11742
|
var active = _ref.active,
|
|
11742
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
11743
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
11743
11744
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
11744
11745
|
useEffect(function () {
|
|
11745
11746
|
var animation = Animated.timing(rotateAnimation.current, {
|
|
@@ -12470,7 +12471,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
12470
12471
|
};
|
|
12471
12472
|
});
|
|
12472
12473
|
|
|
12473
|
-
var _excluded$
|
|
12474
|
+
var _excluded$5 = ["value", "renderValue", "intent", "style", "testID"];
|
|
12474
12475
|
var HalfCircle = function HalfCircle(_ref) {
|
|
12475
12476
|
var type = _ref.type,
|
|
12476
12477
|
themeIntent = _ref.themeIntent;
|
|
@@ -12491,7 +12492,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12491
12492
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
12492
12493
|
style = _ref2.style,
|
|
12493
12494
|
testID = _ref2.testID,
|
|
12494
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12495
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
12495
12496
|
var theme = useTheme$1();
|
|
12496
12497
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
12497
12498
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -12608,14 +12609,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
12608
12609
|
};
|
|
12609
12610
|
});
|
|
12610
12611
|
|
|
12611
|
-
var _excluded$
|
|
12612
|
+
var _excluded$4 = ["value", "intent", "style", "testID"];
|
|
12612
12613
|
var ProgressBar = function ProgressBar(_ref) {
|
|
12613
12614
|
var value = _ref.value,
|
|
12614
12615
|
_ref$intent = _ref.intent,
|
|
12615
12616
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12616
12617
|
style = _ref.style,
|
|
12617
12618
|
testID = _ref.testID,
|
|
12618
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12619
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
12619
12620
|
var _useState = useState(0),
|
|
12620
12621
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12621
12622
|
width = _useState2[0],
|
|
@@ -12806,14 +12807,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
12806
12807
|
}, dotProps))));
|
|
12807
12808
|
};
|
|
12808
12809
|
|
|
12809
|
-
var _excluded$
|
|
12810
|
+
var _excluded$3 = ["testID", "size", "intent"];
|
|
12810
12811
|
var Spinner = function Spinner(_ref) {
|
|
12811
12812
|
var testID = _ref.testID,
|
|
12812
12813
|
_ref$size = _ref.size,
|
|
12813
12814
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
12814
12815
|
_ref$intent = _ref.intent,
|
|
12815
12816
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12816
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12817
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
12817
12818
|
return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
|
|
12818
12819
|
testID: testID
|
|
12819
12820
|
}, /*#__PURE__*/React.createElement(AnimatedSpinner, {
|
|
@@ -12846,7 +12847,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
12846
12847
|
}, children);
|
|
12847
12848
|
};
|
|
12848
12849
|
|
|
12849
|
-
var _excluded$
|
|
12850
|
+
var _excluded$2 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
12850
12851
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
12851
12852
|
var trans = progress.interpolate({
|
|
12852
12853
|
inputRange: [0, 1],
|
|
@@ -12871,7 +12872,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
12871
12872
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
12872
12873
|
rightActions = _ref.rightActions,
|
|
12873
12874
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
12874
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
12875
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
12875
12876
|
var _useWindowDimensions = useWindowDimensions(),
|
|
12876
12877
|
width = _useWindowDimensions.width;
|
|
12877
12878
|
var swipeableRef = useRef(null);
|
|
@@ -14256,7 +14257,7 @@ var StyledText = index$a(Text$1)(function (_ref3) {
|
|
|
14256
14257
|
};
|
|
14257
14258
|
});
|
|
14258
14259
|
|
|
14259
|
-
var _excluded = ["content", "variant", "intent", "style", "testID"];
|
|
14260
|
+
var _excluded$1 = ["content", "variant", "intent", "style", "testID"];
|
|
14260
14261
|
var Tag = function Tag(_ref) {
|
|
14261
14262
|
var content = _ref.content,
|
|
14262
14263
|
_ref$variant = _ref.variant,
|
|
@@ -14265,7 +14266,7 @@ var Tag = function Tag(_ref) {
|
|
|
14265
14266
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
14266
14267
|
style = _ref.style,
|
|
14267
14268
|
testID = _ref.testID,
|
|
14268
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
14269
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
14269
14270
|
return /*#__PURE__*/React.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14270
14271
|
themeIntent: intent,
|
|
14271
14272
|
themeVariant: variant,
|
|
@@ -14791,7 +14792,8 @@ var ToolbarItem = function ToolbarItem(_ref) {
|
|
|
14791
14792
|
fontSize: icon ? 'small' : 'large',
|
|
14792
14793
|
fontWeight: "semi-bold",
|
|
14793
14794
|
intent: disabled ? 'subdued' : intent,
|
|
14794
|
-
|
|
14795
|
+
allowFontScaling: false,
|
|
14796
|
+
numberOfLines: 1
|
|
14795
14797
|
}, label) : null);
|
|
14796
14798
|
};
|
|
14797
14799
|
|
|
@@ -14825,9 +14827,11 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
14825
14827
|
}));
|
|
14826
14828
|
};
|
|
14827
14829
|
|
|
14830
|
+
var _excluded = ["children"];
|
|
14828
14831
|
var Toolbar = function Toolbar(_ref) {
|
|
14829
|
-
var children = _ref.children
|
|
14830
|
-
|
|
14832
|
+
var children = _ref.children,
|
|
14833
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14834
|
+
return /*#__PURE__*/React.createElement(ToolbarWrapper, rest, children);
|
|
14831
14835
|
};
|
|
14832
14836
|
var index$1 = Object.assign(Toolbar, {
|
|
14833
14837
|
Group: ToolbarGroup
|
package/lib/index.js
CHANGED
|
@@ -2694,7 +2694,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2694
2694
|
danger: theme.colors.onErrorSurface,
|
|
2695
2695
|
warning: theme.colors.onWarningSurface,
|
|
2696
2696
|
success: theme.colors.onSuccessSurface,
|
|
2697
|
-
inverted: theme.colors.onDarkGlobalSurface
|
|
2697
|
+
inverted: theme.colors.onDarkGlobalSurface,
|
|
2698
|
+
archived: theme.colors.onArchivedSurface
|
|
2698
2699
|
};
|
|
2699
2700
|
var fontSizes = {
|
|
2700
2701
|
small: theme.fontSizes.small,
|
|
@@ -5775,7 +5776,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
|
|
|
5775
5776
|
});
|
|
5776
5777
|
});
|
|
5777
5778
|
|
|
5778
|
-
var _excluded$
|
|
5779
|
+
var _excluded$m = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
5779
5780
|
var Text = function Text(_ref) {
|
|
5780
5781
|
var children = _ref.children,
|
|
5781
5782
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5786,7 +5787,7 @@ var Text = function Text(_ref) {
|
|
|
5786
5787
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5787
5788
|
_ref$typeface = _ref.typeface,
|
|
5788
5789
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
5789
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
5790
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
5790
5791
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
5791
5792
|
themeFontSize: fontSize,
|
|
5792
5793
|
themeFontWeight: fontWeight,
|
|
@@ -6265,10 +6266,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
6265
6266
|
};
|
|
6266
6267
|
});
|
|
6267
6268
|
|
|
6268
|
-
var _excluded$
|
|
6269
|
+
var _excluded$l = ["style"];
|
|
6269
6270
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
6270
6271
|
var style = _ref.style,
|
|
6271
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
6272
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
6272
6273
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
6273
6274
|
React.useEffect(function () {
|
|
6274
6275
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -6374,7 +6375,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
6374
6375
|
}, content));
|
|
6375
6376
|
};
|
|
6376
6377
|
|
|
6377
|
-
var _excluded$
|
|
6378
|
+
var _excluded$k = ["key"];
|
|
6378
6379
|
var Accordion = function Accordion(_ref) {
|
|
6379
6380
|
var items = _ref.items,
|
|
6380
6381
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -6395,7 +6396,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
6395
6396
|
testID: testID
|
|
6396
6397
|
}, items.map(function (_ref2, index) {
|
|
6397
6398
|
var key = _ref2.key,
|
|
6398
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6399
|
+
props = _objectWithoutProperties(_ref2, _excluded$k);
|
|
6399
6400
|
var open = _activeItemKey === key;
|
|
6400
6401
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
6401
6402
|
key: key
|
|
@@ -6777,7 +6778,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
|
|
|
6777
6778
|
};
|
|
6778
6779
|
});
|
|
6779
6780
|
|
|
6780
|
-
var _excluded$
|
|
6781
|
+
var _excluded$j = ["children", "visible", "intent", "style", "testID"];
|
|
6781
6782
|
var Status = function Status(_ref) {
|
|
6782
6783
|
var children = _ref.children,
|
|
6783
6784
|
_ref$visible = _ref.visible,
|
|
@@ -6786,7 +6787,7 @@ var Status = function Status(_ref) {
|
|
|
6786
6787
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6787
6788
|
style = _ref.style,
|
|
6788
6789
|
testID = _ref.testID,
|
|
6789
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6790
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
6790
6791
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
6791
6792
|
opacity = _React$useRef.current;
|
|
6792
6793
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -6819,7 +6820,7 @@ var Status = function Status(_ref) {
|
|
|
6819
6820
|
}));
|
|
6820
6821
|
};
|
|
6821
6822
|
|
|
6822
|
-
var _excluded$
|
|
6823
|
+
var _excluded$i = ["content", "visible", "max", "intent", "style", "testID"];
|
|
6823
6824
|
var DEFAULT_MAX_NUMBER = 99;
|
|
6824
6825
|
var getPaddingState = function getPaddingState(content) {
|
|
6825
6826
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -6834,7 +6835,7 @@ var Badge = function Badge(_ref) {
|
|
|
6834
6835
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
6835
6836
|
style = _ref.style,
|
|
6836
6837
|
testID = _ref.testID,
|
|
6837
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6838
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
6838
6839
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
6839
6840
|
opacity = _React$useRef.current;
|
|
6840
6841
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -6938,7 +6939,7 @@ function omit(keys, obj) {
|
|
|
6938
6939
|
return result;
|
|
6939
6940
|
}
|
|
6940
6941
|
|
|
6941
|
-
var _excluded$
|
|
6942
|
+
var _excluded$h = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
6942
6943
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
6943
6944
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
6944
6945
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -6949,7 +6950,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
6949
6950
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
6950
6951
|
selectedTabKey = _ref.selectedTabKey,
|
|
6951
6952
|
tabs = _ref.tabs,
|
|
6952
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6953
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
6953
6954
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
6954
6955
|
/**
|
|
6955
6956
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7036,13 +7037,13 @@ var StyledDivider = index$a(reactNative.View)(function (_ref) {
|
|
|
7036
7037
|
}, horizontalMargin), verticalMargin);
|
|
7037
7038
|
});
|
|
7038
7039
|
|
|
7039
|
-
var _excluded$
|
|
7040
|
+
var _excluded$g = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7040
7041
|
var Divider = function Divider(_ref) {
|
|
7041
7042
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7042
7043
|
marginVertical = _ref.marginVertical,
|
|
7043
7044
|
style = _ref.style,
|
|
7044
7045
|
testID = _ref.testID,
|
|
7045
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7046
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
7046
7047
|
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7047
7048
|
themeMarginHorizontal: marginHorizontal,
|
|
7048
7049
|
themeMarginVertical: marginVertical,
|
|
@@ -7172,7 +7173,7 @@ var StyledLoadingDot = index$a(reactNative.View)(function (_ref2) {
|
|
|
7172
7173
|
}, themeStyling());
|
|
7173
7174
|
});
|
|
7174
7175
|
|
|
7175
|
-
var _excluded$
|
|
7176
|
+
var _excluded$f = ["count", "size", "testID", "themeVariant"];
|
|
7176
7177
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7177
7178
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7178
7179
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7204,7 +7205,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7204
7205
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7205
7206
|
testID = _ref2.testID,
|
|
7206
7207
|
themeVariant = _ref2.themeVariant,
|
|
7207
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7208
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$f);
|
|
7208
7209
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7209
7210
|
React.useEffect(function () {
|
|
7210
7211
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -7600,11 +7601,11 @@ var Header = function Header(_ref) {
|
|
|
7600
7601
|
})) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
|
|
7601
7602
|
};
|
|
7602
7603
|
|
|
7603
|
-
var _excluded$
|
|
7604
|
+
var _excluded$e = ["scrollEventThrottle"];
|
|
7604
7605
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
7605
7606
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
7606
7607
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
7607
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7608
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
7608
7609
|
var _useContext = React.useContext(BottomSheetContext),
|
|
7609
7610
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
7610
7611
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -7919,7 +7920,7 @@ var borderWidths = {
|
|
|
7919
7920
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
7920
7921
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
7921
7922
|
|
|
7922
|
-
var _excluded$
|
|
7923
|
+
var _excluded$d = ["theme"];
|
|
7923
7924
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
7924
7925
|
var propConfig = config[key];
|
|
7925
7926
|
var propValue = props[key];
|
|
@@ -7946,18 +7947,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
7946
7947
|
var configKeys = Object.keys(config);
|
|
7947
7948
|
var StyledBox = index$a(reactNative.View)(function (_ref5) {
|
|
7948
7949
|
var theme = _ref5.theme,
|
|
7949
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
7950
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$d);
|
|
7950
7951
|
var styleProps = pick(configKeys, otherProps);
|
|
7951
7952
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
7952
7953
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
7953
7954
|
});
|
|
7954
7955
|
|
|
7955
|
-
var _excluded$
|
|
7956
|
+
var _excluded$c = ["children", "style", "testID"];
|
|
7956
7957
|
var Box = function Box(_ref) {
|
|
7957
7958
|
var children = _ref.children,
|
|
7958
7959
|
style = _ref.style,
|
|
7959
7960
|
testID = _ref.testID,
|
|
7960
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7961
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
7961
7962
|
return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
|
|
7962
7963
|
style: style,
|
|
7963
7964
|
testID: testID
|
|
@@ -10568,7 +10569,7 @@ var CarouselPaginator = function CarouselPaginator(_ref) {
|
|
|
10568
10569
|
}));
|
|
10569
10570
|
};
|
|
10570
10571
|
|
|
10571
|
-
var _excluded$
|
|
10572
|
+
var _excluded$b = ["rounded", "size", "testID", "style"];
|
|
10572
10573
|
var Image = function Image(_ref) {
|
|
10573
10574
|
var _ref$rounded = _ref.rounded,
|
|
10574
10575
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -10576,7 +10577,7 @@ var Image = function Image(_ref) {
|
|
|
10576
10577
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
10577
10578
|
testID = _ref.testID,
|
|
10578
10579
|
style = _ref.style,
|
|
10579
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10580
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
10580
10581
|
var theme = useTheme();
|
|
10581
10582
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
10582
10583
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
|
|
@@ -10661,7 +10662,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
10661
10662
|
}, content, /*#__PURE__*/React__default["default"].createElement(StyledCarouselHeading, null, heading), body ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, null, body) : null));
|
|
10662
10663
|
};
|
|
10663
10664
|
|
|
10664
|
-
var _excluded$
|
|
10665
|
+
var _excluded$a = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style"];
|
|
10665
10666
|
function useStateFromProp(initialValue) {
|
|
10666
10667
|
var _useState = React.useState(initialValue),
|
|
10667
10668
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10679,7 +10680,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
10679
10680
|
_ref$selectedItemInde = _ref.selectedItemIndex,
|
|
10680
10681
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
10681
10682
|
style = _ref.style,
|
|
10682
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10683
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
10683
10684
|
var carouselRef = React.useRef(null);
|
|
10684
10685
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
10685
10686
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
|
@@ -10779,12 +10780,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
|
|
|
10779
10780
|
};
|
|
10780
10781
|
});
|
|
10781
10782
|
|
|
10782
|
-
var _excluded$
|
|
10783
|
+
var _excluded$9 = ["intent", "children"];
|
|
10783
10784
|
var DataCard = function DataCard(_ref) {
|
|
10784
10785
|
var _ref$intent = _ref.intent,
|
|
10785
10786
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
10786
10787
|
children = _ref.children,
|
|
10787
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10788
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
10788
10789
|
return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
|
|
10789
10790
|
themeIntent: intent,
|
|
10790
10791
|
testID: "data-card-indicator"
|
|
@@ -10802,11 +10803,11 @@ var StyledCard = index$a(reactNative.View)(function (_ref) {
|
|
|
10802
10803
|
});
|
|
10803
10804
|
});
|
|
10804
10805
|
|
|
10805
|
-
var _excluded$
|
|
10806
|
+
var _excluded$8 = ["intent", "children"];
|
|
10806
10807
|
var Card = function Card(_ref) {
|
|
10807
10808
|
var intent = _ref.intent,
|
|
10808
10809
|
children = _ref.children,
|
|
10809
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10810
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
10810
10811
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
10811
10812
|
themeIntent: intent
|
|
10812
10813
|
}), children);
|
|
@@ -11040,7 +11041,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
|
|
|
11040
11041
|
};
|
|
11041
11042
|
});
|
|
11042
11043
|
|
|
11043
|
-
var _excluded$
|
|
11044
|
+
var _excluded$7 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11044
11045
|
var getVariant$1 = function getVariant(_ref) {
|
|
11045
11046
|
var disabled = _ref.disabled,
|
|
11046
11047
|
error = _ref.error,
|
|
@@ -11086,7 +11087,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
11086
11087
|
value = _ref2.value,
|
|
11087
11088
|
defaultValue = _ref2.defaultValue,
|
|
11088
11089
|
renderInputValue = _ref2.renderInputValue,
|
|
11089
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11090
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
11090
11091
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11091
11092
|
var isEmptyValue = displayText.length === 0;
|
|
11092
11093
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11764,11 +11765,11 @@ var StyledFABText = index$a(reactNative.Text)(function (_ref3) {
|
|
|
11764
11765
|
};
|
|
11765
11766
|
});
|
|
11766
11767
|
|
|
11767
|
-
var _excluded$
|
|
11768
|
+
var _excluded$6 = ["active"];
|
|
11768
11769
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
11769
11770
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
11770
11771
|
var active = _ref.active,
|
|
11771
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
11772
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
11772
11773
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
11773
11774
|
React.useEffect(function () {
|
|
11774
11775
|
var animation = reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -12499,7 +12500,7 @@ var StyledStrokeEnd = index$a(reactNative.View)(function (_ref6) {
|
|
|
12499
12500
|
};
|
|
12500
12501
|
});
|
|
12501
12502
|
|
|
12502
|
-
var _excluded$
|
|
12503
|
+
var _excluded$5 = ["value", "renderValue", "intent", "style", "testID"];
|
|
12503
12504
|
var HalfCircle = function HalfCircle(_ref) {
|
|
12504
12505
|
var type = _ref.type,
|
|
12505
12506
|
themeIntent = _ref.themeIntent;
|
|
@@ -12520,7 +12521,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
12520
12521
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
12521
12522
|
style = _ref2.style,
|
|
12522
12523
|
testID = _ref2.testID,
|
|
12523
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12524
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
12524
12525
|
var theme = useTheme$1();
|
|
12525
12526
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
12526
12527
|
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
@@ -12637,14 +12638,14 @@ var StyledInner = index$a(reactNative.Animated.View)(function (_ref2) {
|
|
|
12637
12638
|
};
|
|
12638
12639
|
});
|
|
12639
12640
|
|
|
12640
|
-
var _excluded$
|
|
12641
|
+
var _excluded$4 = ["value", "intent", "style", "testID"];
|
|
12641
12642
|
var ProgressBar = function ProgressBar(_ref) {
|
|
12642
12643
|
var value = _ref.value,
|
|
12643
12644
|
_ref$intent = _ref.intent,
|
|
12644
12645
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12645
12646
|
style = _ref.style,
|
|
12646
12647
|
testID = _ref.testID,
|
|
12647
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12648
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
12648
12649
|
var _useState = React.useState(0),
|
|
12649
12650
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12650
12651
|
width = _useState2[0],
|
|
@@ -12835,14 +12836,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
12835
12836
|
}, dotProps))));
|
|
12836
12837
|
};
|
|
12837
12838
|
|
|
12838
|
-
var _excluded$
|
|
12839
|
+
var _excluded$3 = ["testID", "size", "intent"];
|
|
12839
12840
|
var Spinner = function Spinner(_ref) {
|
|
12840
12841
|
var testID = _ref.testID,
|
|
12841
12842
|
_ref$size = _ref.size,
|
|
12842
12843
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
12843
12844
|
_ref$intent = _ref.intent,
|
|
12844
12845
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
12845
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12846
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
12846
12847
|
return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
|
|
12847
12848
|
testID: testID
|
|
12848
12849
|
}, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
|
|
@@ -12875,7 +12876,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
12875
12876
|
}, children);
|
|
12876
12877
|
};
|
|
12877
12878
|
|
|
12878
|
-
var _excluded$
|
|
12879
|
+
var _excluded$2 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
12879
12880
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
12880
12881
|
var trans = progress.interpolate({
|
|
12881
12882
|
inputRange: [0, 1],
|
|
@@ -12900,7 +12901,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
12900
12901
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
12901
12902
|
rightActions = _ref.rightActions,
|
|
12902
12903
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
12903
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
12904
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
12904
12905
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
12905
12906
|
width = _useWindowDimensions.width;
|
|
12906
12907
|
var swipeableRef = React.useRef(null);
|
|
@@ -14285,7 +14286,7 @@ var StyledText = index$a(reactNative.Text)(function (_ref3) {
|
|
|
14285
14286
|
};
|
|
14286
14287
|
});
|
|
14287
14288
|
|
|
14288
|
-
var _excluded = ["content", "variant", "intent", "style", "testID"];
|
|
14289
|
+
var _excluded$1 = ["content", "variant", "intent", "style", "testID"];
|
|
14289
14290
|
var Tag = function Tag(_ref) {
|
|
14290
14291
|
var content = _ref.content,
|
|
14291
14292
|
_ref$variant = _ref.variant,
|
|
@@ -14294,7 +14295,7 @@ var Tag = function Tag(_ref) {
|
|
|
14294
14295
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
14295
14296
|
style = _ref.style,
|
|
14296
14297
|
testID = _ref.testID,
|
|
14297
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
14298
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
14298
14299
|
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
14299
14300
|
themeIntent: intent,
|
|
14300
14301
|
themeVariant: variant,
|
|
@@ -14820,7 +14821,8 @@ var ToolbarItem = function ToolbarItem(_ref) {
|
|
|
14820
14821
|
fontSize: icon ? 'small' : 'large',
|
|
14821
14822
|
fontWeight: "semi-bold",
|
|
14822
14823
|
intent: disabled ? 'subdued' : intent,
|
|
14823
|
-
|
|
14824
|
+
allowFontScaling: false,
|
|
14825
|
+
numberOfLines: 1
|
|
14824
14826
|
}, label) : null);
|
|
14825
14827
|
};
|
|
14826
14828
|
|
|
@@ -14854,9 +14856,11 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
14854
14856
|
}));
|
|
14855
14857
|
};
|
|
14856
14858
|
|
|
14859
|
+
var _excluded = ["children"];
|
|
14857
14860
|
var Toolbar = function Toolbar(_ref) {
|
|
14858
|
-
var children = _ref.children
|
|
14859
|
-
|
|
14861
|
+
var children = _ref.children,
|
|
14862
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14863
|
+
return /*#__PURE__*/React__default["default"].createElement(ToolbarWrapper, rest, children);
|
|
14860
14864
|
};
|
|
14861
14865
|
var index$1 = Object.assign(Toolbar, {
|
|
14862
14866
|
Group: ToolbarGroup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.3.
|
|
24
|
+
"@hero-design/colors": "8.3.4",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/preset-typescript": "^7.17.12",
|
|
45
45
|
"@babel/runtime": "^7.18.9",
|
|
46
46
|
"@emotion/jest": "^11.9.3",
|
|
47
|
-
"@hero-design/eslint-plugin": "8.3.
|
|
47
|
+
"@hero-design/eslint-plugin": "8.3.4",
|
|
48
48
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
49
49
|
"@react-native-community/slider": "4.1.12",
|
|
50
50
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@types/react-native": "^0.67.7",
|
|
61
61
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
62
62
|
"babel-plugin-inline-import": "^3.0.0",
|
|
63
|
-
"eslint-config-hd": "8.3.
|
|
63
|
+
"eslint-config-hd": "8.3.4",
|
|
64
64
|
"jest": "^27.3.1",
|
|
65
|
-
"prettier-config-hd": "8.3.
|
|
65
|
+
"prettier-config-hd": "8.3.4",
|
|
66
66
|
"react": "18.0.0",
|
|
67
67
|
"react-native": "0.69.7",
|
|
68
68
|
"react-native-gesture-handler": "~2.1.0",
|
|
@@ -57,7 +57,8 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
57
57
|
themeSize="medium"
|
|
58
58
|
/>
|
|
59
59
|
<Text
|
|
60
|
-
|
|
60
|
+
allowFontScaling={false}
|
|
61
|
+
numberOfLines={1}
|
|
61
62
|
style={
|
|
62
63
|
Array [
|
|
63
64
|
Object {
|
|
@@ -120,7 +121,8 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
120
121
|
themeSize="medium"
|
|
121
122
|
/>
|
|
122
123
|
<Text
|
|
123
|
-
|
|
124
|
+
allowFontScaling={false}
|
|
125
|
+
numberOfLines={1}
|
|
124
126
|
style={
|
|
125
127
|
Array [
|
|
126
128
|
Object {
|
|
@@ -201,7 +203,8 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
201
203
|
themeSize="medium"
|
|
202
204
|
/>
|
|
203
205
|
<Text
|
|
204
|
-
|
|
206
|
+
allowFontScaling={false}
|
|
207
|
+
numberOfLines={1}
|
|
205
208
|
style={
|
|
206
209
|
Array [
|
|
207
210
|
Object {
|
|
@@ -264,7 +267,8 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
264
267
|
themeSize="medium"
|
|
265
268
|
/>
|
|
266
269
|
<Text
|
|
267
|
-
|
|
270
|
+
allowFontScaling={false}
|
|
271
|
+
numberOfLines={1}
|
|
268
272
|
style={
|
|
269
273
|
Array [
|
|
270
274
|
Object {
|
|
@@ -345,7 +349,8 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
345
349
|
themeSize="medium"
|
|
346
350
|
/>
|
|
347
351
|
<Text
|
|
348
|
-
|
|
352
|
+
allowFontScaling={false}
|
|
353
|
+
numberOfLines={1}
|
|
349
354
|
style={
|
|
350
355
|
Array [
|
|
351
356
|
Object {
|
|
@@ -408,7 +413,8 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
408
413
|
themeSize="medium"
|
|
409
414
|
/>
|
|
410
415
|
<Text
|
|
411
|
-
|
|
416
|
+
allowFontScaling={false}
|
|
417
|
+
numberOfLines={1}
|
|
412
418
|
style={
|
|
413
419
|
Array [
|
|
414
420
|
Object {
|
|
@@ -42,7 +42,8 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
42
42
|
themeSize="medium"
|
|
43
43
|
/>
|
|
44
44
|
<Text
|
|
45
|
-
|
|
45
|
+
allowFontScaling={false}
|
|
46
|
+
numberOfLines={1}
|
|
46
47
|
style={
|
|
47
48
|
Array [
|
|
48
49
|
Object {
|
|
@@ -107,7 +108,8 @@ exports[`ToolbarItems renders correctly when intent is danger 1`] = `
|
|
|
107
108
|
themeSize="medium"
|
|
108
109
|
/>
|
|
109
110
|
<Text
|
|
110
|
-
|
|
111
|
+
allowFontScaling={false}
|
|
112
|
+
numberOfLines={1}
|
|
111
113
|
style={
|
|
112
114
|
Array [
|
|
113
115
|
Object {
|
|
@@ -172,7 +174,8 @@ exports[`ToolbarItems renders correctly when intent is info 1`] = `
|
|
|
172
174
|
themeSize="medium"
|
|
173
175
|
/>
|
|
174
176
|
<Text
|
|
175
|
-
|
|
177
|
+
allowFontScaling={false}
|
|
178
|
+
numberOfLines={1}
|
|
176
179
|
style={
|
|
177
180
|
Array [
|
|
178
181
|
Object {
|
|
@@ -237,7 +240,8 @@ exports[`ToolbarItems renders correctly when intent is primary 1`] = `
|
|
|
237
240
|
themeSize="medium"
|
|
238
241
|
/>
|
|
239
242
|
<Text
|
|
240
|
-
|
|
243
|
+
allowFontScaling={false}
|
|
244
|
+
numberOfLines={1}
|
|
241
245
|
style={
|
|
242
246
|
Array [
|
|
243
247
|
Object {
|
|
@@ -302,7 +306,8 @@ exports[`ToolbarItems renders correctly when intent is success 1`] = `
|
|
|
302
306
|
themeSize="medium"
|
|
303
307
|
/>
|
|
304
308
|
<Text
|
|
305
|
-
|
|
309
|
+
allowFontScaling={false}
|
|
310
|
+
numberOfLines={1}
|
|
306
311
|
style={
|
|
307
312
|
Array [
|
|
308
313
|
Object {
|
|
@@ -367,7 +372,8 @@ exports[`ToolbarItems renders correctly when intent is warning 1`] = `
|
|
|
367
372
|
themeSize="medium"
|
|
368
373
|
/>
|
|
369
374
|
<Text
|
|
370
|
-
|
|
375
|
+
allowFontScaling={false}
|
|
376
|
+
numberOfLines={1}
|
|
371
377
|
style={
|
|
372
378
|
Array [
|
|
373
379
|
Object {
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
+
import { ViewProps } from 'react-native';
|
|
3
4
|
import { ToolbarWrapper } from './StyledToolbar';
|
|
4
5
|
import ToolbarGroup from './ToolbarGroup';
|
|
5
6
|
|
|
6
|
-
export interface ToolbarProps {
|
|
7
|
+
export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
7
8
|
/**
|
|
8
9
|
* Toolbar's content.
|
|
9
10
|
*/
|
|
10
11
|
children?: ReactNode;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
const Toolbar = ({ children }: ToolbarProps) => (
|
|
14
|
-
<ToolbarWrapper>{children}</ToolbarWrapper>
|
|
14
|
+
const Toolbar = ({ children, ...rest }: ToolbarProps) => (
|
|
15
|
+
<ToolbarWrapper {...rest}>{children}</ToolbarWrapper>
|
|
15
16
|
);
|
|
16
17
|
|
|
17
18
|
export default Object.assign(Toolbar, {
|
|
@@ -27,7 +27,8 @@ const StyledText = styled(Text)<{
|
|
|
27
27
|
| 'info'
|
|
28
28
|
| 'warning'
|
|
29
29
|
| 'danger'
|
|
30
|
-
| 'inverted'
|
|
30
|
+
| 'inverted'
|
|
31
|
+
| 'archived';
|
|
31
32
|
themeTypeface: 'neutral' | 'playful';
|
|
32
33
|
}>(({ themeFontSize, themeFontWeight, themeIntent, themeTypeface, theme }) => {
|
|
33
34
|
const sizeStyles = {
|
|
@@ -11,6 +11,7 @@ const getTypographyTheme = (theme: GlobalTheme) => {
|
|
|
11
11
|
warning: theme.colors.onWarningSurface,
|
|
12
12
|
success: theme.colors.onSuccessSurface,
|
|
13
13
|
inverted: theme.colors.onDarkGlobalSurface,
|
|
14
|
+
archived: theme.colors.onArchivedSurface,
|
|
14
15
|
};
|
|
15
16
|
|
|
16
17
|
const fontSizes = {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
|
+
export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
3
4
|
/**
|
|
4
5
|
* Toolbar's content.
|
|
5
6
|
*/
|
|
6
7
|
children?: ReactNode;
|
|
7
8
|
}
|
|
8
|
-
declare const _default: (({ children }: ToolbarProps) => JSX.Element) & {
|
|
9
|
+
declare const _default: (({ children, ...rest }: ToolbarProps) => JSX.Element) & {
|
|
9
10
|
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => JSX.Element;
|
|
10
11
|
};
|
|
11
12
|
export default _default;
|
|
@@ -5,7 +5,7 @@ declare const StyledText: import("@emotion/native").StyledComponent<import("reac
|
|
|
5
5
|
} & {
|
|
6
6
|
themeFontSize: 'small' | 'medium' | 'large' | 'xlarge' | 'xxxlarge' | 'xxxxxlarge' | '6xlarge' | '7xlarge';
|
|
7
7
|
themeFontWeight: 'light' | 'regular' | 'semi-bold';
|
|
8
|
-
themeIntent: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted';
|
|
8
|
+
themeIntent: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived';
|
|
9
9
|
themeTypeface: 'neutral' | 'playful';
|
|
10
10
|
}, {}, {
|
|
11
11
|
ref?: import("react").Ref<Text> | undefined;
|
|
@@ -16,7 +16,7 @@ export interface TextProps extends NativeTextProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* Visual intent color to apply to the text.
|
|
18
18
|
*/
|
|
19
|
-
intent?: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted';
|
|
19
|
+
intent?: 'body' | 'subdued' | 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted' | 'archived';
|
|
20
20
|
/**
|
|
21
21
|
* Additional style.
|
|
22
22
|
*/
|