@design-system-rte/react 1.18.0 → 1.19.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.
@@ -1,3 +1,3 @@
1
1
  import { AssistiveTextProps } from '../../../../core/components/assistive-text/assistive-text.interface';
2
- declare const AssistiveText: ({ label, appearance, showIcon, href, width }: AssistiveTextProps) => import("react").JSX.Element;
2
+ declare const AssistiveText: ({ label, appearance, showIcon, href, width, id }: AssistiveTextProps) => import("react").JSX.Element;
3
3
  export default AssistiveText;
@@ -6,5 +6,5 @@ interface DrawerProps extends coreDrawerProps, Omit<React.HTMLAttributes<HTMLDiv
6
6
  children?: React.ReactNode | React.ReactNode[];
7
7
  width?: string;
8
8
  }
9
- declare const Drawer: ({ id, title, icon, iconAppearance, isOpen, onClose, onClickToggle, closeOnOverlayClick, primaryButtonLabel, secondaryButtonLabel, isCollapsible, content, header, footer, position, width, children, fixedHeader, showHeader, showFooter, closeOnEscape, isClosable, onClickPrimaryButton, onClickSecondaryButton, ...props }: DrawerProps) => import("react").JSX.Element | null;
9
+ declare const Drawer: ({ id, title, icon, iconAppearance, isOpen, onClose, onClickToggle, closeOnOverlayClick, primaryButtonLabel, secondaryButtonLabel, isCollapsible, content, header, footer, position, width, children, fixedHeader, showHeader, showFooter, closeOnEscape, isClosable, ariaLabel, onClickPrimaryButton, onClickSecondaryButton, ...props }: DrawerProps) => import("react").JSX.Element | null;
10
10
  export default Drawer;
@@ -1,3 +1,3 @@
1
1
  import { FileUploadProps } from '../../../../core';
2
- declare const FileUpload: ({ id, compactSpacing, label, showLabel, required, showLabelRequirement, disabled, assistiveTextLabel, assistiveAppearance, showAssistiveText, showAssistiveIcon, assistiveTextLink, isError, multiple, buttonLabel, accept, onChange, onUpload, errorFilesMap, onRemovingFile, }: FileUploadProps) => import("react").JSX.Element;
2
+ declare const FileUpload: ({ id, compactSpacing, label, required, showLabelRequirement, disabled, assistiveTextLabel, assistiveAppearance, showAssistiveText, showAssistiveIcon, assistiveTextLink, isError, multiple, buttonLabel, accept, onChange, onUpload, errorFilesMap, onRemovingFile, }: FileUploadProps) => import("react").JSX.Element;
3
3
  export default FileUpload;
@@ -1,8 +1,8 @@
1
- declare const Label: ({ id, label, htmlFor, required, showLabelRequirement, }: {
1
+ declare const Label: import('react').ForwardRefExoticComponent<{
2
2
  id?: string;
3
3
  label: string;
4
4
  htmlFor?: string;
5
5
  required?: boolean;
6
6
  showLabelRequirement?: boolean;
7
- }) => import("react").JSX.Element;
7
+ } & import('react').RefAttributes<HTMLDivElement>>;
8
8
  export default Label;
@@ -1,3 +1,3 @@
1
1
  import { DateRangePickerProps } from '../../../../../core';
2
- declare const DateRangePicker: ({ id, label, labelId, required, showLabelRequirement, value, defaultValue, onChange, hasAction, onValidate, onCancel, minDate, maxDate, disabledDates, disabled, assistiveTextLabel, assistiveAppearance, showAssistiveIcon, assistiveTextLink, isError, readonly, width, }: DateRangePickerProps) => import("react").JSX.Element;
2
+ declare const DateRangePicker: ({ id, label, labelId, required, showLabelRequirement, value, defaultValue, onChange, hasAction, onValidate, onCancel, minDate, maxDate, disabledDates, disabled, assistiveTextLabel, errorMessage, assistiveAppearance, showAssistiveIcon, assistiveTextLink, isError, readonly, width, }: DateRangePickerProps) => import("react").JSX.Element;
3
3
  export default DateRangePicker;
@@ -9,6 +9,9 @@ interface NavContentWrapperProps {
9
9
  onClick?: () => void;
10
10
  children: ReactNode;
11
11
  styleType?: "item" | "menu";
12
+ ariaExpanded?: boolean;
13
+ ariaControls?: string;
14
+ role?: "button";
12
15
  }
13
- declare function NavContentWrapper({ link, label, tabIndex, onKeyDown, onFocus, onBlur, onClick, children, styleType, }: NavContentWrapperProps): ReactNode;
16
+ declare function NavContentWrapper({ link, label, tabIndex, onKeyDown, onFocus, onBlur, onClick, children, styleType, ariaExpanded, ariaControls, role, }: NavContentWrapperProps): ReactNode;
14
17
  export default NavContentWrapper;
@@ -4,4 +4,5 @@ declare function getNavElementInCollapsedState(sideNav: HTMLElement, itemIndex:
4
4
  declare function getFooterNavElement(sideNav: HTMLElement, label: string): HTMLElement | null;
5
5
  declare function getHeaderTitleContainer(sideNav: HTMLElement, identifierText?: string): HTMLElement | null;
6
6
  declare function getNavItemContainer(sideNav: HTMLElement, itemId: string): HTMLElement | null;
7
- export { getNavElement, getNavElementInCollapsedState, getFooterNavElement, getHeaderTitleContainer, getNavItemContainer, getInteractiveElementFromListItem, };
7
+ declare function getCollapseButton(sideNav: HTMLElement): HTMLButtonElement | null;
8
+ export { getNavElement, getNavElementInCollapsedState, getFooterNavElement, getHeaderTitleContainer, getNavItemContainer, getInteractiveElementFromListItem, getCollapseButton, };
@@ -3,7 +3,7 @@ declare function isActiveItem(element: HTMLElement): boolean;
3
3
  declare function expectElementToHaveFocus(element: HTMLElement | null): void;
4
4
  declare function expectElementNotToHaveFocus(sideNav: HTMLElement, text: string): void;
5
5
  declare function expectElementToBeSkipped(sideNav: HTMLElement, text: string): void;
6
- declare function expectElementToBeAccessible(sideNav: HTMLElement, text: string): void;
6
+ declare function expectElementToBeAccessible(sideNav: HTMLElement, text: string): Promise<void>;
7
7
  declare function expectNavItemToBeActive(canvas: ReturnType<typeof within>, itemId: string): Promise<void>;
8
8
  declare function expectNavItemNotToBeActive(canvas: ReturnType<typeof within>, itemId: string): Promise<void>;
9
9
  export { expectElementToHaveFocus, expectElementNotToHaveFocus, expectElementToBeSkipped, expectElementToBeAccessible, expectNavItemToBeActive, expectNavItemNotToBeActive, isActiveItem, };