react-native-better-html 1.0.20 → 1.0.22

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/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { BetterCoreProviderConfig, DeepPartialRecord, BetterCoreConfig, OmitProps, IconName, AnyOtherString, PartialRecord, AssetName, LoaderName } from 'react-better-core';
1
+ import { BetterCoreProviderConfig, DeepPartialRecord, OmitProps, BetterCoreConfig, IconName, AnyOtherString, PartialRecord, AssetName, LoaderName } from 'react-better-core';
2
2
  export { AnyOtherString, AssetName, AssetsConfig, Color, ColorName, ColorTheme, Colors, Country, DeepPartialRecord, ExcludeOptions, IconName, IconsConfig, LoaderConfig, LoaderName, OmitProps, PartialRecord, PickAllRequired, PickValue, Styles, Theme, ThemeConfig, colorThemeControls, countries, darkenColor, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateRandomString, getPluralWord, lightenColor, loaderControls, saturateColor, useBooleanState, useDebounceState, useLoader, useLoaderControls, useTheme } from 'react-better-core';
3
3
  import * as react from 'react';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -367,7 +367,7 @@ declare const Loader: typeof LoaderComponent & {
367
367
  text: typeof LoaderComponent.text;
368
368
  };
369
369
 
370
- type ComponentStyleProps<Style extends ViewStyle = ViewStyle> = Omit<ComponentStyle<Style>, "transformOrigin">;
370
+ type ComponentStyleProps<Style extends ViewStyle = ViewStyle> = Omit<ComponentStyle<Style>, "transformOrigin" | "transitionDuration">;
371
371
  type AnimationStyleProps<Style extends ViewStyle = ViewStyle> = ComponentStyle<Style> & PropsTransforms;
372
372
  type InitialComponentStyle<Style extends ViewStyle = ViewStyle> = {
373
373
  [CSSProperty in keyof AnimationStyleProps<Style> as `initial${Capitalize<CSSProperty & string>}`]: AnimationStyleProps<Style>[CSSProperty];
@@ -420,6 +420,8 @@ type ScreenHolderProps = {
420
420
  noScroll?: boolean;
421
421
  /** @default false */
422
422
  noSideSpace?: boolean;
423
+ /** @default false */
424
+ noTopSpace?: boolean;
423
425
  /** @default 1 (second) */
424
426
  refreshTimeout?: number;
425
427
  onRefresh?: () => void;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BetterCoreProviderConfig, DeepPartialRecord, BetterCoreConfig, OmitProps, IconName, AnyOtherString, PartialRecord, AssetName, LoaderName } from 'react-better-core';
1
+ import { BetterCoreProviderConfig, DeepPartialRecord, OmitProps, BetterCoreConfig, IconName, AnyOtherString, PartialRecord, AssetName, LoaderName } from 'react-better-core';
2
2
  export { AnyOtherString, AssetName, AssetsConfig, Color, ColorName, ColorTheme, Colors, Country, DeepPartialRecord, ExcludeOptions, IconName, IconsConfig, LoaderConfig, LoaderName, OmitProps, PartialRecord, PickAllRequired, PickValue, Styles, Theme, ThemeConfig, colorThemeControls, countries, darkenColor, desaturateColor, eventPreventDefault, eventPreventStop, eventStopPropagation, formatPhoneNumber, generateRandomString, getPluralWord, lightenColor, loaderControls, saturateColor, useBooleanState, useDebounceState, useLoader, useLoaderControls, useTheme } from 'react-better-core';
3
3
  import * as react from 'react';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -367,7 +367,7 @@ declare const Loader: typeof LoaderComponent & {
367
367
  text: typeof LoaderComponent.text;
368
368
  };
369
369
 
370
- type ComponentStyleProps<Style extends ViewStyle = ViewStyle> = Omit<ComponentStyle<Style>, "transformOrigin">;
370
+ type ComponentStyleProps<Style extends ViewStyle = ViewStyle> = Omit<ComponentStyle<Style>, "transformOrigin" | "transitionDuration">;
371
371
  type AnimationStyleProps<Style extends ViewStyle = ViewStyle> = ComponentStyle<Style> & PropsTransforms;
372
372
  type InitialComponentStyle<Style extends ViewStyle = ViewStyle> = {
373
373
  [CSSProperty in keyof AnimationStyleProps<Style> as `initial${Capitalize<CSSProperty & string>}`]: AnimationStyleProps<Style>[CSSProperty];
@@ -420,6 +420,8 @@ type ScreenHolderProps = {
420
420
  noScroll?: boolean;
421
421
  /** @default false */
422
422
  noSideSpace?: boolean;
423
+ /** @default false */
424
+ noTopSpace?: boolean;
423
425
  /** @default 1 (second) */
424
426
  refreshTimeout?: number;
425
427
  onRefresh?: () => void;
package/dist/index.js CHANGED
@@ -1635,6 +1635,7 @@ var import_jsx_runtime11 = require("react/jsx-runtime");
1635
1635
  var ScreenHolderComponent = ({
1636
1636
  noScroll,
1637
1637
  noSideSpace,
1638
+ noTopSpace,
1638
1639
  refreshTimeout = 1,
1639
1640
  onRefresh,
1640
1641
  onRefreshEnd,
@@ -1671,7 +1672,7 @@ var ScreenHolderComponent = ({
1671
1672
  {
1672
1673
  flex: 1,
1673
1674
  paddingHorizontal: !noSideSpace ? theme2.styles.space : void 0,
1674
- paddingTop: theme2.styles.gap + (insideTopSafeArea ? device.safeArea.afterCalculations.top : 0),
1675
+ paddingTop: (!noTopSpace ? theme2.styles.gap : 0) + (insideTopSafeArea ? device.safeArea.afterCalculations.top : 0),
1675
1676
  paddingBottom: import_react_native8.Platform.OS === "ios" && keyboard.isOpened ? device.safeArea.afterCalculations.top : bottomSpace + (insideBottomSafeArea ? device.safeArea.afterCalculations.bottom : 0),
1676
1677
  children
1677
1678
  }