react-better-html 1.1.49 → 1.1.50
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/components/Chip.d.ts +1 -1
- package/dist/components/ColorThemeSwitch.d.ts +1 -1
- package/dist/components/Divider.d.ts +2 -2
- package/dist/components/Form.d.ts +1 -1
- package/dist/components/FormRow.d.ts +1 -1
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Image.d.ts +1 -1
- package/dist/components/Label.d.ts +1 -1
- package/dist/components/Loader.d.ts +1 -1
- package/dist/components/Modal.d.ts +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/PageHeader.d.ts +1 -1
- package/dist/components/PageHolder.d.ts +1 -1
- package/dist/index.d.ts +19 -19
- package/package.json +1 -1
|
@@ -5,11 +5,11 @@ type DividerProps = {
|
|
|
5
5
|
/** @default border */
|
|
6
6
|
backgroundColor?: string;
|
|
7
7
|
} & ComponentMarginProps;
|
|
8
|
-
type VerticalDividerProps = DividerProps & {
|
|
8
|
+
export type VerticalDividerProps = DividerProps & {
|
|
9
9
|
/** @default "100%" */
|
|
10
10
|
height?: number;
|
|
11
11
|
};
|
|
12
|
-
type HorizontalDividerProps = DividerProps & {
|
|
12
|
+
export type HorizontalDividerProps = DividerProps & {
|
|
13
13
|
text?: string;
|
|
14
14
|
/** @default textSecondary */
|
|
15
15
|
textColor?: string;
|
|
@@ -2,7 +2,7 @@ import { ComponentMarginProps } from "../types/components";
|
|
|
2
2
|
import { LoaderName } from "../types/loader";
|
|
3
3
|
import { AnyOtherString, OmitProps } from "../types/app";
|
|
4
4
|
import { useForm } from "../utils/hooks";
|
|
5
|
-
type FormProps = {
|
|
5
|
+
export type FormProps = {
|
|
6
6
|
form?: OmitProps<ReturnType<typeof useForm>, "focusField">;
|
|
7
7
|
submitButtonText?: string;
|
|
8
8
|
submitButtonLoaderName?: LoaderName | AnyOtherString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconName } from "../types/icon";
|
|
2
2
|
import { AnyOtherString } from "../types/app";
|
|
3
3
|
import { ComponentMarginProps, ComponentPropWithRef } from "../types/components";
|
|
4
|
-
type FormRowProps = {
|
|
4
|
+
export type FormRowProps = {
|
|
5
5
|
oneItemOnly?: boolean;
|
|
6
6
|
gap?: React.CSSProperties["gap"];
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyOtherString, OmitProps } from "../types/app";
|
|
2
2
|
import { ComponentHoverStyle, ComponentPropWithRef, ComponentStyle } from "../types/components";
|
|
3
3
|
import { IconName } from "../types/icon";
|
|
4
|
-
type IconProps = {
|
|
4
|
+
export type IconProps = {
|
|
5
5
|
name: IconName | AnyOtherString;
|
|
6
6
|
/** @default 16 */
|
|
7
7
|
size?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnyOtherString, OmitProps } from "../types/app";
|
|
2
2
|
import { ComponentHoverStyle, ComponentPropWithRef, ComponentStyle } from "../types/components";
|
|
3
3
|
import { AssetName } from "../types/asset";
|
|
4
|
-
type ImageProps = {
|
|
4
|
+
export type ImageProps = {
|
|
5
5
|
name?: AssetName | AnyOtherString;
|
|
6
6
|
} & OmitProps<React.ComponentProps<"img">, "style"> & ComponentStyle & ComponentHoverStyle;
|
|
7
7
|
type ImageComponent = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropWithRef } from "../types/components";
|
|
2
2
|
import { AnyOtherString, OmitProps } from "../types/app";
|
|
3
3
|
import { LoaderName } from "../types/loader";
|
|
4
|
-
type ModalProps = {
|
|
4
|
+
export type ModalProps = {
|
|
5
5
|
/**
|
|
6
6
|
* If you want to have a small modal, you can use 660px as it looks good on most screens.
|
|
7
7
|
*
|
package/dist/components/Modal.js
CHANGED
|
@@ -29,7 +29,7 @@ const DialogStylesElement = styled_components_1.default.dialog.withConfig({
|
|
|
29
29
|
transition: ${(props) => props.theme.styles.transition};
|
|
30
30
|
|
|
31
31
|
&::backdrop {
|
|
32
|
-
background-color: ${(props) => (props.colorTheme === "light" ? "#000000a0" : "#
|
|
32
|
+
background-color: ${(props) => (props.colorTheme === "light" ? "#000000a0" : "#222222e0")};
|
|
33
33
|
opacity: ${(props) => props.opacity};
|
|
34
34
|
transition: ${(props) => props.theme.styles.transition};
|
|
35
35
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import Div from "./components/Div";
|
|
2
|
-
import Text from "./components/Text";
|
|
3
|
-
import Loader from "./components/Loader";
|
|
4
|
-
import Icon from "./components/Icon";
|
|
5
|
-
import Image from "./components/Image";
|
|
6
|
-
import Button from "./components/Button";
|
|
7
|
-
import Divider from "./components/Divider";
|
|
8
|
-
import Modal, { type ModalRef } from "./components/Modal";
|
|
9
|
-
import PageHolder from "./components/PageHolder";
|
|
10
|
-
import PageHeader from "./components/PageHeader";
|
|
11
|
-
import Chip from "./components/Chip";
|
|
12
|
-
import InputField from "./components/InputField";
|
|
13
|
-
import Dropdown, { type DropdownOption } from "./components/Dropdown";
|
|
14
|
-
import ToggleInput from "./components/ToggleInput";
|
|
15
|
-
import Form from "./components/Form";
|
|
16
|
-
import Label from "./components/Label";
|
|
17
|
-
import FormRow from "./components/FormRow";
|
|
18
|
-
import ColorThemeSwitch from "./components/ColorThemeSwitch";
|
|
1
|
+
import Div, { type DivProps } from "./components/Div";
|
|
2
|
+
import Text, { type TextProps, TextAs } from "./components/Text";
|
|
3
|
+
import Loader, { type LoaderProps } from "./components/Loader";
|
|
4
|
+
import Icon, { type IconProps } from "./components/Icon";
|
|
5
|
+
import Image, { type ImageProps } from "./components/Image";
|
|
6
|
+
import Button, { type ButtonProps } from "./components/Button";
|
|
7
|
+
import Divider, { type HorizontalDividerProps, type VerticalDividerProps } from "./components/Divider";
|
|
8
|
+
import Modal, { type ModalRef, type ModalProps } from "./components/Modal";
|
|
9
|
+
import PageHolder, { type PageHolderProps } from "./components/PageHolder";
|
|
10
|
+
import PageHeader, { type PageHeaderProps } from "./components/PageHeader";
|
|
11
|
+
import Chip, { type ChipProps } from "./components/Chip";
|
|
12
|
+
import InputField, { type InputFieldProps, type TextareaFieldProps } from "./components/InputField";
|
|
13
|
+
import Dropdown, { type DropdownOption, type DropdownProps } from "./components/Dropdown";
|
|
14
|
+
import ToggleInput, { type ToggleInputRef, type ToggleInputProps } from "./components/ToggleInput";
|
|
15
|
+
import Form, { type FormProps } from "./components/Form";
|
|
16
|
+
import Label, { type LabelProps } from "./components/Label";
|
|
17
|
+
import FormRow, { type FormRowProps } from "./components/FormRow";
|
|
18
|
+
import ColorThemeSwitch, { type ColorThemeSwitchProps } from "./components/ColorThemeSwitch";
|
|
19
19
|
import BetterHtmlProvider, { useBetterHtmlContext, useTheme, useLoader, useLoaderControls, type BetterHtmlProviderValue } from "./components/BetterHtmlProvider";
|
|
20
20
|
import { usePageResize, usePageScroll, useMediaQuery, useBooleanState, useDebounceState, useForm, useUrlQuery } from "./utils/hooks";
|
|
21
21
|
import { generateRandomString, getBrowser, formatPhoneNumber, getFormErrorObject } from "./utils/functions";
|
|
@@ -29,4 +29,4 @@ import { type Color, type ColorName, type ColorTheme, type Colors, type Styles,
|
|
|
29
29
|
import { type BrowserName } from "./types/other";
|
|
30
30
|
import { isMobileDevice } from "./constants";
|
|
31
31
|
export * from "./plugins";
|
|
32
|
-
export { BetterHtmlProvider, BetterHtmlProviderValue, Div, Text, Loader, Icon, Image, Button, Divider, Modal, ModalRef, PageHolder, PageHeader, Chip, InputField, Dropdown, DropdownOption, ToggleInput, Form, Label, FormRow, ColorThemeSwitch, useBetterHtmlContext, useTheme, useLoader, useLoaderControls, usePageResize, usePageScroll, useMediaQuery, useBooleanState, useDebounceState, useForm, useUrlQuery, generateRandomString, getBrowser, formatPhoneNumber, getFormErrorObject, OmitProps, ExcludeOptions, PickValue, PartialRecord, DeepPartialRecord, PickAllRequired, AppConfig, BetterHtmlConfig, AssetName, AssetsConfig, IconName, IconsConfig, LoaderName, PluginName, BetterHtmlPlugin, LoaderConfig, Color, ColorName, ColorTheme, Colors, Styles, Theme, ThemeConfig, BrowserName, isMobileDevice, };
|
|
32
|
+
export { BetterHtmlProvider, BetterHtmlProviderValue, Div, DivProps, Text, TextProps, TextAs, Loader, LoaderProps, Icon, IconProps, Image, ImageProps, Button, ButtonProps, Divider, HorizontalDividerProps, VerticalDividerProps, Modal, ModalProps, ModalRef, PageHolder, PageHolderProps, PageHeader, PageHeaderProps, Chip, ChipProps, InputField, InputFieldProps, TextareaFieldProps, Dropdown, DropdownOption, DropdownProps, ToggleInput, ToggleInputRef, ToggleInputProps, Form, FormProps, Label, LabelProps, FormRow, FormRowProps, ColorThemeSwitch, ColorThemeSwitchProps, useBetterHtmlContext, useTheme, useLoader, useLoaderControls, usePageResize, usePageScroll, useMediaQuery, useBooleanState, useDebounceState, useForm, useUrlQuery, generateRandomString, getBrowser, formatPhoneNumber, getFormErrorObject, OmitProps, ExcludeOptions, PickValue, PartialRecord, DeepPartialRecord, PickAllRequired, AppConfig, BetterHtmlConfig, AssetName, AssetsConfig, IconName, IconsConfig, LoaderName, PluginName, BetterHtmlPlugin, LoaderConfig, Color, ColorName, ColorTheme, Colors, Styles, Theme, ThemeConfig, BrowserName, isMobileDevice, };
|