@design-system-rte/react 0.13.0 → 0.15.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/modal/Modal.d.ts +13 -0
- package/dist/components/overlay/Overlay.d.ts +2 -1
- package/dist/components/splitButton/SplitButton.d.ts +9 -6
- package/dist/components/tooltip/Tooltip.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/react-package.cjs +1 -1
- package/dist/react-package.js +2063 -1827
- 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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModalProps as coreModalProps } from '../../../../core/components/modal/modal.interface';
|
|
2
|
+
import { default as Button } from '../button/Button';
|
|
3
|
+
type DSButtonElement = React.ReactElement<React.ComponentProps<typeof Button>, typeof Button>;
|
|
4
|
+
interface ModalProps extends coreModalProps, Omit<React.HTMLAttributes<HTMLDialogElement>, "id" | "title"> {
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
closeOnOverlayClick?: boolean;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
9
|
+
primaryButton: DSButtonElement;
|
|
10
|
+
secondaryButton?: DSButtonElement;
|
|
11
|
+
}
|
|
12
|
+
declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDialogElement>>;
|
|
13
|
+
export default Modal;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
type OverlayPortalProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
|
+
freezeNavigation?: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare const Overlay: ({ children }: OverlayPortalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export declare const Overlay: ({ children, freezeNavigation }: OverlayPortalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
7
|
export {};
|
|
@@ -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { default as Icon } from './components/icon/Icon.tsx';
|
|
|
11
11
|
import { default as IconButton } from './components/iconButton/IconButton.tsx';
|
|
12
12
|
import { default as IconButtonToggle } from './components/iconButtonToggle/IconButtonToggle.tsx';
|
|
13
13
|
import { default as Link } from './components/link/Link.tsx';
|
|
14
|
+
import { default as Modal } from './components/modal/Modal.tsx';
|
|
14
15
|
import { default as Popover } from './components/popover/Popover.tsx';
|
|
15
16
|
import { default as RadioButton } from './components/radioButton/RadioButton.tsx';
|
|
16
17
|
import { default as RadioButtonGroup } from './components/radioButtonGroup/RadioButtonGroup.tsx';
|
|
@@ -20,4 +21,4 @@ import { default as Switch } from './components/switch/Switch.tsx';
|
|
|
20
21
|
import { default as Textarea } from './components/textarea/Textarea.tsx';
|
|
21
22
|
import { default as TextInput } from './components/textInput/TextInput.tsx';
|
|
22
23
|
import { default as Tooltip } from './components/tooltip/Tooltip.tsx';
|
|
23
|
-
export { Button, Grid, Checkbox, CheckboxGroup, Link, RadioButton, RadioButtonGroup, Icon, IconButton, IconButtonToggle, SplitButton, Tooltip, TextInput, Chip, Badge, Textarea, Divider, Switch, SegmentedControl, Breadcrumbs, Banner, Popover, };
|
|
24
|
+
export { Button, Grid, Checkbox, CheckboxGroup, Link, RadioButton, RadioButtonGroup, Icon, IconButton, IconButtonToggle, SplitButton, Tooltip, TextInput, Chip, Badge, Textarea, Divider, Switch, SegmentedControl, Breadcrumbs, Banner, Popover, Modal, };
|