@px-ui/forms 10.0.0 → 10.0.1
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.ts +15 -15
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { Combobox, DropzoneRenderProps, DropzoneRenderProps as DropzoneRenderProps$1, DropzoneState, DropzoneState as DropzoneState$1, FileMetadata, FileMetadata as FileMetadata$1, FileUploadItem, FileUploadItem as FileUploadItem$1, InputGroup, Label, Select, UploadConfig, UseFileUploadOptions, UseFileUploadOptions as FileUploadWithUploaderOptions, VariantProps } from "@px-ui/core";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
6
6
|
import "react-phone-input-2/lib/style.css";
|
|
7
7
|
|
|
@@ -59,7 +59,7 @@ interface SelectFieldProps<TItem = any, TMultiple extends boolean | undefined =
|
|
|
59
59
|
* />
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
|
-
declare function SelectField<TItem = any, TMultiple extends boolean | undefined = false>(props: SelectFieldProps<TItem, TMultiple>):
|
|
62
|
+
declare function SelectField<TItem = any, TMultiple extends boolean | undefined = false>(props: SelectFieldProps<TItem, TMultiple>): react_jsx_runtime0.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
//#region src/components/combobox-field.d.ts
|
|
65
65
|
type AllRootProps$1<TItem = any, TMultiple extends boolean | undefined = false> = React$1.ComponentProps<typeof Combobox.Root<TItem, TMultiple>>;
|
|
@@ -150,7 +150,7 @@ interface ComboboxFieldProps<TItem = any, TMultiple extends boolean | undefined
|
|
|
150
150
|
* onValueChange={setSelected}
|
|
151
151
|
* />
|
|
152
152
|
*/
|
|
153
|
-
declare function ComboboxField<TItem = any, TMultiple extends boolean | undefined = false>(props: ComboboxFieldProps<TItem, TMultiple>):
|
|
153
|
+
declare function ComboboxField<TItem = any, TMultiple extends boolean | undefined = false>(props: ComboboxFieldProps<TItem, TMultiple>): react_jsx_runtime0.JSX.Element;
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/components/currency-select-field.d.ts
|
|
156
156
|
/**
|
|
@@ -240,7 +240,7 @@ declare function CurrencySelectField({
|
|
|
240
240
|
contentProps,
|
|
241
241
|
inputRef,
|
|
242
242
|
readOnly
|
|
243
|
-
}: CurrencySelectFieldProps):
|
|
243
|
+
}: CurrencySelectFieldProps): react_jsx_runtime0.JSX.Element;
|
|
244
244
|
//#endregion
|
|
245
245
|
//#region src/constants/currency-flag-code.d.ts
|
|
246
246
|
/**
|
|
@@ -305,18 +305,18 @@ declare namespace field_d_exports {
|
|
|
305
305
|
declare function Set({
|
|
306
306
|
className,
|
|
307
307
|
...props
|
|
308
|
-
}: React.ComponentProps<"fieldset">):
|
|
308
|
+
}: React.ComponentProps<"fieldset">): react_jsx_runtime0.JSX.Element;
|
|
309
309
|
declare function Legend({
|
|
310
310
|
className,
|
|
311
311
|
variant,
|
|
312
312
|
...props
|
|
313
313
|
}: React.ComponentProps<"legend"> & {
|
|
314
314
|
variant?: "legend" | "label";
|
|
315
|
-
}):
|
|
315
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
316
316
|
declare function Group({
|
|
317
317
|
className,
|
|
318
318
|
...props
|
|
319
|
-
}: React.ComponentProps<"div">):
|
|
319
|
+
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
320
320
|
type FieldVariantsType = (props?: {
|
|
321
321
|
orientation?: "vertical" | "horizontal" | "responsive";
|
|
322
322
|
} | undefined) => string;
|
|
@@ -325,30 +325,30 @@ declare function Root({
|
|
|
325
325
|
className,
|
|
326
326
|
orientation,
|
|
327
327
|
...props
|
|
328
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>):
|
|
328
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime0.JSX.Element;
|
|
329
329
|
declare function Content({
|
|
330
330
|
className,
|
|
331
331
|
...props
|
|
332
|
-
}: React.ComponentProps<"div">):
|
|
332
|
+
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
333
333
|
declare function Label$1({
|
|
334
334
|
className,
|
|
335
335
|
...props
|
|
336
|
-
}: React.ComponentProps<typeof Label>):
|
|
336
|
+
}: React.ComponentProps<typeof Label>): react_jsx_runtime0.JSX.Element;
|
|
337
337
|
declare function Title({
|
|
338
338
|
className,
|
|
339
339
|
...props
|
|
340
|
-
}: React.ComponentProps<"div">):
|
|
340
|
+
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
341
341
|
declare function Description({
|
|
342
342
|
className,
|
|
343
343
|
...props
|
|
344
|
-
}: React.ComponentProps<"p">):
|
|
344
|
+
}: React.ComponentProps<"p">): react_jsx_runtime0.JSX.Element;
|
|
345
345
|
declare function Separator$1({
|
|
346
346
|
children,
|
|
347
347
|
className,
|
|
348
348
|
...props
|
|
349
349
|
}: React.ComponentProps<"div"> & {
|
|
350
350
|
children?: React.ReactNode;
|
|
351
|
-
}):
|
|
351
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
352
352
|
declare function Error({
|
|
353
353
|
className,
|
|
354
354
|
children,
|
|
@@ -358,7 +358,7 @@ declare function Error({
|
|
|
358
358
|
errors?: Array<{
|
|
359
359
|
message?: string;
|
|
360
360
|
} | undefined>;
|
|
361
|
-
}):
|
|
361
|
+
}): react_jsx_runtime0.JSX.Element | null;
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/form.d.ts
|
|
364
364
|
type FormControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TTransformedValues = TFieldValues> = {
|
|
@@ -392,7 +392,7 @@ declare const PhoneInput: ({
|
|
|
392
392
|
placeholder,
|
|
393
393
|
disabled,
|
|
394
394
|
className
|
|
395
|
-
}: PhoneInputProps) =>
|
|
395
|
+
}: PhoneInputProps) => react_jsx_runtime0.JSX.Element;
|
|
396
396
|
//#endregion
|
|
397
397
|
export { CURRENCY_FLAG_CODE, ComboboxField, type Currency, CurrencySelectField, type CurrencySelectFieldProps, type DropzoneRenderProps, type DropzoneState, field_d_exports as Field, type FileMetadata, FileUploadField, type FileUploadFieldProps, type FileUploadFieldRef, type FileUploadItem, type FileUploadWithUploaderOptions, FormCheckbox, FormInput, FormTextarea, PhoneInput, SelectField, type UploadConfig };
|
|
398
398
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@px-ui/forms",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Form components built on top of px-ui-core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react-dom": ">=19.0.0",
|
|
42
42
|
"react-hook-form": ">=7.0.0",
|
|
43
43
|
"zod": ">=3.0.0",
|
|
44
|
-
"@px-ui/core": "4.3.
|
|
44
|
+
"@px-ui/core": "4.3.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@hookform/resolvers": "^5.1.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vite": "npm:rolldown-vite@^7.2.5",
|
|
65
65
|
"vitest": "^4.0.9",
|
|
66
66
|
"zod": "4.0.0",
|
|
67
|
-
"@px-ui/core": "4.3.
|
|
67
|
+
"@px-ui/core": "4.3.1"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"lint": "eslint src --ext .ts,.tsx",
|