@pixpilot/formily-shadcn 1.3.0 → 1.4.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/components/Checkbox.d.cts +2 -2
- package/dist/components/Checkbox.d.ts +2 -2
- package/dist/components/Column.d.cts +2 -2
- package/dist/components/DatePicker.d.cts +3 -3
- package/dist/components/DatePicker.d.ts +3 -3
- package/dist/components/FormGrid.d.cts +2 -2
- package/dist/components/FormGrid.d.ts +2 -2
- package/dist/components/IconPicker.d.ts +3 -3
- package/dist/components/IconToggle.d.ts +3 -3
- package/dist/components/Input.d.cts +3 -3
- package/dist/components/Input.d.ts +3 -3
- package/dist/components/Radio.d.ts +2 -2
- package/dist/components/Rating.d.cts +4 -4
- package/dist/components/Rating.d.ts +4 -4
- package/dist/components/Row.d.ts +2 -2
- package/dist/components/Separator.d.cts +2 -2
- package/dist/components/Separator.d.ts +2 -2
- package/dist/components/Switch.d.cts +2 -2
- package/dist/components/Switch.d.ts +2 -2
- package/dist/components/TagsInputInline.d.cts +2 -2
- package/dist/components/TagsInputInline.d.ts +3 -3
- package/dist/components/Textarea.d.cts +2 -2
- package/dist/components/Textarea.d.ts +2 -2
- package/dist/components/ToggleButton.d.cts +2 -2
- package/dist/components/ToggleButton.d.ts +3 -3
- package/dist/components/ToggleGroup.cjs +42 -16
- package/dist/components/ToggleGroup.d.cts +4 -3
- package/dist/components/ToggleGroup.d.ts +4 -3
- package/dist/components/ToggleGroup.js +42 -16
- package/dist/components/form-item/BaseFormItem.cjs +5 -0
- package/dist/components/form-item/BaseFormItem.js +5 -0
- package/dist/components/number/NumberInput.d.ts +3 -3
- package/dist/components/schema-field/schema-field-basics.d.cts +11 -11
- package/dist/components/schema-field/schema-field-basics.d.ts +303 -303
- package/dist/components/schema-field/schema-field-extended.d.cts +11 -11
- package/dist/components/schema-field/schema-field-extended.d.ts +633 -633
- package/dist/components/schema-field/schema-field.d.cts +11 -11
- package/dist/components/schema-field/schema-field.d.ts +397 -397
- package/dist/components/slider/Slider.d.ts +3 -3
- package/dist/components/slider/SliderInput.d.ts +2 -2
- package/dist/components/slider/SliderSelect.d.ts +3 -3
- package/package.json +2 -2
|
@@ -40,6 +40,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
40
40
|
const spacingConfig = require_spacing_config.getSpacingConfig(resolvedDescriptionPlacement, descriptionRenderedInline);
|
|
41
41
|
const ariaDescribedBy = [descriptionRenderedInline ? descriptionId : void 0, feedbackText != null ? feedbackId : void 0].filter(Boolean).join(" ");
|
|
42
42
|
const labelElement = effectiveLabel != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FormItemLabel.FormItemLabel, {
|
|
43
|
+
"data-slot": "form-item-label",
|
|
43
44
|
id,
|
|
44
45
|
label: effectiveLabel,
|
|
45
46
|
asterisk,
|
|
@@ -55,6 +56,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
55
56
|
descriptionInPopover: resolvedDescriptionPlacement === "popover" && description != null
|
|
56
57
|
});
|
|
57
58
|
const inputElement = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
59
|
+
"data-slot": "form-item-input",
|
|
58
60
|
...itemComponentsProps.inputWrapper,
|
|
59
61
|
...slots?.inputWrapper,
|
|
60
62
|
className: (0, __pixpilot_shadcn.cn)("relative", itemComponentsProps.inputWrapper?.className, slots?.inputWrapper?.className),
|
|
@@ -65,6 +67,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
65
67
|
}) : children
|
|
66
68
|
});
|
|
67
69
|
const descriptionElement = descriptionRenderedInline ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
70
|
+
"data-slot": "form-item-description",
|
|
68
71
|
...itemComponentsProps.description,
|
|
69
72
|
...slots?.description,
|
|
70
73
|
id: descriptionId,
|
|
@@ -75,6 +78,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
75
78
|
effectiveLabelPlacement === "top" && labelElement,
|
|
76
79
|
resolvedDescriptionPlacement === "top" && descriptionElement,
|
|
77
80
|
(effectiveLabelPlacement === "start" || effectiveLabelPlacement === "end") && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
81
|
+
"data-slot": "form-item-content",
|
|
78
82
|
className: (0, __pixpilot_shadcn.cn)("flex items-center gap-2", effectiveLabelPlacement === "start" && "flex-row"),
|
|
79
83
|
children: [
|
|
80
84
|
effectiveLabelPlacement === "start" && labelElement,
|
|
@@ -92,6 +96,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
92
96
|
...props,
|
|
93
97
|
className: (0, __pixpilot_shadcn.cn)("flex flex-col ", className, itemComponentsProps.container?.className, slots?.container?.className),
|
|
94
98
|
children: [contentElement, Boolean(feedbackText) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
99
|
+
"data-slot": "form-item-feedback",
|
|
95
100
|
...itemComponentsProps.error,
|
|
96
101
|
...slots?.error,
|
|
97
102
|
id: feedbackId,
|
|
@@ -35,6 +35,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
35
35
|
const spacingConfig = getSpacingConfig(resolvedDescriptionPlacement, descriptionRenderedInline);
|
|
36
36
|
const ariaDescribedBy = [descriptionRenderedInline ? descriptionId : void 0, feedbackText != null ? feedbackId : void 0].filter(Boolean).join(" ");
|
|
37
37
|
const labelElement = effectiveLabel != null && /* @__PURE__ */ jsx(FormItemLabel, {
|
|
38
|
+
"data-slot": "form-item-label",
|
|
38
39
|
id,
|
|
39
40
|
label: effectiveLabel,
|
|
40
41
|
asterisk,
|
|
@@ -50,6 +51,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
50
51
|
descriptionInPopover: resolvedDescriptionPlacement === "popover" && description != null
|
|
51
52
|
});
|
|
52
53
|
const inputElement = /* @__PURE__ */ jsx("div", {
|
|
54
|
+
"data-slot": "form-item-input",
|
|
53
55
|
...itemComponentsProps.inputWrapper,
|
|
54
56
|
...slots?.inputWrapper,
|
|
55
57
|
className: cn("relative", itemComponentsProps.inputWrapper?.className, slots?.inputWrapper?.className),
|
|
@@ -60,6 +62,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
60
62
|
}) : children
|
|
61
63
|
});
|
|
62
64
|
const descriptionElement = descriptionRenderedInline ? /* @__PURE__ */ jsx("p", {
|
|
65
|
+
"data-slot": "form-item-description",
|
|
63
66
|
...itemComponentsProps.description,
|
|
64
67
|
...slots?.description,
|
|
65
68
|
id: descriptionId,
|
|
@@ -70,6 +73,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
70
73
|
effectiveLabelPlacement === "top" && labelElement,
|
|
71
74
|
resolvedDescriptionPlacement === "top" && descriptionElement,
|
|
72
75
|
(effectiveLabelPlacement === "start" || effectiveLabelPlacement === "end") && /* @__PURE__ */ jsxs("div", {
|
|
76
|
+
"data-slot": "form-item-content",
|
|
73
77
|
className: cn("flex items-center gap-2", effectiveLabelPlacement === "start" && "flex-row"),
|
|
74
78
|
children: [
|
|
75
79
|
effectiveLabelPlacement === "start" && labelElement,
|
|
@@ -87,6 +91,7 @@ const BaseFormItem = ({ className, children, label, description, descriptionPlac
|
|
|
87
91
|
...props,
|
|
88
92
|
className: cn("flex flex-col ", className, itemComponentsProps.container?.className, slots?.container?.className),
|
|
89
93
|
children: [contentElement, Boolean(feedbackText) && /* @__PURE__ */ jsx("p", {
|
|
94
|
+
"data-slot": "form-item-feedback",
|
|
90
95
|
...itemComponentsProps.error,
|
|
91
96
|
...slots?.error,
|
|
92
97
|
id: feedbackId,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react1918 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/number/NumberInput.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Formily-connected Number Input component
|
|
6
6
|
*/
|
|
7
|
-
declare const NumberInput:
|
|
7
|
+
declare const NumberInput: react1918.ForwardRefExoticComponent<Omit<Partial<react1918.ClassAttributes<HTMLInputElement> & react1918.InputHTMLAttributes<HTMLInputElement> & {
|
|
8
8
|
prefix?: React.ReactNode;
|
|
9
9
|
suffix?: React.ReactNode;
|
|
10
10
|
groupClassName?: string;
|
|
11
11
|
prefixClassName?: string;
|
|
12
12
|
suffixClassName?: string;
|
|
13
|
-
}>, "ref"> &
|
|
13
|
+
}>, "ref"> & react1918.RefAttributes<unknown>>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { NumberInput };
|
|
@@ -76,7 +76,7 @@ declare const basicComponentRegistry: {
|
|
|
76
76
|
value?: Date;
|
|
77
77
|
onChange?: (date: Date | undefined) => void;
|
|
78
78
|
placeholder?: string;
|
|
79
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
79
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
80
80
|
decorator: string;
|
|
81
81
|
};
|
|
82
82
|
FormGrid: {
|
|
@@ -171,7 +171,7 @@ declare const basicComponents: {
|
|
|
171
171
|
value?: Date;
|
|
172
172
|
onChange?: (date: Date | undefined) => void;
|
|
173
173
|
placeholder?: string;
|
|
174
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
174
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
175
175
|
FormGrid: typeof FormGrid;
|
|
176
176
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
177
177
|
children?: react1432.ReactNode | undefined;
|
|
@@ -231,7 +231,7 @@ declare const SchemaFieldBasics: {
|
|
|
231
231
|
value?: Date;
|
|
232
232
|
onChange?: (date: Date | undefined) => void;
|
|
233
233
|
placeholder?: string;
|
|
234
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
234
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
235
235
|
FormGrid: typeof FormGrid;
|
|
236
236
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
237
237
|
children?: react1432.ReactNode | undefined;
|
|
@@ -290,7 +290,7 @@ declare const SchemaFieldBasics: {
|
|
|
290
290
|
value?: Date;
|
|
291
291
|
onChange?: (date: Date | undefined) => void;
|
|
292
292
|
placeholder?: string;
|
|
293
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
293
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
294
294
|
FormGrid: typeof FormGrid;
|
|
295
295
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
296
296
|
children?: react1432.ReactNode | undefined;
|
|
@@ -349,7 +349,7 @@ declare const SchemaFieldBasics: {
|
|
|
349
349
|
value?: Date;
|
|
350
350
|
onChange?: (date: Date | undefined) => void;
|
|
351
351
|
placeholder?: string;
|
|
352
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
352
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
353
353
|
FormGrid: typeof FormGrid;
|
|
354
354
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
355
355
|
children?: react1432.ReactNode | undefined;
|
|
@@ -408,7 +408,7 @@ declare const SchemaFieldBasics: {
|
|
|
408
408
|
value?: Date;
|
|
409
409
|
onChange?: (date: Date | undefined) => void;
|
|
410
410
|
placeholder?: string;
|
|
411
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
411
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
412
412
|
FormGrid: typeof FormGrid;
|
|
413
413
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
414
414
|
children?: react1432.ReactNode | undefined;
|
|
@@ -467,7 +467,7 @@ declare const SchemaFieldBasics: {
|
|
|
467
467
|
value?: Date;
|
|
468
468
|
onChange?: (date: Date | undefined) => void;
|
|
469
469
|
placeholder?: string;
|
|
470
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
470
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
471
471
|
FormGrid: typeof FormGrid;
|
|
472
472
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
473
473
|
children?: react1432.ReactNode | undefined;
|
|
@@ -526,7 +526,7 @@ declare const SchemaFieldBasics: {
|
|
|
526
526
|
value?: Date;
|
|
527
527
|
onChange?: (date: Date | undefined) => void;
|
|
528
528
|
placeholder?: string;
|
|
529
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
529
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
530
530
|
FormGrid: typeof FormGrid;
|
|
531
531
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
532
532
|
children?: react1432.ReactNode | undefined;
|
|
@@ -585,7 +585,7 @@ declare const SchemaFieldBasics: {
|
|
|
585
585
|
value?: Date;
|
|
586
586
|
onChange?: (date: Date | undefined) => void;
|
|
587
587
|
placeholder?: string;
|
|
588
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
588
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
589
589
|
FormGrid: typeof FormGrid;
|
|
590
590
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
591
591
|
children?: react1432.ReactNode | undefined;
|
|
@@ -644,7 +644,7 @@ declare const SchemaFieldBasics: {
|
|
|
644
644
|
value?: Date;
|
|
645
645
|
onChange?: (date: Date | undefined) => void;
|
|
646
646
|
placeholder?: string;
|
|
647
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
647
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
648
648
|
FormGrid: typeof FormGrid;
|
|
649
649
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
650
650
|
children?: react1432.ReactNode | undefined;
|
|
@@ -703,7 +703,7 @@ declare const SchemaFieldBasics: {
|
|
|
703
703
|
value?: Date;
|
|
704
704
|
onChange?: (date: Date | undefined) => void;
|
|
705
705
|
placeholder?: string;
|
|
706
|
-
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "
|
|
706
|
+
} & Omit<_pixpilot_shadcn_ui485.DatePickerProps, "selected" | "onSelect" | "mode">> & react1432.RefAttributes<unknown>>;
|
|
707
707
|
FormGrid: typeof FormGrid;
|
|
708
708
|
FormItem: react1432.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
709
709
|
children?: react1432.ReactNode | undefined;
|