@webority/ui-react 0.9.8 → 0.9.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.
@@ -21,9 +21,10 @@
21
21
  * @param {boolean} [props.disabled=false]
22
22
  * @param {"sm"|"md"|"lg"} [props.size="md"] Control size — sm/lg opt out of the shared height,
23
23
  * resizing both the swatch and the hex box together.
24
- * @param {string} [props.className]
24
+ * @param {string} [props.className] Applied to the hex text input (the control).
25
+ * @param {string} [props.fieldClassName] Applied to the `.field` wrapper.
25
26
  */
26
- export default function AppColorField({ value, onChange, label, required, error, hint, name, id, disabled, size, className, ...rest }: {
27
+ export default function AppColorField({ value, onChange, label, required, error, hint, name, id, disabled, size, className, fieldClassName, ...rest }: {
27
28
  value: string;
28
29
  onChange: (hex: string) => void;
29
30
  label?: import('react').ReactNode;
@@ -35,4 +36,5 @@ export default function AppColorField({ value, onChange, label, required, error,
35
36
  disabled?: boolean;
36
37
  size?: "sm" | "md" | "lg";
37
38
  className?: string;
39
+ fieldClassName?: string;
38
40
  }): import("react").JSX.Element;
@@ -25,7 +25,8 @@ import "@webority/ui-elements";
25
25
  * @param {0|1|2|3|4|5|6} [props.firstDay=0] First weekday of the calendar — 0 Sun (default), 1 Mon…
26
26
  * @param {string} [props.id]
27
27
  * @param {string} [props.ariaLabel]
28
- * @param {string} [props.className]
28
+ * @param {string} [props.className] Classes for the `<wui-datepicker>` control itself.
29
+ * @param {string} [props.fieldClassName] Classes for the `.field` wrapper (label/hint/error shell).
29
30
  * @param {import('react').Ref<HTMLElement>} [ref]
30
31
  */
31
32
  declare const AppDatePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -26,7 +26,8 @@ import "@webority/ui-elements";
26
26
  * @param {0|1|2|3|4|5|6} [props.firstDay=0] First weekday of the calendar — 0 Sun (default), 1 Mon…
27
27
  * @param {string} [props.id]
28
28
  * @param {string} [props.ariaLabel]
29
- * @param {string} [props.className]
29
+ * @param {string} [props.className] Class to apply to the control element.
30
+ * @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
30
31
  * @param {import('react').Ref<HTMLElement>} [ref]
31
32
  */
32
33
  declare const AppDateRangePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -9,7 +9,7 @@
9
9
  * file-type icon instead of a thumbnail.
10
10
  *
11
11
  * @param {object} props
12
- * @param {string} props.label
12
+ * @param {string} [props.label]
13
13
  * @param {File|{ url: string, name?: string }|Array<File|{ url: string, name?: string }>|null} [props.value]
14
14
  * @param {string} [props.name] Form field name; also the input id the label points at.
15
15
  * @param {(file: File|null) => void | (files: File[]) => void} props.onPick single → File|null; multiple → File[]
@@ -19,10 +19,12 @@
19
19
  * @param {number} [props.maxSizeMb=5]
20
20
  * @param {boolean} [props.required]
21
21
  * @param {string} [props.error]
22
- * @param {string} [props.className] Extra class on the field wrapper — e.g. a `file-w-*` width preset.
22
+ * @param {string} [props.className] Class to apply to the control element — the preview or dropzone shell.
23
+ * @param {string} [props.fieldClassName] Class to apply to the wrapper field div — e.g. a `file-w-*` width preset.
24
+ * @param {object} [props.style] Inline style; lands on the control with `className`.
23
25
  */
24
- export default function AppFilePicker({ label, value, name, onPick, multiple, maxFiles, accept, maxSizeMb, required, error, className, ...rest }: {
25
- label: string;
26
+ export default function AppFilePicker({ label, value, name, onPick, multiple, maxFiles, accept, maxSizeMb, required, error, className, fieldClassName, style, ...rest }: {
27
+ label?: string;
26
28
  value?: File | {
27
29
  url: string;
28
30
  name?: string;
@@ -39,4 +41,6 @@ export default function AppFilePicker({ label, value, name, onPick, multiple, ma
39
41
  required?: boolean;
40
42
  error?: string;
41
43
  className?: string;
44
+ fieldClassName?: string;
45
+ style?: object;
42
46
  }): import("react").JSX.Element;
@@ -40,7 +40,8 @@ import "@webority/ui-elements";
40
40
  * @param {boolean} [props.disabled=false]
41
41
  * @param {string} [props.name]
42
42
  * @param {string} [props.id]
43
- * @param {string} [props.className]
43
+ * @param {string} [props.className] Class to apply to the control element.
44
+ * @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
44
45
  * @param {import('react').Ref<HTMLElement>} [ref]
45
46
  */
46
47
  declare const AppOtpInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -1,3 +1,8 @@
1
1
  import "@webority/ui-elements";
2
+ /**
3
+ * @param {object} props
4
+ * @param {string} [props.className] Class to apply to the control element.
5
+ * @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
6
+ */
2
7
  declare const AppSelect: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
3
8
  export default AppSelect;
@@ -30,7 +30,8 @@ import "@webority/ui-elements";
30
30
  * @param {string} [props.unit] Suffix for the value label (e.g. '%')
31
31
  * @param {string} [props.id]
32
32
  * @param {string} [props.ariaLabel]
33
- * @param {string} [props.className]
33
+ * @param {string} [props.className] Class to apply to the control element.
34
+ * @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
34
35
  * @param {import('react').Ref<HTMLElement>} [ref]
35
36
  */
36
37
  declare const AppSlider: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -26,7 +26,8 @@ import "@webority/ui-elements";
26
26
  * @param {'sm'|'md'|'lg'} [props.size] Control height tier, matching AppInput
27
27
  * @param {string} [props.id]
28
28
  * @param {string} [props.ariaLabel]
29
- * @param {string} [props.className]
29
+ * @param {string} [props.className] Class to apply to the control element.
30
+ * @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
30
31
  * @param {import('react').Ref<HTMLElement>} [ref]
31
32
  */
32
33
  declare const AppTimePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;