react-native-better-html 1.0.25 → 1.0.27
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 +19 -6
- package/dist/index.d.ts +19 -6
- package/dist/index.js +207 -138
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +155 -87
- 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,24 @@ 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;
|
|
210
|
+
infoMessage?: string;
|
|
211
|
+
errorMessage?: string;
|
|
207
212
|
onChange?: (isChecked: boolean) => void;
|
|
208
213
|
};
|
|
209
|
-
declare function CheckBox({ isChecked, defaultIsChecked, size, disabled, onChange }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
210
|
-
declare const _default$
|
|
214
|
+
declare function CheckBox({ isChecked, defaultIsChecked, size, text, required, disabled, infoMessage, errorMessage, onChange, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
215
|
+
declare const _default$3: react.MemoExoticComponent<typeof CheckBox>;
|
|
211
216
|
|
|
212
217
|
declare function useDevice(): {
|
|
213
218
|
safeArea: {
|
|
@@ -296,6 +301,14 @@ declare const Text: typeof TextComponent & {
|
|
|
296
301
|
unknown: typeof TextComponent.unknown;
|
|
297
302
|
};
|
|
298
303
|
|
|
304
|
+
type LabelProps = {
|
|
305
|
+
text?: string;
|
|
306
|
+
required?: boolean;
|
|
307
|
+
isError?: boolean;
|
|
308
|
+
};
|
|
309
|
+
declare function Label({ text, required, isError }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
310
|
+
declare const _default$2: react.MemoExoticComponent<typeof Label>;
|
|
311
|
+
|
|
299
312
|
type ButtonProps<Value> = {
|
|
300
313
|
text?: string;
|
|
301
314
|
/** @default 16 */
|
|
@@ -546,4 +559,4 @@ type AsyncStoragePluginOptions = {};
|
|
|
546
559
|
declare const defaultAsyncStoragePluginOptions: Required<AsyncStoragePluginOptions>;
|
|
547
560
|
declare const asyncStoragePlugin: BetterComponentsPluginConstructor<AsyncStoragePluginOptions>;
|
|
548
561
|
|
|
549
|
-
export { type AlertsPluginOptions, Animate, type AnimateTextProps, type AnimateViewProps, type AppConfig, type AsyncStoragePluginOptions, type BetterComponentsConfig, type BetterComponentsPlugin, _default$
|
|
562
|
+
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,24 @@ 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;
|
|
210
|
+
infoMessage?: string;
|
|
211
|
+
errorMessage?: string;
|
|
207
212
|
onChange?: (isChecked: boolean) => void;
|
|
208
213
|
};
|
|
209
|
-
declare function CheckBox({ isChecked, defaultIsChecked, size, disabled, onChange }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
210
|
-
declare const _default$
|
|
214
|
+
declare function CheckBox({ isChecked, defaultIsChecked, size, text, required, disabled, infoMessage, errorMessage, onChange, }: CheckBoxProps): react_jsx_runtime.JSX.Element;
|
|
215
|
+
declare const _default$3: react.MemoExoticComponent<typeof CheckBox>;
|
|
211
216
|
|
|
212
217
|
declare function useDevice(): {
|
|
213
218
|
safeArea: {
|
|
@@ -296,6 +301,14 @@ declare const Text: typeof TextComponent & {
|
|
|
296
301
|
unknown: typeof TextComponent.unknown;
|
|
297
302
|
};
|
|
298
303
|
|
|
304
|
+
type LabelProps = {
|
|
305
|
+
text?: string;
|
|
306
|
+
required?: boolean;
|
|
307
|
+
isError?: boolean;
|
|
308
|
+
};
|
|
309
|
+
declare function Label({ text, required, isError }: LabelProps): react_jsx_runtime.JSX.Element;
|
|
310
|
+
declare const _default$2: react.MemoExoticComponent<typeof Label>;
|
|
311
|
+
|
|
299
312
|
type ButtonProps<Value> = {
|
|
300
313
|
text?: string;
|
|
301
314
|
/** @default 16 */
|
|
@@ -546,4 +559,4 @@ type AsyncStoragePluginOptions = {};
|
|
|
546
559
|
declare const defaultAsyncStoragePluginOptions: Required<AsyncStoragePluginOptions>;
|
|
547
560
|
declare const asyncStoragePlugin: BetterComponentsPluginConstructor<AsyncStoragePluginOptions>;
|
|
548
561
|
|
|
549
|
-
export { type AlertsPluginOptions, Animate, type AnimateTextProps, type AnimateViewProps, type AppConfig, type AsyncStoragePluginOptions, type BetterComponentsConfig, type BetterComponentsPlugin, _default$
|
|
562
|
+
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 };
|