@festo-ui/react 11.0.0-dev.954 → 11.0.0-dev.955

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.
@@ -1,5 +1,5 @@
1
1
  import './ComboBox.scss';
2
- import { type Ref } from 'react';
2
+ import { type ReactNode, type Ref } from 'react';
3
3
  export interface ComboBoxOption<T> {
4
4
  readonly label: string;
5
5
  readonly data: T;
@@ -11,7 +11,7 @@ export interface ComboBoxProps<T> extends Omit<React.ComponentPropsWithoutRef<'d
11
11
  readonly name?: string;
12
12
  readonly disabled?: boolean;
13
13
  readonly required?: boolean;
14
- readonly label?: string;
14
+ readonly label?: ReactNode;
15
15
  readonly options?: ComboBoxOption<T>[];
16
16
  readonly hint?: string;
17
17
  readonly error?: string;
@@ -1,10 +1,10 @@
1
- import type { Ref } from 'react';
1
+ import type { ReactNode, Ref } from 'react';
2
2
  import type { SelectOption } from '../select/Select';
3
3
  import './MultiSelect.scss';
4
4
  export interface MultiSelectProps<T> extends Omit<React.ComponentPropsWithoutRef<'div'>, 'onChange' | 'value' | 'defaultValue'> {
5
5
  readonly defaultValue?: T[];
6
6
  readonly value?: T[];
7
- readonly label?: string;
7
+ readonly label?: ReactNode;
8
8
  readonly options?: SelectOption<T>[];
9
9
  readonly onChange?: (value: T[]) => void;
10
10
  readonly disabled?: boolean;
@@ -4,7 +4,7 @@ export interface SegmentConfiguration {
4
4
  readonly iconOnly?: boolean;
5
5
  }
6
6
  export interface SegmentProps extends PropsWithChildren, Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange' | 'defaultValue' | 'required' | 'disabled'> {
7
- readonly legend: string;
7
+ readonly legend: React.ReactNode;
8
8
  readonly config?: SegmentConfiguration;
9
9
  readonly onChange?: (value: any, event: ChangeEvent<HTMLInputElement>) => void;
10
10
  readonly value?: any;
@@ -10,7 +10,7 @@ export interface SelectProps<T> extends Omit<React.ComponentPropsWithoutRef<'div
10
10
  readonly name?: string;
11
11
  readonly disabled?: boolean;
12
12
  readonly required?: boolean;
13
- readonly label?: string;
13
+ readonly label?: ReactNode;
14
14
  readonly options?: SelectOption<T>[];
15
15
  readonly hint?: string;
16
16
  readonly error?: string;
@@ -1,12 +1,12 @@
1
1
  import './Slider.scss';
2
- import { type ComponentPropsWithoutRef } from 'react';
2
+ import { type ComponentPropsWithoutRef, type ReactNode } from 'react';
3
3
  export interface SliderProps extends Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'onChange' | 'value' | 'defaultValue' | 'min' | 'max' | 'step'> {
4
4
  readonly min: number;
5
5
  readonly max: number;
6
6
  readonly step?: number;
7
7
  readonly value: number;
8
8
  readonly onChangeCommitted?: (value: number) => void;
9
- readonly label?: string;
9
+ readonly label?: ReactNode;
10
10
  readonly showValue?: boolean;
11
11
  readonly onChange?: (value: number, event: React.ChangeEvent<HTMLInputElement>) => void;
12
12
  readonly widthOffset?: number;
@@ -4,7 +4,7 @@ export interface TextAreaProps extends Omit<ComponentPropsWithoutRef<'textarea'>
4
4
  readonly value?: string;
5
5
  readonly defaultValue?: string;
6
6
  readonly onChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
7
- readonly label: string;
7
+ readonly label: React.ReactNode;
8
8
  readonly hint?: string;
9
9
  readonly error?: string;
10
10
  readonly rows?: number;
@@ -4,7 +4,7 @@ export interface TextInputProps extends Omit<ComponentPropsWithoutRef<'input'>,
4
4
  readonly?: boolean;
5
5
  value?: string;
6
6
  defaultValue?: string;
7
- label?: string;
7
+ label?: ReactNode;
8
8
  hint?: string;
9
9
  error?: string;
10
10
  icon?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "11.0.0-dev.954",
3
+ "version": "11.0.0-dev.955",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "copyright": "Copyright (c) 2025 Festo SE & Co. KG. All rights reserved.",
6
6
  "license": "apache-2.0",