@design-system-rte/react 0.13.0 → 0.14.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/dist/components/breadcrumbs/breadcrumbItem/BreadcrumbItem.d.ts +10 -0
- package/dist/components/dropdown/DropdownUtils.d.ts +1 -1
- package/dist/components/splitButton/SplitButton.d.ts +9 -6
- package/dist/components/tooltip/Tooltip.d.ts +1 -0
- package/dist/react-package.cjs +1 -1
- package/dist/react-package.js +2978 -2852
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type BreadcrumbItemProps = {
|
|
2
|
+
item: {
|
|
3
|
+
label: string;
|
|
4
|
+
link: string;
|
|
5
|
+
};
|
|
6
|
+
isLast: boolean;
|
|
7
|
+
breadcrumbItemMaxWidth?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const BreadcrumbItem: ({ item, isLast, breadcrumbItemMaxWidth }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BreadcrumbItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const focusNextElement: (dropdown: HTMLElement) => void;
|
|
2
2
|
export declare const focusPreviousElement: (dropdown: HTMLElement) => void;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const focusDropdownFirstElement: (dropdownId: string) => void;
|
|
4
4
|
export declare const focusParentDropdownFirstElement: (dropdownId: string) => void;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { SplitButtonProps as CoreSplitButtonProps } from '../../../../core/components/split-button/split-button.interface';
|
|
2
|
-
import {
|
|
1
|
+
import { SplitButtonProps as CoreSplitButtonProps, SplitButtonItemProps as CoreSplitButtonOptionProps } from '../../../../core/components/split-button/split-button.interface';
|
|
2
|
+
import { ButtonHTMLAttributes, KeyboardEvent, MouseEvent } from 'react';
|
|
3
3
|
import { RegularIcons, TogglableIcons } from '../icon/IconMap';
|
|
4
|
-
interface
|
|
5
|
-
onClick?: (e:
|
|
6
|
-
|
|
4
|
+
interface SplitButtonOption extends CoreSplitButtonOptionProps {
|
|
5
|
+
onClick?: (e: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
interface SplitButtonProps extends Omit<CoreSplitButtonProps, "options">, Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
8
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
7
9
|
icon?: keyof typeof RegularIcons | keyof typeof TogglableIcons;
|
|
10
|
+
options: SplitButtonOption[];
|
|
8
11
|
}
|
|
9
|
-
declare const SplitButton:
|
|
12
|
+
declare const SplitButton: import('react').ForwardRefExoticComponent<SplitButtonProps & import('react').RefAttributes<HTMLElement | HTMLButtonElement>>;
|
|
10
13
|
export default SplitButton;
|
|
@@ -2,6 +2,7 @@ import { TooltipProps as CoreTooltipProps } from '../../../../core/components/to
|
|
|
2
2
|
interface TooltipProps extends CoreTooltipProps, Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
triggerStyles?: React.CSSProperties;
|
|
5
|
+
shouldFocusTrigger?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const Tooltip: import('react').ForwardRefExoticComponent<TooltipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
8
|
export default Tooltip;
|