@aurora-ds/components 1.7.8 → 1.7.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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5661,7 +5661,7 @@ const DRAWER_STYLES = theme.createStyles((theme) => ({
|
|
|
5661
5661
|
display: 'flex',
|
|
5662
5662
|
flexDirection: 'column',
|
|
5663
5663
|
width: isExpanded ? EXPANDED_DRAWER_WIDTH : COLLAPSED_DRAWER_WIDTH,
|
|
5664
|
-
transition: `width ${theme.transition.
|
|
5664
|
+
transition: `width ${theme.transition.fast}`,
|
|
5665
5665
|
overflow: 'hidden',
|
|
5666
5666
|
backgroundColor: theme.colors.surfacePaper,
|
|
5667
5667
|
borderRight: `1px solid ${theme.colors.borderMain}`,
|
|
@@ -5846,7 +5846,7 @@ const DRAWER_ITEM_STYLES = theme.createStyles((theme) => ({
|
|
|
5846
5846
|
outline: 'none',
|
|
5847
5847
|
textDecoration: 'none',
|
|
5848
5848
|
boxSizing: 'border-box',
|
|
5849
|
-
transition: `width ${theme.transition.
|
|
5849
|
+
transition: `width ${theme.transition.fast}, background-color ${theme.transition.fast}, color ${theme.transition.fast}`,
|
|
5850
5850
|
whiteSpace: 'nowrap',
|
|
5851
5851
|
overflow: 'hidden',
|
|
5852
5852
|
height: DEFAULT_DRAWER_ITEM_SIZE,
|
|
@@ -5926,7 +5926,7 @@ const DrawerItem = ({ startIcon, label, selected = false, endContent, href, onCl
|
|
|
5926
5926
|
onClick(e);
|
|
5927
5927
|
}
|
|
5928
5928
|
};
|
|
5929
|
-
const innerContent = (jsxRuntime.jsxs(Stack, { width: '100%', justifyContent: 'start', children: [jsxRuntime.jsx("span", { className: DRAWER_ITEM_STYLES.iconWrap, children: jsxRuntime.jsx(Icon, { icon: startIcon, size: 'md' }) }), isLabelVisible && (jsxRuntime.jsxs("span", { className: DRAWER_ITEM_STYLES.labelWrapper({ isFadingIn: isLabelFadingIn }), children: [jsxRuntime.jsx(Text, { variant: 'span', fontSize: 'sm', fontWeight: 'medium', className: DRAWER_ITEM_STYLES.label, textAlign: 'start', children: label }), endContent && (jsxRuntime.jsx("span", { className: DRAWER_ITEM_STYLES.endContent, children: endContent }))] }))] }));
|
|
5929
|
+
const innerContent = (jsxRuntime.jsxs(Stack, { width: '100%', justifyContent: 'start', children: [startIcon && (jsxRuntime.jsx("span", { className: DRAWER_ITEM_STYLES.iconWrap, children: jsxRuntime.jsx(Icon, { icon: startIcon, size: 'md' }) })), isLabelVisible && (jsxRuntime.jsxs("span", { className: DRAWER_ITEM_STYLES.labelWrapper({ isFadingIn: isLabelFadingIn }), children: [jsxRuntime.jsx(Text, { variant: 'span', fontSize: 'sm', fontWeight: 'medium', className: DRAWER_ITEM_STYLES.label, textAlign: 'start', children: label }), endContent && (jsxRuntime.jsx("span", { className: DRAWER_ITEM_STYLES.endContent, children: endContent }))] }))] }));
|
|
5930
5930
|
const item = href ? (jsxRuntime.jsx("a", { href: href, className: rootClassName, "aria-disabled": disabled || undefined, "aria-current": computedAriaCurrent, "aria-label": computedAriaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, tabIndex: disabled ? -1 : undefined, onClick: handleClick, children: innerContent })) : (jsxRuntime.jsx("button", { type: 'button', className: rootClassName, disabled: disabled, "aria-current": computedAriaCurrent, "aria-label": computedAriaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-controls": ariaControls, "aria-expanded": ariaExpanded, "aria-haspopup": ariaHasPopup, onClick: handleClick, children: innerContent }));
|
|
5931
5931
|
return (jsxRuntime.jsx(Tooltip, { label: label, placement: 'right', inline: true, withArrow: true, disabled: isExpanded || disabled, children: item }));
|
|
5932
5932
|
};
|