@ornikar/kitt-universal 28.0.1 → 29.0.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.
@@ -3168,7 +3168,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
3168
3168
  nativeFontFamily
3169
3169
  };
3170
3170
  }
3171
- function Typography(_ref) {
3171
+ const TypographyBase = /*#__PURE__*/forwardRef((_ref, ref) => {
3172
3172
  var _typographyType$base;
3173
3173
  let {
3174
3174
  accessibilityRole,
@@ -3219,6 +3219,7 @@ function Typography(_ref) {
3219
3219
  });
3220
3220
  }
3221
3221
  const text = /*#__PURE__*/jsx(Text, _objectSpread(_objectSpread({
3222
+ ref: ref,
3222
3223
  accessibilityRole: accessibilityRole || undefined,
3223
3224
  fontSize: fontSizeForNativeBase,
3224
3225
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
@@ -3237,31 +3238,35 @@ function Typography(_ref) {
3237
3238
  value: color,
3238
3239
  children: content
3239
3240
  }) : content;
3240
- }
3241
- function TypographyText(props) {
3242
- return /*#__PURE__*/jsx(Typography, _objectSpread({
3241
+ });
3242
+ const TypographyText = /*#__PURE__*/forwardRef((props, ref) => {
3243
+ return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
3244
+ ref: ref,
3243
3245
  accessibilityRole: null
3244
3246
  }, props));
3245
- }
3246
- function TypographyParagraph(props) {
3247
+ });
3248
+ const TypographyParagraph = /*#__PURE__*/forwardRef((props, ref) => {
3247
3249
  // role 'paragraph' does not exist in native, it's a web feature only.
3248
- return /*#__PURE__*/jsx(Typography, _objectSpread({
3250
+ return /*#__PURE__*/jsx(TypographyBase, _objectSpread({
3251
+ ref: ref,
3249
3252
  accessibilityRole: Platform.OS === 'web' ? 'paragraph' : null
3250
3253
  }, props));
3251
- }
3254
+ });
3252
3255
  const createHeading = (level, defaultBase) => {
3253
3256
  // https://github.com/necolas/react-native-web/issues/401
3254
- function TypographyHeading(props) {
3255
- return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
3257
+ const TypographyHeading = /*#__PURE__*/forwardRef((props, ref) => {
3258
+ return /*#__PURE__*/jsx(TypographyBase, _objectSpread(_objectSpread({
3259
+ ref: ref,
3256
3260
  accessibilityRole: "header",
3257
3261
  base: defaultBase
3258
3262
  }, props), {}, {
3259
3263
  "aria-level": level
3260
3264
  }));
3261
- }
3265
+ });
3262
3266
  TypographyHeading.displayName = `TypographyHeading${level}`;
3263
3267
  return TypographyHeading;
3264
3268
  };
3269
+ const Typography = TypographyBase;
3265
3270
  Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
3266
3271
  Typography.Text = TypographyText;
3267
3272
  Typography.Paragraph = TypographyParagraph;
@@ -10320,6 +10325,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10320
10325
  button: {
10321
10326
  minWidth: theme.button.minWidth,
10322
10327
  maxWidth: theme.button.maxWidth,
10328
+ maxHeight: theme.button.maxHeight,
10323
10329
  height: {
10324
10330
  default: theme.button.height.default,
10325
10331
  medium: theme.button.height.medium
@@ -13705,7 +13711,7 @@ function TypographyLinkWebWrapper(_ref) {
13705
13711
  }
13706
13712
 
13707
13713
  const _excluded$3 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
13708
- function TypographyLink(_ref) {
13714
+ const TypographyLink = /*#__PURE__*/forwardRef((_ref, ref) => {
13709
13715
  let {
13710
13716
  children,
13711
13717
  disabled,
@@ -13718,6 +13724,7 @@ function TypographyLink(_ref) {
13718
13724
  return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
13719
13725
  hasNoUnderline: noUnderline,
13720
13726
  children: /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
13727
+ ref: ref,
13721
13728
  underline: !noUnderline,
13722
13729
  color: disabled ? 'black-disabled' : undefined,
13723
13730
  href: href,
@@ -13747,7 +13754,7 @@ function TypographyLink(_ref) {
13747
13754
  children: children
13748
13755
  }))
13749
13756
  });
13750
- }
13757
+ });
13751
13758
 
13752
13759
  function KittThemeProvider({
13753
13760
  isSSR,