@vectara/vectara-ui 9.1.0 → 9.1.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.
@@ -43,7 +43,7 @@ jobs:
43
43
  registry-url: "https://registry.npmjs.org"
44
44
 
45
45
  - name: Build lib
46
- run: "npm i && npm run buildLib"
46
+ run: "npm i && npm run build"
47
47
 
48
48
  - name: Publish package to NPM
49
49
  run: npm publish --access=public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectara/vectara-ui",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "homepage": "./",
5
5
  "description": "Vectara's design system, codified as a React and Sass component library",
6
6
  "author": "Vectara",
@@ -1,13 +0,0 @@
1
- type AccountMenuInfo = Array<{
2
- title: string;
3
- value: React.ReactNode;
4
- }>;
5
- type Props = {
6
- isOpen: boolean;
7
- setIsOpen: (isOpen: boolean) => void;
8
- button: React.ReactElement;
9
- info?: AccountMenuInfo;
10
- children?: React.ReactNode;
11
- };
12
- export declare const VuiAccountMenu: ({ isOpen, setIsOpen, button, info, children }: Props) => import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { VuiPopover } from "../popover/Popover";
3
- import { VuiSpacer } from "../spacer/Spacer";
4
- export const VuiAccountMenu = ({ isOpen, setIsOpen, button, info, children }) => {
5
- return (_jsx(VuiPopover, Object.assign({ className: "vuiAccountMenu", isOpen: isOpen, setIsOpen: () => setIsOpen(!isOpen), button: button, header: info &&
6
- info.length > 0 && (_jsx("div", Object.assign({ className: "vuiAccounrMenuHeader" }, { children: info.map((item, index) => (_jsxs("div", Object.assign({ className: "vuiAccountMenuHeaderItem" }, { children: [_jsx("div", Object.assign({ className: "vuiAccountMenuHeaderItem__title" }, { children: item.title })), _jsx("div", Object.assign({ className: "vuiAccountMenuHeaderItem__value" }, { children: item.value })), index < info.length - 1 && _jsx(VuiSpacer, { size: "m" })] }), index))) }))) }, { children: children })));
7
- };
@@ -1,20 +0,0 @@
1
- .vuiAccountMenu {
2
- min-width: 260px;
3
- }
4
-
5
- .vuiAccounrMenuHeader {
6
- padding: $sizeM;
7
- border-bottom: 1px solid $borderColor;
8
- }
9
-
10
- .vuiAccountMenuHeaderItem__title {
11
- font-size: $fontSizeSmall;
12
- font-weight: $fontWeightBold;
13
- color: $colorDarkerShade;
14
- }
15
-
16
- .vuiAccountMenuHeaderItem__value {
17
- font-size: $fontSizeStandard;
18
- color: $colorDarkerShade;
19
- margin-top: $sizeXxs;
20
- }