@matteoaliano/forest-ui 0.2.11 → 0.3.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/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Theme } from '@mui/material/styles';
3
- export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alkemyPlusPreset, b as alpha, c as avatarColors, d as bg, e as border, f as breadcrumbColors, g as buildTheme, h as buildThemeOptions, i as buttonColors, j as chartColors, k as colors, l as container, m as display, n as fg, o as focusRings, p as fontFamily, q as fontSize, r as fontWeight, s as forestPreset, t as forestTheme, u as forestThemeOptions, v as getAvailablePresets, w as getPreset, x as iconColors, y as lineHeight, z as navColors, A as radius, B as registerPreset, C as sliderColors, E as spacing, F as text, G as toggleColors, H as tokenShadows, I as widths } from './index-DJDmMb_c.mjs';
3
+ export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alpha, b as avatarColors, c as bg, d as border, e as breadcrumbColors, f as buildTheme, g as buildThemeOptions, h as buttonColors, i as chartColors, j as colors, k as container, l as display, m as fg, n as focusRings, o as fontFamily, p as fontSize, q as fontWeight, r as forestAgencyPreset, s as forestExternalPreset, t as forestInternalPreset, u as forestTheme, v as forestThemeOptions, w as getAvailablePresets, x as getPreset, y as iconColors, z as lineHeight, A as navColors, B as radius, C as registerPreset, E as sliderColors, F as spacing, G as text, H as toggleColors, I as tokenShadows, J as widths } from './index-EkBIDmEu.mjs';
4
4
  import { AutocompleteProps } from '@mui/material/Autocomplete';
5
5
  export { AutocompleteProps } from '@mui/material/Autocomplete';
6
6
  import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
@@ -22,6 +22,9 @@ import { SwitchProps } from '@mui/material/Switch';
22
22
  export { SwitchProps } from '@mui/material/Switch';
23
23
  import { TextFieldProps } from '@mui/material/TextField';
24
24
  export { TextFieldProps } from '@mui/material/TextField';
25
+ import * as React$1 from 'react';
26
+ import React__default from 'react';
27
+ import { BoxProps } from '@mui/material';
25
28
  import { ToggleButtonProps } from '@mui/material/ToggleButton';
26
29
  export { ToggleButtonProps } from '@mui/material/ToggleButton';
27
30
  import { ToggleButtonGroupProps } from '@mui/material/ToggleButtonGroup';
@@ -89,7 +92,6 @@ import { CardMediaProps } from '@mui/material/CardMedia';
89
92
  export { CardMediaProps } from '@mui/material/CardMedia';
90
93
  import { PaperProps } from '@mui/material/Paper';
91
94
  export { PaperProps } from '@mui/material/Paper';
92
- import React$1 from 'react';
93
95
  import { AlertProps } from '@mui/material/Alert';
94
96
  export { AlertProps } from '@mui/material/Alert';
95
97
  import { AlertTitleProps } from '@mui/material/AlertTitle';
@@ -144,7 +146,6 @@ import { BarChartProps as BarChartProps$1 } from '@mui/x-charts/BarChart';
144
146
  import { MakeOptional } from '@mui/x-charts/models/helpers';
145
147
  import { BarSeriesType } from '@mui/x-charts/models/seriesType/bar';
146
148
  import { PieChartProps as PieChartProps$1 } from '@mui/x-charts/PieChart';
147
- import '@mui/material';
148
149
 
