@foris/avocado-suite 0.33.3 → 0.35.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 +4460 -4398
- package/dist/avocado-suite.umd.js +97 -97
- package/dist/components/data-card/DataCard.d.ts +6 -1
- package/dist/index.d.ts +2 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { FC } from 'react';
|
2
|
-
import type { IconTypes } from '../../../../avocado-icons';
|
2
|
+
import type { IconTypes, Color } from '../../../../avocado-icons';
|
3
3
|
type Variant = 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
4
|
+
type HeaderStatusColor = Extract<keyof typeof Color, 'palette_1_50' | 'palette_2_50' | 'palette_3_50' | 'palette_4_50' | 'palette_5_50' | 'palette_6_50' | 'palette_7_50' | 'palette_8_50' | 'palette_9_50' | 'palette_10_50' | 'palette_11_50' | 'palette_12_50' | 'palette_13_50' | 'palette_14_50' | 'palette_15_50' | 'palette_16_50' | 'palette_17_50' | 'palette_18_50'>;
|
4
5
|
interface DataCardProps {
|
5
6
|
/** Render content dataCard */
|
6
7
|
children?: React.ReactNode | string;
|
@@ -10,12 +11,16 @@ interface DataCardProps {
|
|
10
11
|
description?: string;
|
11
12
|
/** Set hasTopBar */
|
12
13
|
hasTopBar?: boolean;
|
14
|
+
/** Header status color */
|
15
|
+
headerStatusColor?: HeaderStatusColor;
|
13
16
|
/** Icon of the DataCard */
|
14
17
|
icon?: IconTypes;
|
15
18
|
/** Title of the DataCard */
|
16
19
|
title: string;
|
17
20
|
/** Use the variant of the DataCard */
|
18
21
|
variant: Variant;
|
22
|
+
/** Set content */
|
23
|
+
topContent?: React.ReactNode | string;
|
19
24
|
}
|
20
25
|
declare const DataCard: FC<DataCardProps>;
|
21
26
|
export default DataCard;
|
package/dist/index.d.ts
CHANGED
@@ -45,7 +45,8 @@ import Tooltip from './components/tooltip/Tooltip';
|
|
45
45
|
import Table from './components/table';
|
46
46
|
import Weekly from './components/weekly';
|
47
47
|
import WeeklyGroup from './components/weekly-group';
|
48
|
-
|
48
|
+
import { toast } from 'react-toastify';
|
49
|
+
export { Weekly, WeeklyGroup, Accordion, Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataCard, DataTable, DatePicker, Divider, Donut, DonutLabels, DonutLegend, DropdownButton, Heading, Link, Loading, Menu, Modal, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Switch, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, Table, toast, };
|
49
50
|
/**
|
50
51
|
* Types
|
51
52
|
*/
|