@design-system-rte/react 2.3.0 → 2.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/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
 
@@ -0,0 +1 @@
1
+ export default function ButtonVariantGrid(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function IconButtonVariantGrid(): import("react").JSX.Element;
@@ -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;
@@ -3,7 +3,7 @@ interface DatePickerMenuProps {
3
3
  currentValue: Date | null;
4
4
  updateFullDate: (date: Date | null) => void;
5
5
  updateDisplayedDate: (date: Date | null) => void;
6
- hasAction?: boolean;
6
+ hasActions?: boolean;
7
7
  onValidate?: () => void;
8
8
  onCancel?: () => void;
9
9
  displayValue: string;
@@ -12,5 +12,5 @@ interface DatePickerMenuProps {
12
12
  disabledDates?: readonly Date[];
13
13
  onChange?: (date: Date | null) => void;
14
14
  }
15
- declare const DatePickerMenu: ({ isOpen, currentValue, hasAction, updateFullDate, updateDisplayedDate, onValidate, onCancel, displayValue, minDate, maxDate, disabledDates, onChange, }: DatePickerMenuProps) => import("react").JSX.Element;
15
+ declare const DatePickerMenu: ({ isOpen, currentValue, hasActions, updateFullDate, updateDisplayedDate, onValidate, onCancel, displayValue, minDate, maxDate, disabledDates, onChange, }: DatePickerMenuProps) => import("react").JSX.Element;
16
16
  export default DatePickerMenu;
@@ -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;