react-better-html 1.1.253 → 1.1.255
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +229 -175
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +229 -175
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import { ComponentProps, ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { WebTarget } from 'styled-components';
|
|
7
|
-
import { useNavigate, useLocation, useInRouterContext, useSearchParams, createSearchParams } from 'react-router-dom';
|
|
7
|
+
import { Location, useNavigate, useLocation, useInRouterContext, useSearchParams, createSearchParams } from 'react-router-dom';
|
|
8
8
|
|
|
9
9
|
type PluginName = "alerts" | "react-router-dom" | "localStorage";
|
|
10
10
|
type BetterHtmlPluginConstructor<T extends object = object> = (config?: T) => BetterHtmlPlugin<T>;
|
|
@@ -84,6 +84,7 @@ declare const Button: typeof ButtonComponent & {
|
|
|
84
84
|
upload: typeof ButtonComponent.upload;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
+
type DropdownPosition = "left" | "right";
|
|
87
88
|
type InputFieldProps = {
|
|
88
89
|
label?: string;
|
|
89
90
|
labelFontFamily?: React.CSSProperties["fontFamily"];
|
|
@@ -125,6 +126,7 @@ type InputFieldComponentType = {
|
|
|
125
126
|
date: (props: ComponentPropWithRef<HTMLInputElement, InputFieldProps & {
|
|
126
127
|
minDate?: Date;
|
|
127
128
|
maxDate?: Date;
|
|
129
|
+
dropdownPosition?: DropdownPosition;
|
|
128
130
|
}>) => React.ReactElement;
|
|
129
131
|
dateTime: (props: ComponentPropWithRef<HTMLInputElement, OmitProps<InputFieldProps, keyof InputFieldDateTimeExcludeProps> & {
|
|
130
132
|
hoursToRender?: number[];
|
|
@@ -135,6 +137,7 @@ type InputFieldComponentType = {
|
|
|
135
137
|
defaultDateAfterTimePick?: `${number}-${number}-${number}`;
|
|
136
138
|
/** @default "00:00" */
|
|
137
139
|
defaultTimeAfterDatePick?: `${number}:${number}`;
|
|
140
|
+
dropdownPosition?: DropdownPosition;
|
|
138
141
|
}>) => React.ReactElement;
|
|
139
142
|
time: (props: ComponentPropWithRef<HTMLInputElement, OmitProps<InputFieldProps, keyof InputFieldDateTimeExcludeProps>> & {
|
|
140
143
|
hoursToRender?: number[];
|
|
@@ -143,6 +146,7 @@ type InputFieldComponentType = {
|
|
|
143
146
|
minTime?: string;
|
|
144
147
|
/** @default 23:59 */
|
|
145
148
|
maxTime?: string;
|
|
149
|
+
dropdownPosition?: DropdownPosition;
|
|
146
150
|
}) => React.ReactElement;
|
|
147
151
|
color: (props: ComponentPropWithRef<HTMLInputElement, InputFieldProps>) => React.ReactElement;
|
|
148
152
|
};
|
|
@@ -1089,6 +1093,7 @@ type SideMenuItem = {
|
|
|
1089
1093
|
type SideMenuProps = {
|
|
1090
1094
|
items: SideMenuItem[];
|
|
1091
1095
|
bottomItems?: SideMenuItem[];
|
|
1096
|
+
location: Location;
|
|
1092
1097
|
topSpace?: number;
|
|
1093
1098
|
logoAssetName?: AssetName | AnyOtherString;
|
|
1094
1099
|
logoUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import { ComponentProps, ReactNode } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { WebTarget } from 'styled-components';
|
|
7
|
-
import { useNavigate, useLocation, useInRouterContext, useSearchParams, createSearchParams } from 'react-router-dom';
|
|
7
|
+
import { Location, useNavigate, useLocation, useInRouterContext, useSearchParams, createSearchParams } from 'react-router-dom';
|
|
8
8
|
|
|
9
9
|
type PluginName = "alerts" | "react-router-dom" | "localStorage";
|
|
10
10
|
type BetterHtmlPluginConstructor<T extends object = object> = (config?: T) => BetterHtmlPlugin<T>;
|
|
@@ -84,6 +84,7 @@ declare const Button: typeof ButtonComponent & {
|
|
|
84
84
|
upload: typeof ButtonComponent.upload;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
+
type DropdownPosition = "left" | "right";
|
|
87
88
|
type InputFieldProps = {
|
|
88
89
|
label?: string;
|
|
89
90
|
labelFontFamily?: React.CSSProperties["fontFamily"];
|
|
@@ -125,6 +126,7 @@ type InputFieldComponentType = {
|
|
|
125
126
|
date: (props: ComponentPropWithRef<HTMLInputElement, InputFieldProps & {
|
|
126
127
|
minDate?: Date;
|
|
127
128
|
maxDate?: Date;
|
|
129
|
+
dropdownPosition?: DropdownPosition;
|
|
128
130
|
}>) => React.ReactElement;
|
|
129
131
|
dateTime: (props: ComponentPropWithRef<HTMLInputElement, OmitProps<InputFieldProps, keyof InputFieldDateTimeExcludeProps> & {
|
|
130
132
|
hoursToRender?: number[];
|
|
@@ -135,6 +137,7 @@ type InputFieldComponentType = {
|
|
|
135
137
|
defaultDateAfterTimePick?: `${number}-${number}-${number}`;
|
|
136
138
|
/** @default "00:00" */
|
|
137
139
|
defaultTimeAfterDatePick?: `${number}:${number}`;
|
|
140
|
+
dropdownPosition?: DropdownPosition;
|
|
138
141
|
}>) => React.ReactElement;
|
|
139
142
|
time: (props: ComponentPropWithRef<HTMLInputElement, OmitProps<InputFieldProps, keyof InputFieldDateTimeExcludeProps>> & {
|
|
140
143
|
hoursToRender?: number[];
|
|
@@ -143,6 +146,7 @@ type InputFieldComponentType = {
|
|
|
143
146
|
minTime?: string;
|
|
144
147
|
/** @default 23:59 */
|
|
145
148
|
maxTime?: string;
|
|
149
|
+
dropdownPosition?: DropdownPosition;
|
|
146
150
|
}) => React.ReactElement;
|
|
147
151
|
color: (props: ComponentPropWithRef<HTMLInputElement, InputFieldProps>) => React.ReactElement;
|
|
148
152
|
};
|
|
@@ -1089,6 +1093,7 @@ type SideMenuItem = {
|
|
|
1089
1093
|
type SideMenuProps = {
|
|
1090
1094
|
items: SideMenuItem[];
|
|
1091
1095
|
bottomItems?: SideMenuItem[];
|
|
1096
|
+
location: Location;
|
|
1092
1097
|
topSpace?: number;
|
|
1093
1098
|
logoAssetName?: AssetName | AnyOtherString;
|
|
1094
1099
|
logoUrl?: string;
|