@design-system-rte/react 2.4.0 → 2.5.0

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 CHANGED
@@ -45,7 +45,7 @@ npm install @design-system-rte/react
45
45
 
46
46
  4. **Use Components:**
47
47
 
48
- Implement the different components as documented in the [Storybook](https://opensource.rte-france.com/design-system-rte/?path=/docs/react_composants-button--docs) provided with the library.
48
+ Implement the different components as documented on [Zeroheight](https://zeroheight.com/687a5ae28/p/59e89d-------button/b/941d67).
49
49
 
50
50
  ### Routing / SPA navigation
51
51
 
@@ -5,6 +5,7 @@ export interface BaseInputPickerProps extends BaseInputProps<string> {
5
5
  isFocused?: boolean;
6
6
  pickerInputRef?: React.RefObject<HTMLInputElement> | ((element: HTMLInputElement) => void);
7
7
  pickerRef?: React.RefObject<HTMLDivElement>;
8
+ openButtonRef?: React.RefObject<HTMLButtonElement>;
8
9
  onFocus?: () => void;
9
10
  onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
10
11
  onMouseUp?: (event: React.MouseEvent<HTMLInputElement>) => void;
@@ -15,6 +16,7 @@ export interface BaseInputPickerProps extends BaseInputProps<string> {
15
16
  ariaDescribedBy?: string;
16
17
  openButtonAriaLabel?: string;
17
18
  fixedWidth?: boolean;
19
+ required?: boolean;
18
20
  }
19
- declare const BaseInputPicker: ({ id, value, readOnly, icon, onChange, onFocus, onKeyDown, onMouseUp, onMouseDown, onOpenPicker, onBlur, isFocused, pickerInputRef, pickerRef, ariaLabelledBy, ariaDescribedBy, isError, disabled, openButtonAriaLabel, fixedWidth, }: BaseInputPickerProps) => import("react").JSX.Element;
21
+ declare const BaseInputPicker: ({ id, value, readOnly, icon, onChange, onFocus, onKeyDown, onMouseUp, onMouseDown, onOpenPicker, onBlur, isFocused, pickerInputRef, pickerRef, openButtonRef, ariaLabelledBy, ariaDescribedBy, isError, disabled, openButtonAriaLabel, fixedWidth, required, }: BaseInputPickerProps) => import("react").JSX.Element;
20
22
  export default BaseInputPicker;
@@ -1,5 +1,5 @@
1
1
  import { DatepickerProps as CoreDatePickerProps } from '../../../../../core/components/datepicker/datepicker.interface';
2
- interface DatepickerProps extends CoreDatePickerProps, Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "onChange" | "defaultValue"> {
2
+ interface DatepickerProps extends Omit<CoreDatePickerProps, "labelId">, Omit<React.HTMLAttributes<HTMLDivElement>, "id" | "onChange" | "defaultValue"> {
3
3
  }
4
4
  declare const DatePicker: import('react').ForwardRefExoticComponent<DatepickerProps & import('react').RefAttributes<HTMLDivElement>>;
5
5
  export default DatePicker;
@@ -1,6 +1,8 @@
1
1
  import { SegmentProps as CoreSegmentProps } from '../../../../core/components/segmented-control/segmented-control.interface';
2
2
  interface SegmentProps extends CoreSegmentProps {
3
3
  onClick?: (event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
4
+ segmentTabIndex: 0 | -1;
5
+ onSegmentFocus?: () => void;
4
6
  }
5
- declare const Segment: ({ id, icon, labelText, ariaLabel, position, isSelected, onClick, badgeCount, badgeContent, badgeIcon, badgeType, badgeSize, showBadge, appearance, isCompact, ...props }: SegmentProps) => import("react").JSX.Element;
7
+ declare const Segment: ({ id, icon, labelText, ariaLabel, position, isSelected, onClick, badgeCount, badgeContent, badgeIcon, badgeType, badgeSize, showBadge, appearance, isCompact, segmentTabIndex, onSegmentFocus, ...props }: SegmentProps) => import("react").JSX.Element;
6
8
  export default Segment;
@@ -2,5 +2,5 @@ import { StepperItemProps as coreStepperItemProps } from '../../../../../core/co
2
2
  export interface StepperItemProps extends coreStepperItemProps, Omit<React.HTMLAttributes<HTMLLIElement>, "onClick" | "id"> {
3
3
  onClick?: () => void;
4
4
  }
5
- declare const StepperItem: ({ number, name, completionState, orientation, onClick, clickableCompleteStep, isActive, ...props }: StepperItemProps) => import("react").JSX.Element;
5
+ declare const StepperItem: ({ number, name, completionState, orientation, onClick, clickableCompleteStep, isActive, children, ...props }: StepperItemProps) => import("react").JSX.Element;
6
6
  export default StepperItem;