@ringcentral/spring-ui 1.9.0 → 1.9.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/Avatar.js +12 -3
- package/CircularProgressIndicator.js +1 -0
- package/LinearProgressIndicator.js +6 -5
- package/Link.js +2 -2
- package/Radio.js +6 -3
- package/Switch.js +2 -2
- package/Tooltip.js +1 -1
- package/chunks/Button.js +1 -1
- package/chunks/CircularProgressIndicator.js +3 -1
- package/chunks/IconButtonLabel.js +2 -3
- package/chunks/Modal.js +4 -8
- package/chunks/Tooltip.js +1 -1
- package/index.css +0 -15
- package/package.json +4 -4
- package/src/Checkbox/Checkbox.classes.d.ts +1 -1
- package/src/Checkbox/Checkbox.d.ts +2 -2
- package/src/Checkbox/Checkbox.type.d.ts +4 -4
- package/src/CircularProgressIndicator/CircularProgressIndicator.type.d.ts +2 -2
- package/src/Dropdown/Dropdown.type.d.ts +4 -4
- package/src/FormField/FormField.type.d.ts +2 -2
- package/src/LinearProgressIndicator/LinearProgressIndicator.type.d.ts +2 -2
- package/src/Popper/Popper.d.ts +1 -1
- package/src/Radio/Radio.d.ts +2 -2
- package/src/Radio/Radio.type.d.ts +4 -4
- package/src/SubMenu/PopperMenu.d.ts +1 -1
- package/src/Switch/Switch.d.ts +2 -2
- package/src/Switch/Switch.type.d.ts +4 -4
- package/src/Tooltip/TooltipView.classes.d.ts +1 -1
package/Avatar.js
CHANGED
|
@@ -32,7 +32,7 @@ const StatusIndicatorSizeMap = {
|
|
|
32
32
|
};
|
|
33
33
|
const Avatar = forwardRef((inProps, ref) => {
|
|
34
34
|
const props = useThemeProps({ props: inProps, name: 'Avatar' });
|
|
35
|
-
const { component, classes, className, children: childrenProp, imgProps, alt, src, srcSet, size: sizeProp, color = 'default', variant = 'circle', clickable: clickableProp, symbol, avatarShapeRef, showStatusIndicator, IndicatorProps, rootProps, disabled, ...rest } = props;
|
|
35
|
+
const { component, classes, className, children: childrenProp, imgProps, alt, src, srcSet, size: sizeProp, color = 'default', variant = 'circle', clickable: clickableProp, symbol, avatarShapeRef, showStatusIndicator, IndicatorProps, rootProps, disabled, onClick, ...rest } = props;
|
|
36
36
|
let children = null;
|
|
37
37
|
const loaded = useImgLoaded({
|
|
38
38
|
...imgProps,
|
|
@@ -73,7 +73,7 @@ const Avatar = forwardRef((inProps, ref) => {
|
|
|
73
73
|
}
|
|
74
74
|
const { focusVisible, focusVisibleRef, focusVisibleHandlers } = useFocusVisible(props);
|
|
75
75
|
const avatarRef = useForkRef(avatarShapeRef, focusVisibleRef);
|
|
76
|
-
const clickable = clickableProp !== false &&
|
|
76
|
+
const clickable = clickableProp !== false && onClick ? true : clickableProp ?? false;
|
|
77
77
|
const interactive = clickable && !disabled;
|
|
78
78
|
const supportsStatusIndicator = size !== 'xxsmall' && size !== 'xsmall';
|
|
79
79
|
let AvatarShape = component ?? 'div';
|
|
@@ -106,13 +106,22 @@ const Avatar = forwardRef((inProps, ref) => {
|
|
|
106
106
|
tabIndex: -1,
|
|
107
107
|
}
|
|
108
108
|
: {};
|
|
109
|
+
const rootClickHandler = onClick;
|
|
110
|
+
const handleClick = (event) => {
|
|
111
|
+
if (disabled) {
|
|
112
|
+
event.preventDefault();
|
|
113
|
+
event.stopPropagation();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
rootClickHandler?.(event);
|
|
117
|
+
};
|
|
109
118
|
return (jsx(Overlap, { position: {
|
|
110
119
|
bottom: '-1px',
|
|
111
120
|
right: '-1px',
|
|
112
121
|
}, floater: supportsStatusIndicator && showStatusIndicator ? (jsx(StatusIndicator, { size: StatusIndicatorSizeMap[size], ...IndicatorProps })) : undefined, className: clsx(className, groupClassName), classes: {
|
|
113
122
|
root: cls('root', size, { disabled }),
|
|
114
123
|
floater: cls('indicator', interactive && 'clickable-indicator'),
|
|
115
|
-
}, ...rootProps, ref: ref, children: jsxs(AvatarShape, { className: cls('shape', variant, color, { clickable }, interactive && 'clickable-shape', interactive && `clickable-${variant}`), ...focusVisibleHandlers, ...shapeProps, ...ariaProps, ...nonInteractiveShapeProps, ...rest, ref: avatarRef, children: [jsx("div", { className: cls('content', `${variant}-content`, `${size}-content`, `${variant}-${color}`), children: children }), variant === 'circle' && (jsx("div", { className: cls('hover-tint', interactive && 'clickable-hover-tint', interactive && `clickable-hover-tint-${color}-${variant}`) })), variant === 'squircle' && interactive && (jsx(Squircle, { interactive: false, className: cls('hover-tint', interactive && 'clickable-hover-tint', interactive && `clickable-hover-tint-${color}-${variant}`) }))] }) }));
|
|
124
|
+
}, ...rootProps, ref: ref, children: jsxs(AvatarShape, { className: cls('shape', variant, color, { clickable }, interactive && 'clickable-shape', interactive && `clickable-${variant}`), ...focusVisibleHandlers, ...shapeProps, ...ariaProps, ...nonInteractiveShapeProps, ...rest, onClick: onClick ? handleClick : undefined, ref: avatarRef, children: [jsx("div", { className: cls('content', `${variant}-content`, `${size}-content`, `${variant}-${color}`), children: children }), variant === 'circle' && (jsx("div", { className: cls('hover-tint', interactive && 'clickable-hover-tint', interactive && `clickable-hover-tint-${color}-${variant}`) })), variant === 'squircle' && interactive && (jsx(Squircle, { interactive: false, className: cls('hover-tint', interactive && 'clickable-hover-tint', interactive && `clickable-hover-tint-${color}-${variant}`) }))] }) }));
|
|
116
125
|
});
|
|
117
126
|
Avatar.displayName = 'SuiAvatar';
|
|
118
127
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
3
4
|
import { useClasses, useId } from '@ringcentral/spring-base';
|
|
4
5
|
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
5
6
|
|
|
@@ -14,13 +15,14 @@ const LinearProgressIndicator = forwardRef((inProps, ref) => {
|
|
|
14
15
|
const cls = useClasses('linear-progress-indicator', classes, className);
|
|
15
16
|
const labelId = useId();
|
|
16
17
|
const progressBarProps = progressBarPropsProp || {};
|
|
18
|
+
const progressBarLabelledBy = progressBarProps['aria-labelledby'];
|
|
17
19
|
if (max === undefined || value === undefined)
|
|
18
20
|
return null;
|
|
19
|
-
const labelledBy = progressBarProps['aria-labelledby'] || labelId;
|
|
20
21
|
progressBarProps['aria-valuenow'] = value;
|
|
21
22
|
let labelNode = label;
|
|
22
23
|
if (typeof props.label === 'string') {
|
|
23
|
-
labelNode = (jsx("span", { id:
|
|
24
|
+
labelNode = (jsx("span", { id: progressBarLabelledBy || labelId, className: cls('label', `${variant}-label`), children: props.label }));
|
|
25
|
+
progressBarProps['aria-labelledby'] = progressBarLabelledBy || labelId;
|
|
24
26
|
}
|
|
25
27
|
let detailsNode = details;
|
|
26
28
|
if (typeof details === 'string') {
|
|
@@ -30,12 +32,11 @@ const LinearProgressIndicator = forwardRef((inProps, ref) => {
|
|
|
30
32
|
progressBarProps['aria-valuemin'] = min;
|
|
31
33
|
if (max !== 100)
|
|
32
34
|
progressBarProps['aria-valuemax'] = max;
|
|
33
|
-
if (labelNode)
|
|
34
|
-
progressBarProps['aria-labelledby'] = labelledBy;
|
|
35
35
|
const percentage = Math.round((100 / max) * value);
|
|
36
|
+
const { className: progressBarClassName, ...restProgressBarProps } = progressBarProps;
|
|
36
37
|
return (jsxs("span", { className: cls('root', variant, {
|
|
37
38
|
slim,
|
|
38
|
-
}), ...rest, ref: ref, children: [labelNode, jsx("span", { className: cls('track', `${variant}-track`, slim && `${variant}-track-slim`), role: "progressbar", ...
|
|
39
|
+
}), ...rest, ref: ref, children: [labelNode, jsx("span", { className: clsx(cls('track', `${variant}-track`, slim && `${variant}-track-slim`), progressBarClassName), role: "progressbar", ...restProgressBarProps, children: jsx("span", { className: cls('bar', `${variant}-bar`), style: {
|
|
39
40
|
width: `${percentage}%`,
|
|
40
41
|
} }) }), (!!detailsNode || showPercentage) && (jsxs("span", { className: cls('details-container', `${variant}-details-container`), children: [detailsNode, showPercentage && (jsxs("span", { className: cls('details-label', `${variant}-details-label`), children: [percentage, "%"] }))] }))] }));
|
|
41
42
|
});
|
package/Link.js
CHANGED
|
@@ -7,9 +7,9 @@ var Link$1 = {"sui-link-root":"sui-link-root","sui-focus-visible":"sui-focus-vis
|
|
|
7
7
|
|
|
8
8
|
const Link = forwardRef((inProps, ref) => {
|
|
9
9
|
const props = useThemeProps({ props: inProps, name: 'Link' });
|
|
10
|
-
const { classes, component: Component = 'a', className, underline = 'hover', children, variant = 'primary', ...rest } = props;
|
|
10
|
+
const { classes, component: Component = 'a', className, underline = 'hover', children, variant = 'primary', onBlur, onFocus, onFocusVisible, ...rest } = props;
|
|
11
11
|
const cls = useClasses('link', classes, className);
|
|
12
|
-
const { focusVisible, focusVisibleRef, focusVisibleHandlers } = useFocusVisible(
|
|
12
|
+
const { focusVisible, focusVisibleRef, focusVisibleHandlers } = useFocusVisible({ onFocusVisible, onFocus, onBlur });
|
|
13
13
|
const linkRef = useForkRef(ref, focusVisibleRef);
|
|
14
14
|
return (jsx(Component, { className: cls('root', variant, underline, { focusVisible }), ...rest, ...focusVisibleHandlers, ref: linkRef, children: children }));
|
|
15
15
|
});
|
package/Radio.js
CHANGED
|
@@ -10,14 +10,17 @@ var Radio$1 = {"sui-radio-root":"sui-radio-root","sui-focus-visible":"sui-focus-
|
|
|
10
10
|
|
|
11
11
|
const Radio = forwardRef((inProps, ref) => {
|
|
12
12
|
const props = useThemeProps({ props: inProps, name: 'Radio' });
|
|
13
|
-
const { name = '', classes, inputRef, rootProps, inputProps, className: rootClass, ...rest } = props;
|
|
13
|
+
const { name = '', classes, inputRef, rootProps, inputProps, disabled: disabledProp, className: rootClass, ...rest } = props;
|
|
14
14
|
const cls = useClasses('radio', classes, rootClass);
|
|
15
15
|
const { disabled, id, value } = useFormLabel({
|
|
16
16
|
value: rest.value,
|
|
17
17
|
id: inputProps?.id,
|
|
18
|
-
disabled:
|
|
18
|
+
disabled: disabledProp,
|
|
19
|
+
});
|
|
20
|
+
const { focusVisible, getInputProps, checked } = useSwitch({
|
|
21
|
+
...rest,
|
|
22
|
+
disabled,
|
|
19
23
|
});
|
|
20
|
-
const { focusVisible, getInputProps, checked } = useSwitch(rest);
|
|
21
24
|
const { onChange, ...inputRest } = getInputProps({
|
|
22
25
|
role: undefined,
|
|
23
26
|
...inputProps,
|
package/Switch.js
CHANGED
|
@@ -9,7 +9,7 @@ var Switch$1 = {"sui-switch-root":"sui-switch-root","sui-focus-visible":"sui-foc
|
|
|
9
9
|
|
|
10
10
|
const Switch = forwardRef((inProps, ref) => {
|
|
11
11
|
const props = useThemeProps({ props: inProps, name: 'Switch' });
|
|
12
|
-
const { classes, className, inputRef: inputRefProp, inputProps: inputPropsProp, checked: checkedProp, defaultChecked, disabled: disabledProp, autoFocus = false, onBlur, onChange, onFocus, onFocusVisible, required, ...rest } = props;
|
|
12
|
+
const { classes, className, inputRef: inputRefProp, inputProps: inputPropsProp, rootProps, checked: checkedProp, defaultChecked, disabled: disabledProp, autoFocus = false, onBlur, onChange, onFocus, onFocusVisible, required, ...rest } = props;
|
|
13
13
|
const cls = useClasses('switch', classes, className);
|
|
14
14
|
const { disabled, id } = useFormLabel({
|
|
15
15
|
disabled: disabledProp,
|
|
@@ -33,7 +33,7 @@ const Switch = forwardRef((inProps, ref) => {
|
|
|
33
33
|
inputRef.current?.focus();
|
|
34
34
|
}
|
|
35
35
|
}, []);
|
|
36
|
-
return (jsxs("span", { className: cls('root', { focusVisible }),
|
|
36
|
+
return (jsxs("span", { ...rootProps, ...rest, className: cls('root', { focusVisible }), ref: ref, children: [jsx("input", { ...inputProps, id: id, className: cls('input', { checked }), ref: forkRef }), jsx("span", { className: cls('track') }), jsx("span", { className: cls('dot') })] }));
|
|
37
37
|
});
|
|
38
38
|
Switch.displayName = 'SuiSwitch';
|
|
39
39
|
|
package/Tooltip.js
CHANGED
|
@@ -18,6 +18,6 @@ import './chunks/useFocusTrapStack.js';
|
|
|
18
18
|
import './chunks/Backdrop.js';
|
|
19
19
|
import './chunks/PopperPaper.js';
|
|
20
20
|
|
|
21
|
-
var TooltipView = {"sui-tooltip-view-root":"sui-tooltip-view-root","sui-tooltip-view-disable-interactions":"sui-tooltip-view-disable-interactions","sui-tooltip-trigger-wrapper":"sui-tooltip-trigger-wrapper","sui-tooltip-view-paper":"sui-tooltip-view-paper","sui-tooltip-view-paper-content":"sui-tooltip-view-paper-content","sui-tooltip-view-paper-content-medium":"sui-tooltip-view-paper-content-medium","sui-tooltip-view-icon":"sui-tooltip-view-icon","sui-tooltip-view-content":"sui-tooltip-view-content","sui-tooltip-view-
|
|
21
|
+
var TooltipView = {"sui-tooltip-view-root":"sui-tooltip-view-root","sui-tooltip-view-disable-interactions":"sui-tooltip-view-disable-interactions","sui-tooltip-trigger-wrapper":"sui-tooltip-trigger-wrapper","sui-tooltip-view-paper":"sui-tooltip-view-paper","sui-tooltip-view-paper-content":"sui-tooltip-view-paper-content","sui-tooltip-view-paper-content-medium":"sui-tooltip-view-paper-content-medium","sui-tooltip-view-icon":"sui-tooltip-view-icon","sui-tooltip-view-content":"sui-tooltip-view-content","sui-tooltip-view-neutral":"sui-tooltip-view-neutral","sui-tooltip-view-success":"sui-tooltip-view-success","sui-tooltip-view-danger":"sui-tooltip-view-danger","sui-tooltip-view-inverted":"sui-tooltip-view-inverted","sui-tooltip-view-force-hide":"sui-tooltip-view-force-hide"};
|
|
22
22
|
|
|
23
23
|
export { TooltipView as tooltipViewStyle };
|
package/chunks/Button.js
CHANGED
|
@@ -81,7 +81,7 @@ const Button = withTooltip(forwardRef((inProps, ref) => {
|
|
|
81
81
|
disabled: disabledProp,
|
|
82
82
|
focusVisible,
|
|
83
83
|
loading,
|
|
84
|
-
}), title: title, ...rest, ...getRootProps(),
|
|
84
|
+
}), title: title, ...rest, ...getRootProps(), children: [startSlot, isTextContent ? (jsx("span", { className: cls('content'), children: children })) : (children), endSlot] }));
|
|
85
85
|
}));
|
|
86
86
|
Button.displayName = 'SuiButton';
|
|
87
87
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
3
4
|
import { MotionConfig, motion } from 'framer-motion';
|
|
4
5
|
import { useClasses } from '@ringcentral/spring-base';
|
|
5
6
|
import { useThemeProps } from '@ringcentral/spring-theme';
|
|
@@ -55,7 +56,8 @@ const CircularProgressIndicator = forwardRef((inProps, ref) => {
|
|
|
55
56
|
const offset = circumference - (value / 100) * circumference;
|
|
56
57
|
content = (jsx("svg", { width: '100%', height: '100%', viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("circle", { className: cls('progress-circle', `${variant}-progress-circle`), cx: "28", cy: "28", r: radius, fill: "none", strokeWidth: 18, strokeDasharray: circumference, strokeDashoffset: offset, transform: "rotate(-90 28 28)" }) }));
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
+
const { className: progressBarClassName, ...restProgressBarProps } = progressBarProps;
|
|
60
|
+
return (jsx("span", { className: clsx(cls('root', variant, size, color, `${variant}-${size}`, `${variant}-${color}`), progressBarClassName), ...rest, ...restProgressBarProps, role: "progressbar", ref: ref, children: content }));
|
|
59
61
|
});
|
|
60
62
|
CircularProgressIndicator.displayName = 'SuiProgressIndicator';
|
|
61
63
|
|
|
@@ -33,7 +33,7 @@ const IconButton = withTooltip(forwardRef((inProps, ref) => {
|
|
|
33
33
|
...props,
|
|
34
34
|
rootRef: ref,
|
|
35
35
|
});
|
|
36
|
-
const rootProps = {
|
|
36
|
+
const rootProps = getRootProps({
|
|
37
37
|
className: cls('root', size, variant, color, shape, `${size}-${shape}`, `${size}-${variant}`, `${variant}-${color}`, `${variant}-${shape}`, ...(!background
|
|
38
38
|
? [
|
|
39
39
|
'hide-background',
|
|
@@ -45,9 +45,8 @@ const IconButton = withTooltip(forwardRef((inProps, ref) => {
|
|
|
45
45
|
focusVisible,
|
|
46
46
|
}),
|
|
47
47
|
'aria-label': label,
|
|
48
|
-
...getRootProps(),
|
|
49
48
|
...rest,
|
|
50
|
-
};
|
|
49
|
+
});
|
|
51
50
|
const content = (jsxs(Fragment, { children: [children || (jsx(Icon, { symbol: symbol, size: iconSize ?? IconSizeMap[size] })), sizeSupportsLabel(size) && label && (jsx("span", { className: cls('label', `${size}-label`, shape === 'squircle' && `${shape}-label`, `${size}-${shape}-label`), children: label }))] }));
|
|
52
51
|
if (shape === 'squircle') {
|
|
53
52
|
return (jsx(Squircle, { ...rootProps, component: component, interactive: !disabled, focusVisible: focusVisible, children: content }));
|
package/chunks/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { createContext, useContext, forwardRef, useState,
|
|
2
|
+
import { createContext, useContext, forwardRef, useState, useEffect } from 'react';
|
|
3
3
|
import { useAriaHideOutside, useForkRef, useClasses, useEventCallback, useBodyScrollLock, useWindowContext } from '@ringcentral/spring-base';
|
|
4
4
|
import { useThemeProps, useTheme } from '@ringcentral/spring-theme';
|
|
5
5
|
import { FocusTrap, Portal } from '@mui/base';
|
|
@@ -47,16 +47,12 @@ const Modal = forwardRef((inProps, ref) => {
|
|
|
47
47
|
const props = useThemeProps({ props: inProps, name: 'Modal' });
|
|
48
48
|
const { children, open, container: containerProp, disablePortal, onExitComplete, disableBackdropAnimation, motionProps, disableScrollLock = false, ...rest } = props;
|
|
49
49
|
const [shouldRender, setShouldRender] = useState(open);
|
|
50
|
-
const
|
|
51
|
-
const handleRef = useForkRef(
|
|
50
|
+
const [modalElement, setModalElement] = useState(null);
|
|
51
|
+
const handleRef = useForkRef(setModalElement, ref);
|
|
52
52
|
const prefersReducedMotion = usePrefersReducedMotion();
|
|
53
53
|
const { isEnabled } = useFocusTrapStack({ open });
|
|
54
|
-
useBodyScrollLock(open,
|
|
54
|
+
useBodyScrollLock(open, modalElement, {
|
|
55
55
|
disabled: disableScrollLock,
|
|
56
|
-
reserveScrollBarGap: true,
|
|
57
|
-
allowTouchMove: (el) => {
|
|
58
|
-
return modalRef.current?.contains(el) ?? false;
|
|
59
|
-
},
|
|
60
56
|
});
|
|
61
57
|
useEffect(() => {
|
|
62
58
|
if (open) {
|
package/chunks/Tooltip.js
CHANGED
|
@@ -196,7 +196,7 @@ const TooltipView = forwardRef((props, ref) => {
|
|
|
196
196
|
arrowStyle,
|
|
197
197
|
classes: {
|
|
198
198
|
root: cls('paper', color),
|
|
199
|
-
content: cls('paper-content', size),
|
|
199
|
+
content: cls('paper-content', `paper-content-${size}`),
|
|
200
200
|
},
|
|
201
201
|
}, popperPaperPropsProp), children: [icon && jsx(Icon, { symbol: icon, size: "small", className: cls('icon') }), jsx("div", { className: cls('content', `content-${size}`), children: children })] })) }));
|
|
202
202
|
});
|
package/index.css
CHANGED
|
@@ -692,21 +692,6 @@
|
|
|
692
692
|
overflow-wrap: break-word;
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
-
.sui-tooltip-view-content-medium {
|
|
696
|
-
|
|
697
|
-
font-size: var(--sui-typography-descriptor-font-size);
|
|
698
|
-
|
|
699
|
-
font-weight: var(--sui-typography-descriptor-font-weight);
|
|
700
|
-
|
|
701
|
-
line-height: var(--sui-typography-descriptor-line-height);
|
|
702
|
-
|
|
703
|
-
text-decoration: var(--sui-typography-descriptor-text-decoration);
|
|
704
|
-
|
|
705
|
-
text-transform: var(--sui-typography-descriptor-text-transform);
|
|
706
|
-
|
|
707
|
-
font-family: var(--sui-font-family);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
695
|
.sui-tooltip-view-neutral {
|
|
711
696
|
|
|
712
697
|
--tw-border-opacity: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ringcentral/spring-ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"author": "RingCentral",
|
|
5
5
|
"description": "A comprehensive React component library built with Tailwind CSS, featuring production-ready components",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"@floating-ui/react-dom": "2.1.1",
|
|
15
15
|
"@juggle/resize-observer": "3.4.0",
|
|
16
16
|
"@mui/base": "5.0.0-beta.40",
|
|
17
|
-
"@ringcentral/spring-base": "^1.9.
|
|
18
|
-
"@ringcentral/spring-icon": "^1.9.
|
|
19
|
-
"@ringcentral/spring-theme": "^1.9.
|
|
17
|
+
"@ringcentral/spring-base": "^1.9.1",
|
|
18
|
+
"@ringcentral/spring-icon": "^1.9.1",
|
|
19
|
+
"@ringcentral/spring-theme": "^1.9.1",
|
|
20
20
|
"@types/lodash": "^4.14.182",
|
|
21
21
|
"@use-gesture/react": "10.3.1",
|
|
22
22
|
"clsx": "^1.2.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import { CheckboxShape } from './Checkbox.type';
|
|
3
|
-
export declare type BaseCheckboxClassesKey = 'root' | 'inner' | CheckboxShape | 'input' | `inner-${CheckboxShape}
|
|
3
|
+
export declare type BaseCheckboxClassesKey = 'root' | 'inner' | CheckboxShape | 'input' | `inner-${CheckboxShape}` | 'indeterminate';
|
|
4
4
|
export declare type CheckboxClassesKey = CamelCase<BaseCheckboxClassesKey>;
|
|
5
5
|
export declare type CheckboxClasses = {
|
|
6
6
|
name: 'checkbox';
|
|
@@ -4,8 +4,8 @@ declare const Checkbox: import("react").ForwardRefExoticComponent<import("@ringc
|
|
|
4
4
|
indeterminate?: boolean | undefined;
|
|
5
5
|
autoFocus?: boolean | undefined;
|
|
6
6
|
inputRef?: import("react").Ref<HTMLInputElement> | undefined;
|
|
7
|
-
rootProps?:
|
|
8
|
-
inputProps?:
|
|
7
|
+
rootProps?: import("@ringcentral/spring-base").SlotProps<"div", never, import("@ringcentral/spring-base").HTMLDataAttribute> | undefined;
|
|
8
|
+
inputProps?: import("@ringcentral/spring-base").SlotProps<"input", "type" | "ref", import("@ringcentral/spring-base").HTMLDataAttribute> | undefined;
|
|
9
9
|
shape?: import("./Checkbox.type").CheckboxShape | undefined;
|
|
10
10
|
} & Omit<import("@mui/base").UseSwitchParameters, "readonly"> & {
|
|
11
11
|
className?: string | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ref } from 'react';
|
|
2
2
|
import { UseSwitchParameters } from '@mui/base';
|
|
3
|
-
import { StandardProps } from '@ringcentral/spring-base';
|
|
3
|
+
import { SlotProps, StandardProps } from '@ringcentral/spring-base';
|
|
4
4
|
import { CheckboxClassesKey } from './Checkbox.classes';
|
|
5
5
|
export declare type CheckboxShape = 'rectangular' | 'squircle';
|
|
6
6
|
export declare type CheckboxProps = StandardProps<{
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
autoFocus?: boolean;
|
|
9
9
|
inputRef?: Ref<HTMLInputElement>;
|
|
10
|
-
rootProps?:
|
|
11
|
-
inputProps?:
|
|
10
|
+
rootProps?: SlotProps<'div'>;
|
|
11
|
+
inputProps?: SlotProps<'input', 'type' | 'ref'>;
|
|
12
12
|
shape?: CheckboxShape;
|
|
13
13
|
} & Omit<UseSwitchParameters, 'readonly'>, CheckboxClassesKey>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
|
|
1
2
|
import { ComponentProps } from 'react';
|
|
2
|
-
import { StandardProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { CircularProgressIndicatorClassesKey } from './CircularProgressIndicator.classes';
|
|
4
4
|
export declare type CircularProgressIndicatorVariant = 'indeterminate' | 'determinate';
|
|
5
5
|
export declare type CircularProgressIndicatorSize = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
|
|
@@ -9,5 +9,5 @@ export declare type CircularProgressIndicatorProps = StandardProps<{
|
|
|
9
9
|
size?: CircularProgressIndicatorSize;
|
|
10
10
|
color?: CircularProgressIndicatorColor;
|
|
11
11
|
value?: number;
|
|
12
|
-
progressBarProps?: Omit<ComponentProps<'span'>, 'ref' | 'role'
|
|
12
|
+
progressBarProps?: Omit<ComponentProps<'span'>, 'ref' | 'role'> & HTMLDataAttribute;
|
|
13
13
|
}, CircularProgressIndicatorClassesKey, 'span'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTMLDataAttribute, StandardProps, UseFocusVisibleOptions } from '@ringcentral/spring-base';
|
|
2
|
-
import {
|
|
1
|
+
import { HTMLDataAttribute, SlotProps, StandardProps, UseFocusVisibleOptions } from '@ringcentral/spring-base';
|
|
2
|
+
import { ReactElement, ReactNode, Ref } from 'react';
|
|
3
3
|
import { VirtualizedMenuProps } from '../VirtualizedMenu';
|
|
4
4
|
import { MenuProps } from '../Menu';
|
|
5
5
|
import { DropdownClassesKey } from './Dropdown.classes';
|
|
@@ -8,8 +8,8 @@ export declare type DropdownProps<T = string, D = unknown> = StandardProps<{
|
|
|
8
8
|
value?: T | null;
|
|
9
9
|
onChange?: (value: T | null) => void;
|
|
10
10
|
placeholder?: ReactNode;
|
|
11
|
-
rootProps?:
|
|
12
|
-
buttonProps?:
|
|
11
|
+
rootProps?: SlotProps<'div', 'ref'>;
|
|
12
|
+
buttonProps?: SlotProps<'button'> & Pick<UseFocusVisibleOptions, 'onFocusVisible'>;
|
|
13
13
|
MenuProps?: (Omit<VirtualizedMenuProps, 'open' | 'anchorEl' | 'onClose' | 'initialFocus' | 'data' | 'children'> | Omit<MenuProps, 'open' | 'anchorEl' | 'onClose' | 'children'>) & HTMLDataAttribute;
|
|
14
14
|
ref?: Ref<HTMLDivElement>;
|
|
15
15
|
buttonRef?: Ref<HTMLButtonElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, DetailedHTMLProps, LabelHTMLAttributes, Ref } from 'react';
|
|
2
|
-
import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
|
|
2
|
+
import { HTMLDataAttribute, SlotProps, StandardProps } from '@ringcentral/spring-base';
|
|
3
3
|
import { FormFieldClassesKey } from './FormField.classes';
|
|
4
4
|
export declare type FormFieldVariant = 'standard' | 'outlined' | 'quiet' | 'contained';
|
|
5
5
|
export declare type FormFieldSize = 'xlarge' | 'large' | 'medium';
|
|
@@ -10,7 +10,7 @@ export declare type FormFieldProps = StandardProps<{
|
|
|
10
10
|
focused?: boolean;
|
|
11
11
|
size?: FormFieldSize;
|
|
12
12
|
contentRef?: Ref<HTMLDivElement>;
|
|
13
|
-
contentProps?:
|
|
13
|
+
contentProps?: SlotProps<'div'>;
|
|
14
14
|
FormHelperTextProps?: ComponentProps<'div'> & HTMLDataAttribute;
|
|
15
15
|
variant?: FormFieldVariant;
|
|
16
16
|
htmlFor?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StandardProps } from '@ringcentral/spring-base';
|
|
1
|
+
import { HTMLDataAttribute, StandardProps } from '@ringcentral/spring-base';
|
|
2
2
|
import { ComponentProps, ReactNode } from 'react';
|
|
3
3
|
import { LinearProgressIndicatorClassesKey } from './LinearProgressIndicator.classes';
|
|
4
4
|
export declare type LinearProgressIndicatorVariant = 'determinate';
|
|
@@ -11,5 +11,5 @@ export declare type LinearProgressIndicatorProps = StandardProps<{
|
|
|
11
11
|
value: number;
|
|
12
12
|
min?: number;
|
|
13
13
|
max: number;
|
|
14
|
-
progressBarProps?: Omit<ComponentProps<'span'>, 'ref' | 'role'
|
|
14
|
+
progressBarProps?: Omit<ComponentProps<'span'>, 'ref' | 'role'> & HTMLDataAttribute;
|
|
15
15
|
}, LinearProgressIndicatorClassesKey, 'span'>;
|
package/src/Popper/Popper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopperProps } from './Popper.type';
|
|
3
|
-
declare const Popper: import("react").ForwardRefExoticComponent<Pick<PopperProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "className" | "accessKey" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "container" | "transform" | "padding" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "placement" | "open" | "offset" | "disablePortal" | "
|
|
3
|
+
declare const Popper: import("react").ForwardRefExoticComponent<Pick<PopperProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "className" | "accessKey" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "container" | "transform" | "padding" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "platform" | `data-${string}` | "placement" | "open" | "offset" | "disablePortal" | "whileElementsMounted" | "elements" | "anchorEl" | "middlewares" | "arrowHeight" | "arrowPadding" | "actions" | "autoUpdate" | "matchAnchorWidth"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export { Popper };
|
package/src/Radio/Radio.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export declare const Radio: import("react").ForwardRefExoticComponent<import("@r
|
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
name?: string | undefined;
|
|
6
6
|
inputRef?: import("react").Ref<HTMLInputElement> | undefined;
|
|
7
|
-
rootProps?:
|
|
8
|
-
inputProps?:
|
|
7
|
+
rootProps?: import("@ringcentral/spring-base").SlotProps<"div", never, import("@ringcentral/spring-base").HTMLDataAttribute> | undefined;
|
|
8
|
+
inputProps?: import("@ringcentral/spring-base").SlotProps<"input", "type" | "ref", import("@ringcentral/spring-base").HTMLDataAttribute> | undefined;
|
|
9
9
|
} & Omit<import("@mui/base").UseSwitchParameters, "readonly"> & {
|
|
10
10
|
className?: string | undefined;
|
|
11
11
|
} & import("@ringcentral/spring-base").HTMLDataAttribute & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ref } from 'react';
|
|
2
2
|
import { UseSwitchParameters } from '@mui/base';
|
|
3
|
-
import {
|
|
3
|
+
import { SlotProps, StandardProps } from '@ringcentral/spring-base';
|
|
4
4
|
import { RadioClassesKey } from './Radio.classes';
|
|
5
5
|
export declare type RadioProps = StandardProps<{
|
|
6
6
|
value?: string;
|
|
7
7
|
name?: string;
|
|
8
8
|
inputRef?: Ref<HTMLInputElement>;
|
|
9
|
-
rootProps?:
|
|
10
|
-
inputProps?:
|
|
9
|
+
rootProps?: SlotProps<'div'>;
|
|
10
|
+
inputProps?: SlotProps<'input', 'type' | 'ref'>;
|
|
11
11
|
} & Omit<UseSwitchParameters, 'readonly'>, RadioClassesKey>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopperMenuProps } from './PopperMenu.type';
|
|
3
3
|
import popperMenuStyle from './styles/PopperMenu.css';
|
|
4
|
-
declare const PopperMenu: import("react").ForwardRefExoticComponent<Pick<PopperMenuProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "classes" | "className" | "accessKey" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "container" | "transform" | "padding" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | `data-${string}` | "placement" | "open" | "offset" | "disablePortal" | "
|
|
4
|
+
declare const PopperMenu: import("react").ForwardRefExoticComponent<Pick<PopperMenuProps, "children" | "onKeyDown" | "onKeyUp" | "onMouseDown" | "onClick" | "aria-hidden" | "dir" | "slot" | "style" | "title" | "aria-live" | "aria-atomic" | "role" | "classes" | "className" | "accessKey" | "draggable" | "hidden" | "lang" | "translate" | "id" | "prefix" | "contentEditable" | "inputMode" | "tabIndex" | "key" | "defaultChecked" | "defaultValue" | "placeholder" | "container" | "transform" | "padding" | "onFocus" | "onBlur" | "onMouseEnter" | "onMouseLeave" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "platform" | `data-${string}` | "placement" | "open" | "offset" | "disablePortal" | "whileElementsMounted" | "elements" | "anchorEl" | "middlewares" | "arrowHeight" | "arrowPadding" | "actions" | "autoUpdate" | "matchAnchorWidth"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { PopperMenu, popperMenuStyle };
|
package/src/Switch/Switch.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import switchStyle from './styles/Switch.css';
|
|
|
3
3
|
declare const Switch: import("react").ForwardRefExoticComponent<import("@ringcentral/spring-base").ClassesProp<import("./Switch.classes").SwitchClassesKey> & {
|
|
4
4
|
autoFocus?: boolean | undefined;
|
|
5
5
|
inputRef?: import("react").Ref<HTMLInputElement> | undefined;
|
|
6
|
-
inputProps?:
|
|
7
|
-
rootProps?: import("
|
|
6
|
+
inputProps?: import("@ringcentral/spring-base").SlotProps<"input", "ref", import("@ringcentral/spring-base").HTMLDataAttribute> | undefined;
|
|
7
|
+
rootProps?: import("@ringcentral/spring-base").SlotProps<"span", "ref", import("@ringcentral/spring-base").HTMLDataAttribute> | undefined;
|
|
8
8
|
} & Omit<import("@mui/base").UseSwitchParameters, "readOnly"> & {
|
|
9
9
|
className?: string | undefined;
|
|
10
10
|
} & import("@ringcentral/spring-base").HTMLDataAttribute & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UseSwitchParameters } from '@mui/base';
|
|
2
|
-
import { StandardProps } from '@ringcentral/spring-base';
|
|
3
|
-
import {
|
|
2
|
+
import { SlotProps, StandardProps } from '@ringcentral/spring-base';
|
|
3
|
+
import { Ref } from 'react';
|
|
4
4
|
import { SwitchClassesKey } from './Switch.classes';
|
|
5
5
|
export declare type SwitchProps = StandardProps<{
|
|
6
6
|
autoFocus?: boolean;
|
|
7
7
|
inputRef?: Ref<HTMLInputElement>;
|
|
8
|
-
inputProps?:
|
|
9
|
-
rootProps?:
|
|
8
|
+
inputProps?: SlotProps<'input', 'ref'>;
|
|
9
|
+
rootProps?: SlotProps<'span', 'ref'>;
|
|
10
10
|
} & Omit<UseSwitchParameters, 'readOnly'>, SwitchClassesKey>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CamelCase } from 'type-fest';
|
|
2
2
|
import type { TooltipSize } from './TooltipView.type';
|
|
3
|
-
export declare type BaseTooltipViewClassesKey = 'root' | 'paper' | 'paper-content' | 'icon' | TooltipSize | 'content' | `content-${TooltipSize}` | 'neutral' | 'success' | 'danger' | 'force-hide' | 'inverted' | 'disable-interactions';
|
|
3
|
+
export declare type BaseTooltipViewClassesKey = 'root' | 'paper' | 'paper-content' | `paper-content-${TooltipSize}` | 'icon' | TooltipSize | 'content' | `content-${TooltipSize}` | 'neutral' | 'success' | 'danger' | 'force-hide' | 'inverted' | 'disable-interactions';
|
|
4
4
|
export declare type TooltipViewClassesKey = CamelCase<BaseTooltipViewClassesKey>;
|
|
5
5
|
export declare type TooltipViewClasses = {
|
|
6
6
|
name: 'tooltip-view';
|