@edux-design/forms 0.0.9 → 0.0.10
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/README.md +1 -0
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +10543 -821
- package/dist/index.mjs +10545 -816
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,6 +82,7 @@ Every `Field` instance mounts a internal context. `Label`, `Input`, `Textarea`,
|
|
|
82
82
|
- Provides layout (`flex`, `gap-8`) and context wiring.
|
|
83
83
|
- Accepts any children; typically wraps `Label`, a control (`Input`, `Textarea`, `Radio`), and optional `Field.Feedback`.
|
|
84
84
|
- Set `orientation="horizontal"` when you need inline layouts (e.g., Switch + label) without affecting other form groups.
|
|
85
|
+
- Use `justify="between"` with `orientation="horizontal"` to align left labels and right controls across a column.
|
|
85
86
|
- Re-exports `Field.Feedback` for ergonomic composition.
|
|
86
87
|
|
|
87
88
|
### `<Label>`
|
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ declare function Label({ children, hint, description, ...props }: {
|
|
|
20
20
|
* clearable?: boolean,
|
|
21
21
|
* startIcon?: React.ReactNode,
|
|
22
22
|
* endIcon?: React.ReactNode|string,
|
|
23
|
+
* size?: "default"|"small",
|
|
23
24
|
* value?: any,
|
|
24
25
|
* onChange?: (e: React.ChangeEvent<HTMLInputElement> | { target: { value: string } }) => void,
|
|
25
26
|
* }} InputProps
|
|
@@ -48,6 +49,7 @@ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
48
49
|
clearable?: boolean;
|
|
49
50
|
startIcon?: React.ReactNode;
|
|
50
51
|
endIcon?: React.ReactNode | string;
|
|
52
|
+
size?: "default" | "small";
|
|
51
53
|
value?: any;
|
|
52
54
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | {
|
|
53
55
|
target: {
|
|
@@ -177,7 +179,10 @@ type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
|
177
179
|
* @returns {React.ReactElement}
|
|
178
180
|
*/
|
|
179
181
|
declare function Feedback({ id, tone, children, className, ...rest }: FeedbackProps): React.ReactElement;
|
|
180
|
-
declare function Field({ children, orientation, className, }: FieldProps
|
|
182
|
+
declare function Field({ children, orientation, justify, className, }: FieldProps & {
|
|
183
|
+
orientation?: "vertical" | "horizontal";
|
|
184
|
+
justify?: "start" | "between";
|
|
185
|
+
}): React.ReactElement;
|
|
181
186
|
declare namespace Field {
|
|
182
187
|
export { Feedback };
|
|
183
188
|
}
|
|
@@ -241,6 +246,7 @@ declare const Option: react.ForwardRefExoticComponent<react.RefAttributes<any>>;
|
|
|
241
246
|
* @property {string} [contentClassName] - optional class for the popover content
|
|
242
247
|
* @property {string} [listClassName] - optional class for the list element
|
|
243
248
|
* @property {string} [optionClassName] - optional class for each option
|
|
249
|
+
* @property {"default"|"small"} [size="default"] - size variant for the combobox input
|
|
244
250
|
*/
|
|
245
251
|
declare const ComboboxRoot: react.ForwardRefExoticComponent<react.RefAttributes<any>>;
|
|
246
252
|
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare function Label({ children, hint, description, ...props }: {
|
|
|
20
20
|
* clearable?: boolean,
|
|
21
21
|
* startIcon?: React.ReactNode,
|
|
22
22
|
* endIcon?: React.ReactNode|string,
|
|
23
|
+
* size?: "default"|"small",
|
|
23
24
|
* value?: any,
|
|
24
25
|
* onChange?: (e: React.ChangeEvent<HTMLInputElement> | { target: { value: string } }) => void,
|
|
25
26
|
* }} InputProps
|
|
@@ -48,6 +49,7 @@ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
48
49
|
clearable?: boolean;
|
|
49
50
|
startIcon?: React.ReactNode;
|
|
50
51
|
endIcon?: React.ReactNode | string;
|
|
52
|
+
size?: "default" | "small";
|
|
51
53
|
value?: any;
|
|
52
54
|
onChange?: (e: React.ChangeEvent<HTMLInputElement> | {
|
|
53
55
|
target: {
|
|
@@ -177,7 +179,10 @@ type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
|
177
179
|
* @returns {React.ReactElement}
|
|
178
180
|
*/
|
|
179
181
|
declare function Feedback({ id, tone, children, className, ...rest }: FeedbackProps): React.ReactElement;
|
|
180
|
-
declare function Field({ children, orientation, className, }: FieldProps
|
|
182
|
+
declare function Field({ children, orientation, justify, className, }: FieldProps & {
|
|
183
|
+
orientation?: "vertical" | "horizontal";
|
|
184
|
+
justify?: "start" | "between";
|
|
185
|
+
}): React.ReactElement;
|
|
181
186
|
declare namespace Field {
|
|
182
187
|
export { Feedback };
|
|
183
188
|
}
|
|
@@ -241,6 +246,7 @@ declare const Option: react.ForwardRefExoticComponent<react.RefAttributes<any>>;
|
|
|
241
246
|
* @property {string} [contentClassName] - optional class for the popover content
|
|
242
247
|
* @property {string} [listClassName] - optional class for the list element
|
|
243
248
|
* @property {string} [optionClassName] - optional class for each option
|
|
249
|
+
* @property {"default"|"small"} [size="default"] - size variant for the combobox input
|
|
244
250
|
*/
|
|
245
251
|
declare const ComboboxRoot: react.ForwardRefExoticComponent<react.RefAttributes<any>>;
|
|
246
252
|
|