@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.
@@ -3170,7 +3170,7 @@ function getUniversalFontWeight(type, variant, typographyFamily) {
3170
3170
  nativeFontFamily
3171
3171
  };
3172
3172
  }
3173
- function Typography({
3173
+ const TypographyBase = /*#__PURE__*/forwardRef(({
3174
3174
  accessibilityRole,
3175
3175
  base: legacyBase,
3176
3176
  small: legacySmall,
@@ -3187,7 +3187,7 @@ function Typography({
3187
3187
  variant,
3188
3188
  color,
3189
3189
  ...otherProps
3190
- }) {
3190
+ }, ref) => {
3191
3191
  const sx = useSx();
3192
3192
  const typographyFamilyInContext = useContext(TypographyFamilyContext);
3193
3193
  const typographyTypeInContext = useContext(TypographyTypeContext);
@@ -3221,6 +3221,7 @@ function Typography({
3221
3221
  });
3222
3222
  }
3223
3223
  const text = /*#__PURE__*/jsx(Text, {
3224
+ ref: ref,
3224
3225
  accessibilityRole: accessibilityRole || undefined,
3225
3226
  fontSize: fontSizeForNativeBase,
3226
3227
  lineHeight: hasTypographyAncestor ? undefined : fontSizeForNativeBase,
@@ -3241,33 +3242,37 @@ function Typography({
3241
3242
  value: color,
3242
3243
  children: content
3243
3244
  }) : content;
3244
- }
3245
- function TypographyText(props) {
3246
- return /*#__PURE__*/jsx(Typography, {
3245
+ });
3246
+ const TypographyText = /*#__PURE__*/forwardRef((props, ref) => {
3247
+ return /*#__PURE__*/jsx(TypographyBase, {
3248
+ ref: ref,
3247
3249
  accessibilityRole: null,
3248
3250
  ...props
3249
3251
  });
3250
- }
3251
- function TypographyParagraph(props) {
3252
+ });
3253
+ const TypographyParagraph = /*#__PURE__*/forwardRef((props, ref) => {
3252
3254
  // role 'paragraph' does not exist in native, it's a web feature only.
3253
- return /*#__PURE__*/jsx(Typography, {
3255
+ return /*#__PURE__*/jsx(TypographyBase, {
3256
+ ref: ref,
3254
3257
  accessibilityRole: 'paragraph',
3255
3258
  ...props
3256
3259
  });
3257
- }
3260
+ });
3258
3261
  const createHeading = (level, defaultBase) => {
3259
3262
  // https://github.com/necolas/react-native-web/issues/401
3260
- function TypographyHeading(props) {
3261
- return /*#__PURE__*/jsx(Typography, {
3263
+ const TypographyHeading = /*#__PURE__*/forwardRef((props, ref) => {
3264
+ return /*#__PURE__*/jsx(TypographyBase, {
3265
+ ref: ref,
3262
3266
  accessibilityRole: "header",
3263
3267
  base: defaultBase,
3264
3268
  ...props,
3265
3269
  "aria-level": level
3266
3270
  });
3267
- }
3271
+ });
3268
3272
  TypographyHeading.displayName = `TypographyHeading${level}`;
3269
3273
  return TypographyHeading;
3270
3274
  };
3275
+ const Typography = TypographyBase;
3271
3276
  Typography.SetDefaultColor = TypographyDefaultColorContext.Provider;
3272
3277
  Typography.Text = TypographyText;
3273
3278
  Typography.Paragraph = TypographyParagraph;
@@ -4292,7 +4297,7 @@ function TopNavBar({
4292
4297
  stickers,
4293
4298
  mode = 'default',
4294
4299
  hasSeparator = true,
4295
- backgroundColor,
4300
+ backgroundColor = 'kitt.uiBackgroundLight',
4296
4301
  testID
4297
4302
  }) {
4298
4303
  const isLargeTitleMode = mode === 'largeTitle';
@@ -9489,6 +9494,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9489
9494
  button: {
9490
9495
  minWidth: theme.button.minWidth,
9491
9496
  maxWidth: theme.button.maxWidth,
9497
+ maxHeight: theme.button.maxHeight,
9492
9498
  height: {
9493
9499
  default: theme.button.height.default,
9494
9500
  medium: theme.button.height.medium
@@ -12738,7 +12744,7 @@ function TypographyLinkWebWrapper({
12738
12744
  });
12739
12745
  }
12740
12746
 
12741
- function TypographyLink({
12747
+ const TypographyLink = /*#__PURE__*/forwardRef(({
12742
12748
  children,
12743
12749
  disabled,
12744
12750
  noUnderline,
@@ -12746,10 +12752,11 @@ function TypographyLink({
12746
12752
  hrefAttrs,
12747
12753
  onPress,
12748
12754
  ...otherProps
12749
- }) {
12755
+ }, ref) => {
12750
12756
  return /*#__PURE__*/jsx(TypographyLinkWebWrapper, {
12751
12757
  hasNoUnderline: noUnderline,
12752
12758
  children: /*#__PURE__*/jsx(Typography, {
12759
+ ref: ref,
12753
12760
  underline: !noUnderline,
12754
12761
  color: disabled ? 'black-disabled' : undefined,
12755
12762
  href: href,
@@ -12779,7 +12786,7 @@ function TypographyLink({
12779
12786
  children: children
12780
12787
  })
12781
12788
  });
12782
- }
12789
+ });
12783
12790
 
12784
12791
  function KittThemeProvider({
12785
12792
  isSSR,