react-native-better-html 1.0.25 → 1.0.26
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 +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +173 -136
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +121 -85
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -50,7 +50,7 @@ type BetterComponentsProviderProps = BetterProviderCommonProps & {
|
|
|
50
50
|
config?: BetterComponentsProviderConfig;
|
|
51
51
|
};
|
|
52
52
|
declare function BetterComponentsProvider({ config, ...props }: BetterComponentsProviderProps): react_jsx_runtime.JSX.Element;
|
|
53
|
-
declare const _default$
|
|
53
|
+
declare const _default$6: react.MemoExoticComponent<typeof BetterComponentsProvider>;
|
|
54
54
|
|
|
55
55
|
type ComponentStyle<Style extends ViewStyle = ViewStyle> = OmitProps<Style, "shadowOffset" | ComponentExcludeMarginProps | ComponentExcludePaddingProps> & {
|
|
56
56
|
shadowOffsetWidth?: number;
|
|
@@ -107,7 +107,7 @@ type IconProps = {
|
|
|
107
107
|
color?: ColorValue;
|
|
108
108
|
} & OmitProps<ViewProps, "width" | "height" | "pressType">;
|
|
109
109
|
declare function Icon({ name, nameIOS, size, color, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
110
|
-
declare const _default$
|
|
110
|
+
declare const _default$5: react.MemoExoticComponent<typeof Icon>;
|
|
111
111
|
|
|
112
112
|
type InputFieldProps = {
|
|
113
113
|
flex?: ViewStyle["flex"];
|
|
@@ -195,19 +195,22 @@ type SwitchProps = {
|
|
|
195
195
|
onChange?: (isEnabled: boolean) => void;
|
|
196
196
|
};
|
|
197
197
|
declare function Switch({ isEnabled, defaultIsEnabled, disabled, onChange }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
198
|
-
declare const _default$
|
|
198
|
+
declare const _default$4: react.MemoExoticComponent<typeof Switch>;
|
|
199
199
|
|
|
200
200
|
type CheckBoxProps = {
|
|
201
201
|
isChecked?: boolean;
|
|
202
202
|
defaultIsChecked?: boolean;
|
|
203
203
|
/** @default 36 */
|
|
204
204
|
size?: number;
|
|
205
|
+
text?: string | React.ReactNode;
|
|
206
|
+
/** @default false */
|
|
207
|
+
required?: boolean;
|
|
205
208
|
/** @default false */
|
|
206
209
|
disabled?: boolean;
|
|
207
210
|
onChange?: (isChecked: boolean) => void;
|
|
208
211
|
};
|
|
209
|
-
declare function CheckBox({ isChecked, defaultIsChecked, size, disabled, onChange }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
210
|
-
declare const _default$
|
|
212
|
+
declare function CheckBox({ isChecked, defaultIsChecked, size, text, required, disabled, onChange, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
declare const _default$3: react.MemoExoticComponent<typeof CheckBox>;
|
|
211
214
|
|
|
212
215
|
declare function useDevice(): {
|
|
213
216
|
safeArea: {
|
|
@@ -296,6 +299,14 @@ declare const Text: typeof TextComponent & {
|
|
|
296
299
|
unknown: typeof TextComponent.unknown;
|
|
297
300
|
};
|
|
298
301
|
|
|
302
|
+
type LabelProps = {
|
|
303
|
+
text?: string;
|
|
304
|
+
required?: boolean;
|
|
305
|
+
isError?: boolean;
|
|
306
|
+
};
|
|
307
|
+
declare function Label({ text, required, isError }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
308
|
+
declare const _default$2: react.MemoExoticComponent<typeof Label>;
|
|
309
|
+
|
|
299
310
|
type ButtonProps<Value> = {
|
|
300
311
|
text?: string;
|
|
301
312
|
/** @default 16 */
|
|
@@ -546,4 +557,4 @@ type AsyncStoragePluginOptions = {};
|
|
|
546
557
|
declare const defaultAsyncStoragePluginOptions: Required<AsyncStoragePluginOptions>;
|
|
547
558
|
declare const asyncStoragePlugin: BetterComponentsPluginConstructor<AsyncStoragePluginOptions>;
|
|
548
559
|
|
|
549
|
-
export { type AlertsPluginOptions, Animate, type AnimateTextProps, type AnimateViewProps, type AppConfig, type AsyncStoragePluginOptions, type BetterComponentsConfig, type BetterComponentsPlugin, _default$
|
|
560
|
+
export { type AlertsPluginOptions, Animate, type AnimateTextProps, type AnimateViewProps, type AppConfig, type AsyncStoragePluginOptions, type BetterComponentsConfig, type BetterComponentsPlugin, _default$6 as BetterComponentsProvider, type BetterComponentsProviderConfig, Button, type ButtonProps, _default$3 as CheckBox, type CheckBoxProps, type ComponentMarginProps, type ComponentPaddingProps, type FooterProps, _default$5 as Icon, type IconNameIOS, type IconProps, Image, type ImageProps, InputField, type InputFieldProps, type InputFieldRef, _default$2 as Label, type LabelProps, _default as ListItem, type ListItemProps, Loader, type LoaderProps, type LoaderSize, type PluginName, ScreenHolder, type ScreenHolderProps, _default$1 as StatusBar, type StatusBarProps, _default$4 as Switch, type SwitchProps, Text, type TextProps, View, type ViewProps, alertControls, alertsPlugin, asyncStoragePlugin, defaultAlertsPluginOptions, defaultAsyncStoragePluginOptions, generateAsyncStorage, getFormErrorObject, pressStrength, useAlertControls, useBetterComponentsContext, useDevice, useEventEmitter, useForm, useKeyboard };
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ type BetterComponentsProviderProps = BetterProviderCommonProps & {
|
|
|
50
50
|
config?: BetterComponentsProviderConfig;
|
|
51
51
|
};
|
|
52
52
|
declare function BetterComponentsProvider({ config, ...props }: BetterComponentsProviderProps): react_jsx_runtime.JSX.Element;
|
|
53
|
-
declare const _default$
|
|
53
|
+
declare const _default$6: react.MemoExoticComponent<typeof BetterComponentsProvider>;
|
|
54
54
|
|
|
55
55
|
type ComponentStyle<Style extends ViewStyle = ViewStyle> = OmitProps<Style, "shadowOffset" | ComponentExcludeMarginProps | ComponentExcludePaddingProps> & {
|
|
56
56
|
shadowOffsetWidth?: number;
|
|
@@ -107,7 +107,7 @@ type IconProps = {
|
|
|
107
107
|
color?: ColorValue;
|
|
108
108
|
} & OmitProps<ViewProps, "width" | "height" | "pressType">;
|
|
109
109
|
declare function Icon({ name, nameIOS, size, color, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
110
|
-
declare const _default$
|
|
110
|
+
declare const _default$5: react.MemoExoticComponent<typeof Icon>;
|
|
111
111
|
|
|
112
112
|
type InputFieldProps = {
|
|
113
113
|
flex?: ViewStyle["flex"];
|
|
@@ -195,19 +195,22 @@ type SwitchProps = {
|
|
|
195
195
|
onChange?: (isEnabled: boolean) => void;
|
|
196
196
|
};
|
|
197
197
|
declare function Switch({ isEnabled, defaultIsEnabled, disabled, onChange }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
198
|
-
declare const _default$
|
|
198
|
+
declare const _default$4: react.MemoExoticComponent<typeof Switch>;
|
|
199
199
|
|
|
200
200
|
type CheckBoxProps = {
|
|
201
201
|
isChecked?: boolean;
|
|
202
202
|
defaultIsChecked?: boolean;
|
|
203
203
|
/** @default 36 */
|
|
204
204
|
size?: number;
|
|
205
|
+
text?: string | React.ReactNode;
|
|
206
|
+
/** @default false */
|
|
207
|
+
required?: boolean;
|
|
205
208
|
/** @default false */
|
|
206
209
|
disabled?: boolean;
|
|
207
210
|
onChange?: (isChecked: boolean) => void;
|
|
208
211
|
};
|
|
209
|
-
declare function CheckBox({ isChecked, defaultIsChecked, size, disabled, onChange }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
210
|
-
declare const _default$
|
|
212
|
+
declare function CheckBox({ isChecked, defaultIsChecked, size, text, required, disabled, onChange, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
213
|
+
declare const _default$3: react.MemoExoticComponent<typeof CheckBox>;
|
|
211
214
|
|
|
212
215
|
declare function useDevice(): {
|
|
213
216
|
safeArea: {
|
|
@@ -296,6 +299,14 @@ declare const Text: typeof TextComponent & {
|
|
|
296
299
|
unknown: typeof TextComponent.unknown;
|
|
297
300
|
};
|
|
298
301
|
|
|
302
|
+
type LabelProps = {
|
|
303
|
+
text?: string;
|
|
304
|
+
required?: boolean;
|
|
305
|
+
isError?: boolean;
|
|
306
|
+
};
|
|
307
|
+
declare function Label({ text, required, isError }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
308
|
+
declare const _default$2: react.MemoExoticComponent<typeof Label>;
|
|
309
|
+
|
|
299
310
|
type ButtonProps<Value> = {
|
|
300
311
|
text?: string;
|
|
301
312
|
/** @default 16 */
|
|
@@ -546,4 +557,4 @@ type AsyncStoragePluginOptions = {};
|
|
|
546
557
|
declare const defaultAsyncStoragePluginOptions: Required<AsyncStoragePluginOptions>;
|
|
547
558
|
declare const asyncStoragePlugin: BetterComponentsPluginConstructor<AsyncStoragePluginOptions>;
|
|
548
559
|
|
|
549
|
-
export { type AlertsPluginOptions, Animate, type AnimateTextProps, type AnimateViewProps, type AppConfig, type AsyncStoragePluginOptions, type BetterComponentsConfig, type BetterComponentsPlugin, _default$
|
|
560
|
+
export { type AlertsPluginOptions, Animate, type AnimateTextProps, type AnimateViewProps, type AppConfig, type AsyncStoragePluginOptions, type BetterComponentsConfig, type BetterComponentsPlugin, _default$6 as BetterComponentsProvider, type BetterComponentsProviderConfig, Button, type ButtonProps, _default$3 as CheckBox, type CheckBoxProps, type ComponentMarginProps, type ComponentPaddingProps, type FooterProps, _default$5 as Icon, type IconNameIOS, type IconProps, Image, type ImageProps, InputField, type InputFieldProps, type InputFieldRef, _default$2 as Label, type LabelProps, _default as ListItem, type ListItemProps, Loader, type LoaderProps, type LoaderSize, type PluginName, ScreenHolder, type ScreenHolderProps, _default$1 as StatusBar, type StatusBarProps, _default$4 as Switch, type SwitchProps, Text, type TextProps, View, type ViewProps, alertControls, alertsPlugin, asyncStoragePlugin, defaultAlertsPluginOptions, defaultAsyncStoragePluginOptions, generateAsyncStorage, getFormErrorObject, pressStrength, useAlertControls, useBetterComponentsContext, useDevice, useEventEmitter, useForm, useKeyboard };
|