@ornikar/kitt-universal 28.0.0 → 28.1.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.
@@ -3202,7 +3202,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
3202
3202
  nativeFontFamily: nativeFontFamily
3203
3203
  };
3204
3204
  }
3205
- function Typography(_ref2) {
3205
+ var TypographyBase = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3206
3206
  var _typographyType$base;
3207
3207
  var accessibilityRole = _ref2.accessibilityRole,
3208
3208
  legacyBase = _ref2.base,
@@ -3254,6 +3254,7 @@ function Typography(_ref2) {
3254
3254
  });
3255
3255
  }
3256
3256
  var text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
3257
+ ref: ref,
3257
3258
  accessibilityRole: accessibilityRole || undefined,
3258
3259
  fontSize: fontSizeForNativeBase,
3259
3260
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
@@ -3272,31 +3273,35 @@ function Typography(_ref2) {
3272
3273
  value: color,
3273
3274
  children: content
3274
3275
  }) : content;
3275
- }
3276
- function TypographyText(props) {
3277
- return /*#__PURE__*/jsx(Typography, _objectSpread({
3276
+ });
3277
+ var TypographyText = /*#__PURE__*/forwardRef(function (props, ref) {
3278
+ return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
3279
+ ref: ref,
3278
3280
  accessibilityRole: null
3279
3281
  }, props));
3280
- }
3281
- function TypographyParagraph(props) {
3282
+ });
3283
+ var TypographyParagraph = /*#__PURE__*/forwardRef(function (props, ref) {
3282
3284
  // role 'paragraph' does not exist in native, it's a web feature only.
3283
- return /*#__PURE__*/jsx(Typography, _objectSpread({
3285
+ return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
3286
+ ref: ref,
3284
3287
  accessibilityRole: 'paragraph'
3285
3288
  }, props));
3286
- }
3289
+ });
3287
3290
  var createHeading = function (level, defaultBase) {
3288
3291
  // https://github.com/necolas/react-native-web/issues/401
3289
- function TypographyHeading(props) {
3290
- return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
3292
+ var TypographyHeading = /*#__PURE__*/forwardRef(function (props, ref) {
3293
+ return /*#__PURE__*/jsx(TypographyBase, _objectSpread(_objectSpread({
3294
+ ref: ref,
3291
3295
  accessibilityRole: "header",
3292
3296
  base: defaultBase
3293
3297
  }, props), {}, {
3294
3298
  "aria-level": level
3295
3299
  }));
3296
- }
3300
+ });
3297
3301
  TypographyHeading.displayName = "TypographyHeading".concat(level);
3298
3302
  return TypographyHeading;
3299
3303
  };
3304
+ var Typography = TypographyBase;
3300
3305
  Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
3301
3306
  Typography.Text = TypographyText;
3302
3307
  Typography.Paragraph = TypographyParagraph;
@@ -4334,7 +4339,8 @@ function TopNavBar(_ref) {
4334
4339
  mode = _ref$mode === void 0 ? 'default' : _ref$mode,
4335
4340
  _ref$hasSeparator = _ref.hasSeparator,
4336
4341
  hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
4337
- backgroundColor = _ref.backgroundColor,
4342
+ _ref$backgroundColor = _ref.backgroundColor,
4343
+ backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
4338
4344
  testID = _ref.testID;
4339
4345
  var isLargeTitleMode = mode === 'largeTitle';
4340
4346
  var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
@@ -9679,6 +9685,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9679
9685
  button: {
9680
9686
  minWidth: theme.button.minWidth,
9681
9687
  maxWidth: theme.button.maxWidth,
9688
+ maxHeight: theme.button.maxHeight,
9682
9689
  height: {
9683
9690
  "default": theme.button.height["default"],
9684
9691
  medium: theme.button.height.medium
@@ -12937,7 +12944,7 @@ function TypographyLinkWebWrapper(_ref) {
12937
12944
  }
12938
12945
 
12939
12946
  var _excluded$3 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
12940
- function TypographyLink(_ref) {
12947
+ var TypographyLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
12941
12948
  var children = _ref.children,
12942
12949
  disabled = _ref.disabled,
12943
12950
  noUnderline = _ref.noUnderline,
@@ -12948,6 +12955,7 @@ function TypographyLink(_ref) {
12948
12955
  return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
12949
12956
  hasNoUnderline: noUnderline,
12950
12957
  children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
12958
+ ref: ref,
12951
12959
  underline: !noUnderline,
12952
12960
  color: disabled ? 'black-disabled' : undefined,
12953
12961
  href: href,
@@ -12977,7 +12985,7 @@ function TypographyLink(_ref) {
12977
12985
  children: children
12978
12986
  }))
12979
12987
  });
12980
- }
12988
+ });
12981
12989
 
12982
12990
  function KittThemeProvider(_ref) {
12983
12991
  var isSSR = _ref.isSSR,