149
150
  interface ForestProviderProps {
150
151
  children: React.ReactNode;
@@ -194,6 +195,21 @@ type SearchProps = Omit<TextFieldProps, "variant"> & {
194
195
  };
195
196
  declare function Search({ value: controlledValue, onChange, onClear, placeholder, slotProps, ...props }: SearchProps): react_jsx_runtime.JSX.Element;
196
197
 
198
+ interface LogoProps extends BoxProps {
199
+ /** Product variant */
200
+ variant?: 'agency' | 'external' | 'internal';
201
+ /** Logo size */
202
+ size?: 'sm' | 'md' | 'lg' | 'xl';
203
+ /** Whether to show the logomark only (no text) */
204
+ logomarkOnly?: boolean;
205
+ }
206
+ /**
207
+ * Logo component for Forest product suite
208
+ *
209
+ * Displays Forest logo with support for different product variants and sizes.
210
+ */
211
+ declare const Logo: React$1.ForwardRefExoticComponent<Omit<LogoProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
212
+
197
213
  declare function ToggleButton(props: ToggleButtonProps): react_jsx_runtime.JSX.Element;
198
214
  declare function ToggleButtonGroup(props: ToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
199
215
 
@@ -243,7 +259,7 @@ declare function CardMedia(props: CardMediaProps): react_jsx_runtime.JSX.Element
243
259
 
244
260
  declare function Paper(props: PaperProps): react_jsx_runtime.JSX.Element;
245
261
 
246
- declare const Alert: React$1.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
262
+ declare const Alert: React__default.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
247
263
  declare function AlertTitle(props: AlertTitleProps): react_jsx_runtime.JSX.Element;
248
264
 
249
265
  declare function Backdrop(props: BackdropProps): react_jsx_runtime.JSX.Element;
@@ -304,20 +320,20 @@ interface SidebarNavProps extends Omit<DrawerProps, "open" | "variant" | "onClos
304
320
  /** Whether to show the edge toggle button (default: true for "permanent", false for "hover") */
305
321
  showToggle?: boolean;
306
322
  /** Content rendered inside the sidebar */
307
- children: React$1.ReactNode;
323
+ children: React__default.ReactNode;
308
324
  /** Optional header slot — rendered above children */
309
- header?: React$1.ReactNode;
325
+ header?: React__default.ReactNode;
310
326
  /** Optional footer slot — rendered at bottom */
311
- footer?: React$1.ReactNode;
327
+ footer?: React__default.ReactNode;
312
328
  }
313
329
  declare function SidebarNav({ open, onOpenChange, expandedWidth, collapsedWidth, behavior, showToggle, children, header, footer, sx, ...rest }: SidebarNavProps): react_jsx_runtime.JSX.Element;
314
330
  interface SidebarItemProps extends Omit<ListItemButtonProps, "children"> {
315
331
  /** Icon element (required — visible in both expanded and collapsed states) */
316
- icon: React$1.ReactNode;
332
+ icon: React__default.ReactNode;
317
333
  /** Label text */
318
334
  label: string;
319
335
  /** Optional content rendered on the right side when expanded (badge, count, etc.) */
320
- endAdornment?: React$1.ReactNode;
336
+ endAdornment?: React__default.ReactNode;
321
337
  }
322
338
  declare function SidebarItem({ icon, label, endAdornment, sx, ...rest }: SidebarItemProps): react_jsx_runtime.JSX.Element;
323
339
 
@@ -342,4 +358,4 @@ declare function PieChart({ series, colors, ...props }: PieChartProps): react_js
342
358
 
343
359
  declare function useChartColors(count: number): string[];
344
360
 
345
- export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertTitle, AppBar, Autocomplete, Backdrop, Badge, BarChart, type BarChartProps, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Chip, CircularProgress, DataGrid, DatePicker, type DatePickerProps, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Fab, ForestProvider, type ForestProviderProps, LineChart, type LineChartProps, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, MenuItem, MenuList, Modal, MultiSelect, type MultiSelectOption, type MultiSelectProps, Pagination, Paper, PieChart, type PieChartProps, Popover, Radio, RadioGroup, Search, type SearchProps, Select, SidebarItem, type SidebarItemProps, SidebarNav, type SidebarNavProps, Skeleton, Snackbar, Step, StepLabel, Stepper, Switch, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Tabs, TextField, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, useChartColors, useSidebar };
361
+ export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertTitle, AppBar, Autocomplete, Backdrop, Badge, BarChart, type BarChartProps, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Chip, CircularProgress, DataGrid, DatePicker, type DatePickerProps, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Fab, ForestProvider, type ForestProviderProps, LineChart, type LineChartProps, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Logo, type LogoProps, Menu, MenuItem, MenuList, Modal, MultiSelect, type MultiSelectOption, type MultiSelectProps, Pagination, Paper, PieChart, type PieChartProps, Popover, Radio, RadioGroup, Search, type SearchProps, Select, SidebarItem, type SidebarItemProps, SidebarNav, type SidebarNavProps, Skeleton, Snackbar, Step, StepLabel, Stepper, Switch, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Tabs, TextField, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, useChartColors, useSidebar };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Theme } from '@mui/material/styles';
3
- export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alkemyPlusPreset, b as alpha, c as avatarColors, d as bg, e as border, f as breadcrumbColors, g as buildTheme, h as buildThemeOptions, i as buttonColors, j as chartColors, k as colors, l as container, m as display, n as fg, o as focusRings, p as fontFamily, q as fontSize, r as fontWeight, s as forestPreset, t as forestTheme, u as forestThemeOptions, v as getAvailablePresets, w as getPreset, x as iconColors, y as lineHeight, z as navColors, A as radius, B as registerPreset, C as sliderColors, E as spacing, F as text, G as toggleColors, H as tokenShadows, I as widths } from './index-DJDmMb_c.js';
3
+ export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alpha, b as avatarColors, c as bg, d as border, e as breadcrumbColors, f as buildTheme, g as buildThemeOptions, h as buttonColors, i as chartColors, j as colors, k as container, l as display, m as fg, n as focusRings, o as fontFamily, p as fontSize, q as fontWeight, r as forestAgencyPreset, s as forestExternalPreset, t as forestInternalPreset, u as forestTheme, v as forestThemeOptions, w as getAvailablePresets, x as getPreset, y as iconColors, z as lineHeight, A as navColors, B as radius, C as registerPreset, E as sliderColors, F as spacing, G as text, H as toggleColors, I as tokenShadows, J as widths } from './index-EkBIDmEu.js';
4
4
  import { AutocompleteProps } from '@mui/material/Autocomplete';
