@foris/avocado-suite 0.39.0 → 0.41.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 +5196 -4990
- package/dist/avocado-suite.umd.js +119 -119
- package/dist/components/banner/Banner.d.ts +11 -0
- package/dist/components/banner/BannerAccentTitle.d.ts +6 -0
- package/dist/components/banner/BannerItem.d.ts +10 -0
- package/dist/components/banner/BannerTitle.d.ts +6 -0
- package/dist/components/drawer/Drawer.d.ts +21 -0
- package/dist/index.d.ts +3 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
2
|
+
import { BannerItemProps } from './BannerItem';
|
3
|
+
interface BannerItemCustom {
|
4
|
+
content: ReactNode;
|
5
|
+
}
|
6
|
+
interface BannerProps {
|
7
|
+
className?: string;
|
8
|
+
items?: BannerItemProps[] | BannerItemCustom[];
|
9
|
+
}
|
10
|
+
declare const Banner: FC<BannerProps>;
|
11
|
+
export default Banner;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
2
|
+
export interface BannerItemProps {
|
3
|
+
className?: string;
|
4
|
+
title?: string;
|
5
|
+
accentTitle?: string;
|
6
|
+
rightContent?: ReactNode;
|
7
|
+
onClick?: () => void;
|
8
|
+
}
|
9
|
+
declare const BannerItem: FC<BannerItemProps>;
|
10
|
+
export default BannerItem;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface DrawerProps {
|
3
|
+
header?: React.ReactNode;
|
4
|
+
headerExtra?: React.ReactNode;
|
5
|
+
title: React.ReactNode;
|
6
|
+
children: React.ReactNode;
|
7
|
+
footer?: React.ReactNode;
|
8
|
+
isOpen: boolean;
|
9
|
+
closeOnOverlayClick?: boolean;
|
10
|
+
/**
|
11
|
+
* @description Height gap in pixels to subtract from the drawer's height, so the drawer appears shorter by this amount. Useful for keeping the app header visible above the drawer.
|
12
|
+
*
|
13
|
+
* @default 50
|
14
|
+
* @example
|
15
|
+
* <Drawer heightGap={50} />
|
16
|
+
*/
|
17
|
+
heightGap?: number;
|
18
|
+
onClose: () => void;
|
19
|
+
}
|
20
|
+
declare const Drawer: React.FC<DrawerProps>;
|
21
|
+
export default Drawer;
|
package/dist/index.d.ts
CHANGED
@@ -47,8 +47,10 @@ import Tooltip from './components/tooltip/Tooltip';
|
|
47
47
|
import Table from './components/table';
|
48
48
|
import Weekly from './components/weekly';
|
49
49
|
import WeeklyGroup from './components/weekly-group';
|
50
|
+
import Drawer from './components/drawer/Drawer';
|
51
|
+
import Banner from './components/banner';
|
50
52
|
import { toast } from 'react-toastify';
|
51
|
-
export { 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, };
|
53
|
+
export { Banner, Drawer, 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, };
|
52
54
|
/**
|
53
55
|
* Types
|
54
56
|
*/
|