@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.
@@ -3186,7 +3186,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
3186
3186
  nativeFontFamily
3187
3187
  };
3188
3188
  }
3189
- function Typography({
3189
+ const TypographyBase = /*#__PURE__*/React.forwardRef(({
3190
3190
  accessibilityRole,
3191
3191
  base: legacyBase,
3192
3192
  small: legacySmall,
@@ -3203,7 +3203,7 @@ function Typography({
3203
3203
  variant,
3204
3204
  color,
3205
3205
  ...otherProps
3206
- }) {
3206
+ }, ref) => {
3207
3207
  const sx = nativeBase.useSx();
3208
3208
  const typographyFamilyInContext = React.useContext(TypographyFamilyContext);
3209
3209
  const typographyTypeInContext = React.useContext(TypographyTypeContext);
@@ -3237,6 +3237,7 @@ function Typography({
3237
3237
  });
3238
3238
  }
3239
3239
  const text = /*#__PURE__*/jsxRuntime.jsx(nativeBase.Text, {
3240
+ ref: ref,
3240
3241
  accessibilityRole: accessibilityRole || undefined,
3241
3242
  fontSize: fontSizeForNativeBase,
3242
3243
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
@@ -3257,33 +3258,37 @@ function Typography({
3257
3258
  value: color,
3258
3259
  children: content
3259
3260
  }) : content;
3260
- }
3261
- function TypographyText(props) {
3262
- return /*#__PURE__*/jsxRuntime.jsx(Typography, {
3261
+ });
3262
+ const TypographyText = /*#__PURE__*/React.forwardRef((props, ref) => {
3263
+ return /*#__PURE__*/jsxRuntime.jsx(TypographyBase, {
3264
+ ref: ref,
3263
3265
  accessibilityRole: null,
3264
3266
  ...props
3265
3267
  });
3266
- }
3267
- function TypographyParagraph(props) {
3268
+ });
3269
+ const TypographyParagraph = /*#__PURE__*/React.forwardRef((props, ref) => {
3268
3270
  // role 'paragraph' does not exist in native, it's a web feature only.
3269
- return /*#__PURE__*/jsxRuntime.jsx(Typography, {
3271
+ return /*#__PURE__*/jsxRuntime.jsx(TypographyBase, {
3272
+ ref: ref,
3270
3273
  accessibilityRole: reactNative.Platform.OS === 'web' ? 'paragraph' : null,
3271
3274
  ...props
3272
3275
  });
3273
- }
3276
+ });
3274
3277
  const createHeading = (level, defaultBase) => {
3275
3278
  // https://github.com/necolas/react-native-web/issues/401
3276
- function TypographyHeading(props) {
3277
- return /*#__PURE__*/jsxRuntime.jsx(Typography, {
3279
+ const TypographyHeading = /*#__PURE__*/React.forwardRef((props, ref) => {
3280
+ return /*#__PURE__*/jsxRuntime.jsx(TypographyBase, {
3281
+ ref: ref,
3278
3282
  accessibilityRole: "header",
3279
3283
  base: defaultBase,
3280
3284
  ...props,
3281
3285
  "aria-level": level
3282
3286
  });
3283
- }
3287
+ });
3284
3288
  TypographyHeading.displayName = `TypographyHeading${level}`;
3285
3289
  return TypographyHeading;
3286
3290
  };
3291
+ const Typography = TypographyBase;
3287
3292
  Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
3288
3293
  Typography.Text = TypographyText;
3289
3294
  Typography.Paragraph = TypographyParagraph;
@@ -4458,7 +4463,7 @@ function TopNavBar({
4458
4463
  stickers,
4459
4464
  mode = 'default',
4460
4465
  hasSeparator = true,
4461
- backgroundColor,
4466
+ backgroundColor = 'kitt.uiBackgroundLight',
4462
4467
  testID
4463
4468
  }) {
4464
4469
  const isLargeTitleMode = mode === 'largeTitle';
@@ -10323,6 +10328,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10323
10328
  button: {
10324
10329
  minWidth: theme.button.minWidth,
10325
10330
  maxWidth: theme.button.maxWidth,
10331
+ maxHeight: theme.button.maxHeight,
10326
10332
  height: {
10327
10333
  default: theme.button.height.default,
10328
10334
  medium: theme.button.height.medium
@@ -13707,7 +13713,7 @@ function TypographyLinkWebWrapper({
13707
13713
  return children;
13708
13714
  }
13709
13715
 
13710
- function TypographyLink({
13716
+ const TypographyLink = /*#__PURE__*/React.forwardRef(({
13711
13717
  children,
13712
13718
  disabled,
13713
13719
  noUnderline,
@@ -13715,10 +13721,11 @@ function TypographyLink({
13715
13721
  hrefAttrs,
13716
13722
  onPress,
13717
13723
  ...otherProps
13718
- }) {
13724
+ }, ref) => {
13719
13725
  return /*#__PURE__*/jsxRuntime.jsx(TypographyLinkWebWrapper, {
13720
13726
  hasNoUnderline: noUnderline,
13721
13727
  children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
13728
+ ref: ref,
13722
13729
  underline: !noUnderline,
13723
13730
  color: disabled ? 'black-disabled' : undefined,
13724
13731
  href: href,
@@ -13748,7 +13755,7 @@ function TypographyLink({
13748
13755
  children: children
13749
13756
  })
13750
13757
  });
13751
- }
13758
+ });
13752
13759
 
13753
13760
  function KittThemeProvider({
13754
13761
  isSSR,