react-better-html 1.1.106 → 1.1.108
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -715,7 +715,7 @@ type TableRef = {
|
|
|
715
715
|
setCheckedItems: React.Dispatch<React.SetStateAction<boolean[]>>;
|
|
716
716
|
};
|
|
717
717
|
type TableComponentType = {
|
|
718
|
-
<DataItem>(props: ComponentPropWithRef<
|
|
718
|
+
<DataItem>(props: ComponentPropWithRef<TableRef, TableProps<DataItem>>): React.ReactElement;
|
|
719
719
|
};
|
|
720
720
|
declare const TableComponent: TableComponentType;
|
|
721
721
|
declare const Table: typeof TableComponent;
|
|
@@ -849,8 +849,10 @@ declare const loaderControls: {
|
|
|
849
849
|
stopLoading: (loaderName: LoaderName | AnyOtherString) => void;
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
+
declare const countries: Country[];
|
|
853
|
+
|
|
852
854
|
declare const isMobileDevice: boolean;
|
|
853
855
|
|
|
854
856
|
declare const reactRouterDomPlugin: BetterHtmlPlugin;
|
|
855
857
|
|
|
856
|
-
export { type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, type VerticalDividerProps, darkenColor, desaturateColor, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
|
|
858
|
+
export { type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, type VerticalDividerProps, countries, darkenColor, desaturateColor, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -715,7 +715,7 @@ type TableRef = {
|
|
|
715
715
|
setCheckedItems: React.Dispatch<React.SetStateAction<boolean[]>>;
|
|
716
716
|
};
|
|
717
717
|
type TableComponentType = {
|
|
718
|
-
<DataItem>(props: ComponentPropWithRef<
|
|
718
|
+
<DataItem>(props: ComponentPropWithRef<TableRef, TableProps<DataItem>>): React.ReactElement;
|
|
719
719
|
};
|
|
720
720
|
declare const TableComponent: TableComponentType;
|
|
721
721
|
declare const Table: typeof TableComponent;
|
|
@@ -849,8 +849,10 @@ declare const loaderControls: {
|
|
|
849
849
|
stopLoading: (loaderName: LoaderName | AnyOtherString) => void;
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
+
declare const countries: Country[];
|
|
853
|
+
|
|
852
854
|
declare const isMobileDevice: boolean;
|
|
853
855
|
|
|
854
856
|
declare const reactRouterDomPlugin: BetterHtmlPlugin;
|
|
855
857
|
|
|
856
|
-
export { type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, type VerticalDividerProps, darkenColor, desaturateColor, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
|
|
858
|
+
export { type AppConfig, type AssetName, type AssetsConfig, type BetterHtmlConfig, type BetterHtmlPlugin, _default as BetterHtmlProvider, type BetterHtmlProviderValue, type BrowserName, Button, type ButtonProps, Chip, type ChipProps, type Color, type ColorName, type ColorTheme, ColorThemeSwitch, type ColorThemeSwitchProps, type Colors, type DeepPartialRecord, Div, type DivProps, _default$3 as Divider, Dropdown, type DropdownOption, type DropdownProps, type ExcludeOptions, Foldable, type FoldableProps, type FoldableRef, Form, type FormProps, FormRow, type FormRowProps, type HorizontalDividerProps, _default$5 as Icon, type IconName, type IconProps, type IconsConfig, _default$4 as Image, type ImageProps, InputField, type InputFieldProps, _default$1 as Label, type LabelProps, Loader, type LoaderConfig, type LoaderName, type LoaderProps, Modal, type ModalProps, type ModalRef, type OmitProps, PageHeader, type PageHeaderProps, PageHolder, type PageHolderProps, type PartialRecord, type PickAllRequired, type PickValue, type PluginName, type Styles, type TabGroup, Table, type TableColumn, type TableProps, type TableRef, Tabs, type TabsProps, type TabsRef, Text, type TextAs, type TextProps, type TextareaFieldProps, type Theme, type ThemeConfig, _default$2 as ToggleInput, type ToggleInputProps, type ToggleInputRef, type VerticalDividerProps, countries, darkenColor, desaturateColor, formatPhoneNumber, generateRandomString, getBrowser, getFormErrorObject, isMobileDevice, lightenColor, loaderControls, reactRouterDomPlugin, saturateColor, useBetterHtmlContext, useBooleanState, useDebounceState, useForm, useLoader, useLoaderControls, useMediaQuery, usePageResize, usePageScroll, useTheme, useUrlQuery };
|
package/dist/index.js
CHANGED
|
@@ -52,6 +52,7 @@ __export(index_exports, {
|
|
|
52
52
|
Tabs: () => Tabs_default,
|
|
53
53
|
Text: () => Text_default,
|
|
54
54
|
ToggleInput: () => ToggleInput_default,
|
|
55
|
+
countries: () => countries,
|
|
55
56
|
darkenColor: () => darkenColor,
|
|
56
57
|
desaturateColor: () => desaturateColor,
|
|
57
58
|
formatPhoneNumber: () => formatPhoneNumber,
|
|
@@ -7188,10 +7189,11 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
|
|
|
7188
7189
|
);
|
|
7189
7190
|
const dataAfterPagination = (0, import_react23.useMemo)(() => {
|
|
7190
7191
|
if (pageSize === void 0) return dataAfterFilter;
|
|
7192
|
+
if (pageCount !== void 0) return dataAfterFilter;
|
|
7191
7193
|
const pageStartItemIndex = (currentPage - 1) * (pageSize ?? 0);
|
|
7192
7194
|
const pageEndItemIndex = pageStartItemIndex + (pageSize ?? 0);
|
|
7193
7195
|
return dataAfterFilter.slice(pageStartItemIndex, pageEndItemIndex);
|
|
7194
|
-
}, [dataAfterFilter, pageSize, currentPage]);
|
|
7196
|
+
}, [dataAfterFilter, pageSize, currentPage, pageCount]);
|
|
7195
7197
|
const everythingIsChecked = (0, import_react23.useMemo)(() => {
|
|
7196
7198
|
return checkedItems.every((checked) => checked) && checkedItems.length === data.length;
|
|
7197
7199
|
}, [data, checkedItems]);
|
|
@@ -7328,7 +7330,7 @@ var TableComponent = (0, import_react23.forwardRef)(function Table({
|
|
|
7328
7330
|
},
|
|
7329
7331
|
JSON.stringify(item) + rowIndex
|
|
7330
7332
|
)) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tr", { className: "withoutHover", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", { className: "noData", colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Text_default.unknown, { children: noDataItemsMessage }) }) }) }),
|
|
7331
|
-
pageSize !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tr", { className: "isFooter", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", { colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
7333
|
+
pageSize !== void 0 && pageCountInternal > 1 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("tr", { className: "isFooter", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("td", { colSpan: columns.length, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
7332
7334
|
Div_default.column,
|
|
7333
7335
|
{
|
|
7334
7336
|
position: "relative",
|
|
@@ -7903,6 +7905,7 @@ var reactRouterDomPlugin = {
|
|
|
7903
7905
|
Tabs,
|
|
7904
7906
|
Text,
|
|
7905
7907
|
ToggleInput,
|
|
7908
|
+
countries,
|
|
7906
7909
|
darkenColor,
|
|
7907
7910
|
desaturateColor,
|
|
7908
7911
|
formatPhoneNumber,
|