@foris/avocado-suite 0.22.0 → 0.23.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.
@@ -0,0 +1,33 @@
1
+ import type { FC, ReactNode } from 'react';
2
+ import type { IconTypes, Color } from '../../../../avocado-icons';
3
+ type Type = 'neutral' | 'success' | 'error' | 'warning';
4
+ interface AccordionProps {
5
+ /** Content action */
6
+ actionContent?: ReactNode;
7
+ /** Render content accordion */
8
+ children: ReactNode | string;
9
+ /** Overwrite className */
10
+ className?: string;
11
+ /** Render custom component */
12
+ customContent?: ReactNode;
13
+ /** Description content */
14
+ description?: string;
15
+ /** Disabled state */
16
+ disabled?: boolean;
17
+ /** Have Checkbox */
18
+ hasCheckbox?: boolean;
19
+ /** Have Icon */
20
+ hasIcon?: boolean;
21
+ /** Icon variant for the type neutral */
22
+ neutralIcon?: {
23
+ name: IconTypes;
24
+ color: Color;
25
+ filled?: boolean;
26
+ };
27
+ /** Set title */
28
+ title: string;
29
+ /** Type variant */
30
+ type?: Type;
31
+ }
32
+ declare const Accordion: FC<AccordionProps>;
33
+ export default Accordion;
File without changes
@@ -0,0 +1,21 @@
1
+ import type { FC } from 'react';
2
+ import type { IconTypes } from '../../../../avocado-icons';
3
+ type Variant = 'success' | 'info' | 'warning' | 'error' | 'neutral';
4
+ interface DataCardProps {
5
+ /** Render content dataCard */
6
+ children?: React.ReactNode | string;
7
+ /** Overwrite className */
8
+ className?: string;
9
+ /** Render the description */
10
+ description?: string;
11
+ /** Set hasTopBar */
12
+ hasTopBar?: boolean;
13
+ /** Icon of the DataCard */
14
+ icon?: IconTypes;
15
+ /** Title of the DataCard */
16
+ title: string;
17
+ /** Use the variant of the DataCard */
18
+ variant: Variant;
19
+ }
20
+ declare const DataCard: FC<DataCardProps>;
21
+ export default DataCard;
File without changes
package/dist/index.d.ts CHANGED
@@ -3,12 +3,14 @@
3
3
  */
4
4
  import { ThemeProvider } from './contexts/theme/ThemeProvider';
5
5
  import * as ThemeStore from './store/useThemeStore';
6
+ import Accordion from './components/accordion/Accordion';
6
7
  import Box from './components/box/Box';
7
8
  import Breadcrumbs from './components/breadcrumbs/Breadcrumbs';
8
9
  import Button from './components/button/Button';
9
10
  import Card from './components/card/Card';
10
11
  import CardNotification from './components/card-notification/CardNotification';
11
12
  import Checkbox from './components/checkbox/Checkbox';
13
+ import DataCard from './components/data-card/DataCard';
12
14
  import DataTable from './components/DataTable/DataTable';
13
15
  import DatePicker from './components/date-picker/DatePicker';
14
16
  import Divider from './components/divider/Divider';
@@ -39,7 +41,7 @@ import TextField from './components/text-field/TextField';
39
41
  import Timer from './components/timer/Timer';
40
42
  import Toaster from './components/toaster/Toaster';
41
43
  import Tooltip from './components/tooltip/Tooltip';
42
- export { Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataTable, DatePicker, Divider, Donut, DonutLabels, DonutLegend, DropdownButton, Heading, Link, Loading, Menu, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Switch, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, };
44
+ export { Accordion, Box, Breadcrumbs, Button, Card, CardNotification, Checkbox, DataCard, DataTable, DatePicker, Divider, Donut, DonutLabels, DonutLegend, DropdownButton, Heading, Link, Loading, Menu, Pager, Pill, Processing, ProgressBar, RadioButton, RoundButton, Select, SelectPagination, SkeletonBase, SkeletonCircle, Stepper, Switch, Tabs, Tag, Text, TextField, ThemeProvider, ThemeStore, Timer, Toaster, Tooltip, };
43
45
  /**
44
46
  * Types
45
47
  */