@rte-ds/react 1.3.7 → 1.3.10
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/checkboxGroup/CheckboxGroup.d.ts +1 -0
- package/dist/components/icon/IconMap.d.ts +3 -0
- package/dist/components/icon/generated/Branch.d.ts +3 -0
- package/dist/components/icon/generated/Campaign.d.ts +3 -0
- package/dist/components/icon/generated/Switch.d.ts +3 -0
- package/dist/components/icon/generated/index.d.ts +3 -0
- package/dist/components/iconButton/IconButton.d.ts +1 -0
- package/dist/components/link/Link.d.ts +3 -0
- package/dist/components/radioButtonGroup/RadioButtonGroup.d.ts +5 -1
- package/dist/components/segmentedControl/Segment.d.ts +3 -1
- package/dist/components/segmentedControl/SegmentedControl.d.ts +2 -0
- package/dist/components/select/Select.d.ts +5 -1
- package/dist/components/sideNav/SideNav.d.ts +9 -0
- package/dist/components/sideNav/baseSideNav/BaseSideNav.d.ts +9 -0
- package/dist/components/switch/Switch.d.ts +2 -1
- package/dist/components/textInput/TextInput.d.ts +2 -0
- package/dist/components/textInput/baseTextuInput/BaseTextInput.d.ts +2 -0
- package/dist/components/textarea/Textarea.d.ts +1 -0
- package/dist/react-package.cjs +1 -1
- package/dist/react-package.js +2676 -2473
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CheckboxGroupProps as CoreCheckboxGroupProps } from '../../../../core/components/checkbox-group/checkbox-group.interface';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
interface CheckboxGroupProps extends CoreCheckboxGroupProps, React.InputHTMLAttributes<HTMLDivElement> {
|
|
4
|
+
tooltipTextLabel?: string;
|
|
4
5
|
}
|
|
5
6
|
declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
7
|
export default CheckboxGroup;
|
|
@@ -41,6 +41,8 @@ export declare const RegularIcons: {
|
|
|
41
41
|
"battery-full": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
bluetooth: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
"bluetooth-off": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
branch: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
campaign: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
46
|
"chart-bar": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
47
|
"chart-bar-stacked": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
48
|
check: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -106,6 +108,7 @@ export declare const RegularIcons: {
|
|
|
106
108
|
"side-navigation": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
107
109
|
sort: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
108
110
|
"support-agent": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
switch: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
109
112
|
timeline: ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
110
113
|
"trending-down": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
111
114
|
"trending-flat": ({ width, height, fill, ...props }: import('./Icon').IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -86,6 +86,7 @@ export { default as BookmarkFilled } from './BookmarkFilled';
|
|
|
86
86
|
export { default as BookmarkOutlined } from './BookmarkOutlined';
|
|
87
87
|
export { default as BookmarksFilled } from './BookmarksFilled';
|
|
88
88
|
export { default as BookmarksOutlined } from './BookmarksOutlined';
|
|
89
|
+
export { default as Branch } from './Branch';
|
|
89
90
|
export { default as BuildFilled } from './BuildFilled';
|
|
90
91
|
export { default as BuildOutlined } from './BuildOutlined';
|
|
91
92
|
export { default as CalendarAvailableFilled } from './CalendarAvailableFilled';
|
|
@@ -98,6 +99,7 @@ export { default as CalendarTodayFilled } from './CalendarTodayFilled';
|
|
|
98
99
|
export { default as CalendarTodayOutlined } from './CalendarTodayOutlined';
|
|
99
100
|
export { default as CallFilled } from './CallFilled';
|
|
100
101
|
export { default as CallOutlined } from './CallOutlined';
|
|
102
|
+
export { default as Campaign } from './Campaign';
|
|
101
103
|
export { default as CancelFilled } from './CancelFilled';
|
|
102
104
|
export { default as CancelOutlined } from './CancelOutlined';
|
|
103
105
|
export { default as CategoryFilled } from './CategoryFilled';
|
|
@@ -407,6 +409,7 @@ export { default as StopOutlined } from './StopOutlined';
|
|
|
407
409
|
export { default as SubtitlesFilled } from './SubtitlesFilled';
|
|
408
410
|
export { default as SubtitlesOutlined } from './SubtitlesOutlined';
|
|
409
411
|
export { default as SupportAgent } from './SupportAgent';
|
|
412
|
+
export { default as Switch } from './Switch';
|
|
410
413
|
export { default as TextSnippetFilled } from './TextSnippetFilled';
|
|
411
414
|
export { default as TextSnippetOutlined } from './TextSnippetOutlined';
|
|
412
415
|
export { default as Timeline } from './Timeline';
|
|
@@ -3,6 +3,7 @@ import { RegularIconIdKey, TogglableIconIdKey } from '../icon/Icon';
|
|
|
3
3
|
interface IconButtonProps extends Omit<CoreIconButtonProps, "disabled" | "name">, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
4
4
|
name: RegularIconIdKey | TogglableIconIdKey;
|
|
5
5
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
iconColor?: string;
|
|
6
7
|
}
|
|
7
8
|
declare const IconButton: import('react').ForwardRefExoticComponent<IconButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
9
|
export default IconButton;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { LinkProps as CoreLinkProps } from '../../../../core/components/link/link.interface';
|
|
2
|
+
type IconPosition = "left" | "right";
|
|
2
3
|
interface LinkProps extends CoreLinkProps, React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
icon?: string;
|
|
5
|
+
iconPosition?: IconPosition;
|
|
3
6
|
}
|
|
4
7
|
declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
5
8
|
export default Link;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { RadioButtonGroupProps as CoreRadioButtonGroupProps } from '../../../../core/components/radio-button-group/radio-button-group.interface';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
interface RadioButtonGroupProps extends CoreRadioButtonGroupProps, React.InputHTMLAttributes<HTMLDivElement> {
|
|
3
|
+
interface RadioButtonGroupProps extends CoreRadioButtonGroupProps, Omit<React.InputHTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
onChange?: (value: string) => void;
|
|
7
|
+
tooltipTextLabel?: string;
|
|
4
8
|
}
|
|
5
9
|
declare const RadioButtonGroup: React.ForwardRefExoticComponent<RadioButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
10
|
export default RadioButtonGroup;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SegmentProps as CoreSegmentProps } from '../../../../core/components/segmented-control/segmented-control.interface';
|
|
2
|
+
import { SegmentedControlSize } from './SegmentedControl';
|
|
2
3
|
interface SegmentProps extends CoreSegmentProps {
|
|
3
4
|
onClick?: (event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void;
|
|
5
|
+
size?: SegmentedControlSize;
|
|
4
6
|
}
|
|
5
|
-
declare const Segment: ({ id, icon, label, position, isSelected, onClick, badgeCount, badgeContent, badgeIcon, badgeType, badgeSize, showBadge, ...props }: SegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const Segment: ({ id, icon, label, position, isSelected, onClick, badgeCount, badgeContent, badgeIcon, badgeType, badgeSize, showBadge, size, ...props }: SegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export default Segment;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SegmentedControlProps as CoreSegmentedControlProps } from '../../../../core/components/segmented-control/segmented-control.interface';
|
|
2
|
+
export type SegmentedControlSize = "s" | "l";
|
|
2
3
|
interface SegmentedControlProps extends CoreSegmentedControlProps, Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
3
4
|
onChange: (id: string) => void;
|
|
5
|
+
size?: SegmentedControlSize;
|
|
4
6
|
}
|
|
5
7
|
declare const SegmentedControl: import('react').ForwardRefExoticComponent<SegmentedControlProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
8
|
export default SegmentedControl;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { SelectProps as coreSelectProps } from '../../../../core/components/select/select.interface';
|
|
2
|
-
|
|
2
|
+
interface SelectProps extends coreSelectProps {
|
|
3
|
+
labelId?: string;
|
|
4
|
+
tooltipTextLabel?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
7
|
export default Select;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { SideNavProps as CoreSideNavProps } from '../../../../core/components/side-nav/side-nav.interface';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
interface TeamDataItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
3
7
|
interface SideNavProps extends Partial<CoreSideNavProps>, Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
|
|
4
8
|
children?: ReactNode;
|
|
5
9
|
defaultCollapsed?: boolean;
|
|
6
10
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
11
|
+
showProfile?: boolean;
|
|
12
|
+
profile?: string;
|
|
13
|
+
onProfileClick?: () => void;
|
|
14
|
+
showTeamData?: boolean;
|
|
15
|
+
teamData?: TeamDataItem[];
|
|
7
16
|
}
|
|
8
17
|
declare const SideNav: import('react').ForwardRefExoticComponent<SideNavProps & import('react').RefAttributes<HTMLDivElement | HTMLElement>>;
|
|
9
18
|
export default SideNav;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { BaseSideNavProps as CoreSideNavProps } from '../../../../../core/components/side-nav/side-nav.interface';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
interface TeamDataItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
3
7
|
interface BaseSideNavProps extends Partial<Omit<CoreSideNavProps, "items">>, Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
|
|
4
8
|
header?: ReactNode;
|
|
5
9
|
body?: ReactNode;
|
|
6
10
|
footer?: ReactNode;
|
|
7
11
|
children?: ReactNode;
|
|
12
|
+
showProfile?: boolean;
|
|
13
|
+
profile?: string;
|
|
14
|
+
onProfileClick?: () => void;
|
|
15
|
+
showTeamData?: boolean;
|
|
16
|
+
teamData?: TeamDataItem[];
|
|
8
17
|
}
|
|
9
18
|
declare const BaseSideNav: import('react').ForwardRefExoticComponent<BaseSideNavProps & import('react').RefAttributes<HTMLDivElement | HTMLElement>>;
|
|
10
19
|
export default BaseSideNav;
|
|
@@ -2,6 +2,7 @@ import { SwitchProps as CoreSwitchProps } from '../../../../core/components/swit
|
|
|
2
2
|
import { InputHTMLAttributes } from 'react';
|
|
3
3
|
interface SwitchProps extends CoreSwitchProps, InputHTMLAttributes<HTMLInputElement> {
|
|
4
4
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
tooltipTextLabel?: string;
|
|
5
6
|
}
|
|
6
|
-
declare const Switch: ({ label, appearance, showLabel, showIcon, disabled, readOnly, checked, onChange, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const Switch: ({ label, appearance, showLabel, showIcon, disabled, readOnly, checked, required, showLabelRequirement, onChange, tooltipTextLabel, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default Switch;
|
|
@@ -2,6 +2,8 @@ import { TextInputProps as CoreTextInputProps } from '../../../../core/component
|
|
|
2
2
|
import { InputHTMLAttributes } from 'react';
|
|
3
3
|
interface TextInputProps extends CoreTextInputProps, Omit<InputHTMLAttributes<HTMLInputElement>, "id" | "onChange" | "value" | "defaultValue" | "placeholder"> {
|
|
4
4
|
onChange?: (value: string) => void;
|
|
5
|
+
unit?: string;
|
|
6
|
+
tooltipTextLabel?: string;
|
|
5
7
|
}
|
|
6
8
|
declare const TextInput: import('react').ForwardRefExoticComponent<TextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
7
9
|
export default TextInput;
|
|
@@ -5,6 +5,8 @@ interface BaseTextInputProps extends CoreTextInputProps, Omit<InputHTMLAttribute
|
|
|
5
5
|
rightSlot?: ReactNode;
|
|
6
6
|
inputStyle?: CSSProperties;
|
|
7
7
|
highlighted?: boolean;
|
|
8
|
+
unit?: string;
|
|
9
|
+
tooltipTextLabel?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const BaseTextInput: import('react').ForwardRefExoticComponent<BaseTextInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
10
12
|
export default BaseTextInput;
|
|
@@ -2,6 +2,7 @@ import { TextareaProps as CoreTextareaProps } from '../../../../core/components/
|
|
|
2
2
|
import { ChangeEvent, TextareaHTMLAttributes } from 'react';
|
|
3
3
|
interface TextareaProps extends CoreTextareaProps, Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value" | "defaultValue" | "placeholder"> {
|
|
4
4
|
onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
5
|
+
tooltipTextLabel?: string;
|
|
5
6
|
}
|
|
6
7
|
declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
7
8
|
export default Textarea;
|