5
5
  export { AutocompleteProps } from '@mui/material/Autocomplete';
6
6
  import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
@@ -22,6 +22,9 @@ import { SwitchProps } from '@mui/material/Switch';
22
22
  export { SwitchProps } from '@mui/material/Switch';
23
23
  import { TextFieldProps } from '@mui/material/TextField';
24
24
  export { TextFieldProps } from '@mui/material/TextField';
25
+ import * as React$1 from 'react';
26
+ import React__default from 'react';
27
+ import { BoxProps } from '@mui/material';
25
28
  import { ToggleButtonProps } from '@mui/material/ToggleButton';
26
29
  export { ToggleButtonProps } from '@mui/material/ToggleButton';
27
30
  import { ToggleButtonGroupProps } from '@mui/material/ToggleButtonGroup';
@@ -89,7 +92,6 @@ import { CardMediaProps } from '@mui/material/CardMedia';
89
92
  export { CardMediaProps } from '@mui/material/CardMedia';
90
93
  import { PaperProps } from '@mui/material/Paper';
91
94
  export { PaperProps } from '@mui/material/Paper';
92
- import React$1 from 'react';
93
95
  import { AlertProps } from '@mui/material/Alert';
94
96
  export { AlertProps } from '@mui/material/Alert';
95
97
  import { AlertTitleProps } from '@mui/material/AlertTitle';
@@ -144,7 +146,6 @@ import { BarChartProps as BarChartProps$1 } from '@mui/x-charts/BarChart';
144
146
  import { MakeOptional } from '@mui/x-charts/models/helpers';
145
147
  import { BarSeriesType } from '@mui/x-charts/models/seriesType/bar';
146
148
  import { PieChartProps as PieChartProps$1 } from '@mui/x-charts/PieChart';
147
- import '@mui/material';
148
149
 
