@foris/avocado-suite 1.0.0 → 1.1.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.
- package/dist/avocado-suite.es.js +5351 -5175
- package/dist/avocado-suite.umd.js +119 -119
- package/dist/components/access-panel/AccessPanel.d.ts +21 -0
- package/dist/components/access-panel/components/access-product/AccessProduct.d.ts +6 -0
- package/dist/components/access-panel/components/access-product/index.d.ts +2 -0
- package/dist/components/access-panel/components/access-product-row/AccessProductRow.d.ts +6 -0
- package/dist/components/access-panel/components/access-product-row/index.d.ts +2 -0
- package/dist/components/access-panel/index.d.ts +2 -0
- package/dist/components/banner/Banner.d.ts +2 -2
- package/dist/components/banner/BannerAccentTitle.d.ts +1 -1
- package/dist/components/banner/BannerTitle.d.ts +1 -1
- package/dist/components/banner/index.d.ts +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type AccessPanelProduct = {
|
|
2
|
+
key?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
logo?: string;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
};
|
|
8
|
+
export interface AccessPanelProps {
|
|
9
|
+
className?: string;
|
|
10
|
+
isOpen?: boolean;
|
|
11
|
+
title?: string;
|
|
12
|
+
productsTitle?: string;
|
|
13
|
+
recentProductsTitle?: string;
|
|
14
|
+
customProductsTitle?: string;
|
|
15
|
+
activePillText?: string;
|
|
16
|
+
products?: AccessPanelProduct[];
|
|
17
|
+
recentProducts?: AccessPanelProduct[];
|
|
18
|
+
customProducts?: AccessPanelProduct[];
|
|
19
|
+
}
|
|
20
|
+
declare const AccessPanel: ({ className, isOpen, title, productsTitle, recentProductsTitle, customProductsTitle, activePillText, products, recentProducts, customProducts, }: AccessPanelProps) => JSX.Element | null;
|
|
21
|
+
export default AccessPanel;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AccessPanelProduct } from '../../AccessPanel';
|
|
2
|
+
interface AccessProductProps extends AccessPanelProduct {
|
|
3
|
+
activePillText?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const AccessProduct: ({ isActive, name, logo, activePillText, onClick, }: AccessProductProps) => JSX.Element;
|
|
6
|
+
export default AccessProduct;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AccessPanelProduct } from '../../AccessPanel';
|
|
2
|
+
interface AccessProductRowProps extends AccessPanelProduct {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const AccessProductRow: ({ name, logo, onClick, className, }: AccessProductRowProps) => JSX.Element;
|
|
6
|
+
export default AccessProductRow;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { BannerItemProps } from './BannerItem';
|
|
3
|
-
interface BannerItemCustom {
|
|
3
|
+
export interface BannerItemCustom {
|
|
4
4
|
content: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
interface BannerProps {
|
|
6
|
+
export interface BannerProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
items?: BannerItemProps[] | BannerItemCustom[];
|
|
9
9
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const Banner: {
|
|
2
|
+
Wrapper: import("react").FC<import("./Banner").BannerProps>;
|
|
3
|
+
Item: import("react").FC<import("./BannerItem").BannerItemProps>;
|
|
4
|
+
Title: import("react").FC<import("./BannerTitle").BannerTitleProps>;
|
|
5
|
+
AccentTitle: import("react").FC<import("./BannerAccentTitle").BannerAccentTitleProps>;
|
|
6
|
+
};
|
|
7
|
+
export default Banner;
|
package/dist/index.d.ts
CHANGED
|
@@ -50,8 +50,9 @@ import WeeklyGroup from './components/weekly-group';
|
|
|
50
50
|
import Drawer from './components/drawer/Drawer';
|
|
51
51
|
import Banner from './components/banner';
|
|
52
52
|
import SidebarMenu from './components/sidebar-menu/SidebarMenu';
|
|
53
|
+
import AccessPanel from './components/access-panel/AccessPanel';
|
|
53
54
|
import { toast } from 'react-toastify';
|
|
54
|
-
export { Banner, Drawer, SidebarMenu, Weekly, WeeklyGroup, Accordion, Box, Breadcrumbs, Button, Card, CardAccordion, CardNotification, Checkbox, DataCard, DataTable, DatePicker, Divider, Donut, DonutLabels, DonutLegend, DropdownButton, Heading, Link, Loading, Menu, Modal, Pager, Pill, PreviewerMarkdown, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Switch, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, Table, toast, };
|
|
55
|
+
export { Banner, Drawer, AccessPanel, SidebarMenu, Weekly, WeeklyGroup, Accordion, Box, Breadcrumbs, Button, Card, CardAccordion, CardNotification, Checkbox, DataCard, DataTable, DatePicker, Divider, Donut, DonutLabels, DonutLegend, DropdownButton, Heading, Link, Loading, Menu, Modal, Pager, Pill, PreviewerMarkdown, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Switch, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, Table, toast, };
|
|
55
56
|
/**
|
|
56
57
|
* Types
|
|
57
58
|
*/
|