@vectara/vectara-ui 19.3.0 → 19.4.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.
@@ -2,4 +2,5 @@ import { TreeItem } from "../types";
2
2
  export declare const VuiAppSideNavLink: import("react").ForwardRefExoticComponent<Pick<TreeItem, "className" | "path" | "name" | "isSelected" | "iconBefore" | "iconAfter"> & {
3
3
  onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
4
4
  iconAfterAlignEnd?: boolean | undefined;
5
+ after?: React.ReactNode;
5
6
  } & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -17,12 +17,12 @@ import { VuiIcon } from "../../icon/Icon";
17
17
  import { useVuiContext } from "../../context/Context";
18
18
  import { forwardRef } from "react";
19
19
  export const VuiAppSideNavLink = forwardRef((_a, ref) => {
20
- var { path, onClick, name, iconBefore, iconAfter, isSelected, className, iconAfterAlignEnd } = _a, rest = __rest(_a, ["path", "onClick", "name", "iconBefore", "iconAfter", "isSelected", "className", "iconAfterAlignEnd"]);
20
+ var { path, onClick, name, iconBefore, iconAfter, after, isSelected, className, iconAfterAlignEnd } = _a, rest = __rest(_a, ["path", "onClick", "name", "iconBefore", "iconAfter", "after", "isSelected", "className", "iconAfterAlignEnd"]);
21
21
  const { createLink, getPath } = useVuiContext();
22
22
  const classes = classNames("vuiAppSideNavLink", {
23
23
  "vuiAppSideNavLink--active": isSelected !== null && isSelected !== void 0 ? isSelected : path === getPath()
24
24
  }, className);
25
- const content = iconBefore || iconAfter ? (_jsxs(VuiFlexContainer, Object.assign({ alignItems: "center", spacing: "xxs" }, { children: [iconBefore && (_jsx(VuiFlexItem, Object.assign({ grow: false, shrink: false }, { children: _jsx(VuiIcon, Object.assign({ size: "s" }, { children: iconBefore })) }))), _jsx(VuiFlexItem, Object.assign({ grow: false, shrink: false }, { children: name })), iconAfter && (_jsx(VuiFlexItem, Object.assign({ grow: false, shrink: false, className: iconAfterAlignEnd ? "vuiAppSideNavLink__iconAfter--alignEnd" : undefined }, { children: _jsx(VuiIcon, Object.assign({ size: "s" }, { children: iconAfter })) })))] }))) : (name);
25
+ const content = iconBefore || iconAfter ? (_jsxs(VuiFlexContainer, Object.assign({ alignItems: "center", spacing: "xxs" }, { children: [iconBefore && (_jsx(VuiFlexItem, Object.assign({ grow: false, shrink: false }, { children: _jsx(VuiIcon, Object.assign({ size: "s" }, { children: iconBefore })) }))), _jsx(VuiFlexItem, Object.assign({ grow: false, shrink: false }, { children: name })), (iconAfter || after) && (_jsx(VuiFlexItem, Object.assign({ grow: false, shrink: false, className: iconAfterAlignEnd ? "vuiAppSideNavLink__iconAfter--alignEnd" : undefined }, { children: _jsxs(VuiFlexContainer, Object.assign({ alignItems: "center", spacing: "xxs" }, { children: [after, iconAfter && _jsx(VuiIcon, Object.assign({ size: "s" }, { children: iconAfter }))] })) })))] }))) : (name);
26
26
  if (!path) {
27
27
  return (_jsx("button", Object.assign({ className: classes, onClick: onClick, type: "button", ref: ref }, rest, { children: content })));
28
28
  }
@@ -23,7 +23,7 @@
23
23
 
24
24
  .vuiSelect--s {
25
25
  select {
26
- padding: $sizeXxs $sizeS;
26
+ padding: $sizeXxs * 1.5 $sizeS;
27
27
  font-size: $fontSizeSmall;
28
28
  padding-right: 36px;
29
29
  }
@@ -3035,7 +3035,7 @@ h2.react-datepicker__current-month {
3035
3035
  }
3036
3036
 
3037
3037
  .vuiSelect--s select {
3038
- padding: 4px 12px;
3038
+ padding: 6px 12px;
3039
3039
  font-size: 12px;
3040
3040
  padding-right: 36px;
3041
3041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectara/vectara-ui",
3
- "version": "19.3.0",
3
+ "version": "19.4.0",
4
4
  "homepage": "./",
5
5
  "description": "Vectara's design system, codified as a React and Sass component library",
6
6
  "author": "Vectara",