149
150
  interface ForestProviderProps {
150
151
  children: React.ReactNode;
@@ -194,6 +195,21 @@ type SearchProps = Omit<TextFieldProps, "variant"> & {
194
195
  };
195
196
  declare function Search({ value: controlledValue, onChange, onClear, placeholder, slotProps, ...props }: SearchProps): react_jsx_runtime.JSX.Element;
196
197
 
198
+ interface LogoProps extends BoxProps {
199
+ /** Product variant */
200
+ variant?: 'agency' | 'external' | 'internal';
201
+ /** Logo size */
202
+ size?: 'sm' | 'md' | 'lg' | 'xl';
203
+ /** Whether to show the logomark only (no text) */
204
+ logomarkOnly?: boolean;
205
+ }
206
+ /**
207
+ * Logo component for Forest product suite
208
+ *
209
+ * Displays Forest logo with support for different product variants and sizes.
210
+ */
211
+ declare const Logo: React$1.ForwardRefExoticComponent<Omit<LogoProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
212
+
197
213
  declare function ToggleButton(props: ToggleButtonProps): react_jsx_runtime.JSX.Element;
198
214
  declare function ToggleButtonGroup(props: ToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
199
215
 
@@ -243,7 +259,7 @@ declare function CardMedia(props: CardMediaProps): react_jsx_runtime.JSX.Element
243
259
 
244
260
  declare function Paper(props: PaperProps): react_jsx_runtime.JSX.Element;
245
261
 
246
- declare const Alert: React$1.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
262
+ declare const Alert: React__default.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
247
263
  declare function AlertTitle(props: AlertTitleProps): react_jsx_runtime.JSX.Element;
248
264
 
249
265
  declare function Backdrop(props: BackdropProps): react_jsx_runtime.JSX.Element;
@@ -304,20 +320,20 @@ interface SidebarNavProps extends Omit<DrawerProps, "open" | "variant" | "onClos
304
320
  /** Whether to show the edge toggle button (default: true for "permanent", false for "hover") */
305
321
  showToggle?: boolean;
306
322
  /** Content rendered inside the sidebar */
307
- children: React$1.ReactNode;
323
+ children: React__default.ReactNode;
308
324
  /** Optional header slot — rendered above children */
309
- header?: React$1.ReactNode;
325
+ header?: React__default.ReactNode;
310
326
  /** Optional footer slot — rendered at bottom */
311
- footer?: React$1.ReactNode;
327
+ footer?: React__default.ReactNode;
312
328
  }
313
329
  declare function SidebarNav({ open, onOpenChange, expandedWidth, collapsedWidth, behavior, showToggle, children, header, footer, sx, ...rest }: SidebarNavProps): react_jsx_runtime.JSX.Element;
314
330
  interface SidebarItemProps extends Omit<ListItemButtonProps, "children"> {
315
331
  /** Icon element (required — visible in both expanded and collapsed states) */
316
- icon: React$1.ReactNode;
332
+ icon: React__default.ReactNode;
317
333
  /** Label text */
318
334
  label: string;
319
335
  /** Optional content rendered on the right side when expanded (badge, count, etc.) */
320
- endAdornment?: React$1.ReactNode;
336
+ endAdornment?: React__default.ReactNode;
321
337
  }
322
338
  declare function SidebarItem({ icon, label, endAdornment, sx, ...rest }: SidebarItemProps): react_jsx_runtime.JSX.Element;
323
339
 
@@ -342,4 +358,4 @@ declare function PieChart({ series, colors, ...props }: PieChartProps): react_js
342
358
 
343
359
  declare function useChartColors(count: number): string[];
344
360
 
345
- export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertTitle, AppBar, Autocomplete, Backdrop, Badge, BarChart, type BarChartProps, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Chip, CircularProgress, DataGrid, DatePicker, type DatePickerProps, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Fab, ForestProvider, type ForestProviderProps, LineChart, type LineChartProps, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, MenuItem, MenuList, Modal, MultiSelect, type MultiSelectOption, type MultiSelectProps, Pagination, Paper, PieChart, type PieChartProps, Popover, Radio, RadioGroup, Search, type SearchProps, Select, SidebarItem, type SidebarItemProps, SidebarNav, type SidebarNavProps, Skeleton, Snackbar, Step, StepLabel, Stepper, Switch, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Tabs, TextField, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, useChartColors, useSidebar };
361
+ export { Accordion, AccordionActions, AccordionDetails, AccordionSummary, Alert, AlertTitle, AppBar, Autocomplete, Backdrop, Badge, BarChart, type BarChartProps, Breadcrumbs, Button, ButtonGroup, type ButtonProps, Card, CardActions, CardContent, CardHeader, CardMedia, Checkbox, Chip, CircularProgress, DataGrid, DatePicker, type DatePickerProps, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, Fab, ForestProvider, type ForestProviderProps, LineChart, type LineChartProps, LinearProgress, Link, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Logo, type LogoProps, Menu, MenuItem, MenuList, Modal, MultiSelect, type MultiSelectOption, type MultiSelectProps, Pagination, Paper, PieChart, type PieChartProps, Popover, Radio, RadioGroup, Search, type SearchProps, Select, SidebarItem, type SidebarItemProps, SidebarNav, type SidebarNavProps, Skeleton, Snackbar, Step, StepLabel, Stepper, Switch, Tab, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Tabs, TextField, ToggleButton, ToggleButtonGroup, Toolbar, Tooltip, Typography, useChartColors, useSidebar };