sage-nexus-ui 1.2.7 → 1.3.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,28 @@
1
+ import { type SxProps, type Theme } from "@mui/material";
2
+ import type { ReactNode } from "react";
3
+ export interface SideBladeProps {
4
+ /** Whether the blade is currently expanded */
5
+ open: boolean;
6
+ /** Called when the toggle button is clicked, or when the mobile backdrop is clicked */
7
+ onToggle: () => void;
8
+ /** Content shown when the blade is expanded */
9
+ children?: ReactNode;
10
+ /**
11
+ * Optional content shown when the blade is collapsed (e.g. icon-only navigation).
12
+ * When omitted the blade shows only the toggle button in its collapsed state.
13
+ */
14
+ collapsedContent?: ReactNode;
15
+ /** Width of the blade when expanded (px). Default: 240 */
16
+ expandedWidth?: number;
17
+ /** Width of the blade when collapsed (px). Default: 64 */
18
+ collapsedWidth?: number;
19
+ /** Additional sx overrides applied to the Drawer Paper */
20
+ sx?: SxProps<Theme>;
21
+ }
22
+ /**
23
+ * SideBlade — a mini-variant persistent Drawer that expands/collapses.
24
+ *
25
+ * On mobile (< sm) it becomes a full temporary overlay drawer.
26
+ * Content is fully customisable via `children`.
27
+ */
28
+ export declare const SideBlade: ({ open, onToggle, children, collapsedContent, expandedWidth, collapsedWidth, sx, }: SideBladeProps) => import("react/jsx-runtime").JSX.Element;
@@ -61,6 +61,8 @@ export { RagChip } from "./RagChip";
61
61
  export { SecondaryButtonLink } from "./SecondaryButtonLink";
62
62
  export type { SecondaryButtonLinkProps } from "./SecondaryButtonLink";
63
63
  export { SearchInput } from "./SearchInput";
64
+ export { SideBlade } from "./SideBlade";
65
+ export type { SideBladeProps } from "./SideBlade";
64
66
  export { Skeleton } from "./Skeleton";
65
67
  export type { SkeletonProps } from "./Skeleton";
66
68
  export { SkillChip } from "./SkillChip";
package/dist/index.d.ts CHANGED
@@ -310,6 +310,33 @@ interface SearchInputProps {
310
310
  }
311
311
  declare const SearchInput: react__default.FC<SearchInputProps>;
312
312
 
313
+ interface SideBladeProps {
314
+ /** Whether the blade is currently expanded */
315
+ open: boolean;
316
+ /** Called when the toggle button is clicked, or when the mobile backdrop is clicked */
317
+ onToggle: () => void;
318
+ /** Content shown when the blade is expanded */
319
+ children?: ReactNode;
320
+ /**
321
+ * Optional content shown when the blade is collapsed (e.g. icon-only navigation).
322
+ * When omitted the blade shows only the toggle button in its collapsed state.
323
+ */
324
+ collapsedContent?: ReactNode;
325
+ /** Width of the blade when expanded (px). Default: 240 */
326
+ expandedWidth?: number;
327
+ /** Width of the blade when collapsed (px). Default: 64 */
328
+ collapsedWidth?: number;
329
+ /** Additional sx overrides applied to the Drawer Paper */
330
+ sx?: SxProps<Theme>;
331
+ }
332
+ /**
333
+ * SideBlade — a mini-variant persistent Drawer that expands/collapses.
334
+ *
335
+ * On mobile (< sm) it becomes a full temporary overlay drawer.
336
+ * Content is fully customisable via `children`.
337
+ */
338
+ declare const SideBlade: ({ open, onToggle, children, collapsedContent, expandedWidth, collapsedWidth, sx, }: SideBladeProps) => react_jsx_runtime.JSX.Element;
339
+
313
340
  type SkeletonProps = SkeletonProps$1;
314
341
  /**
315
342
  * A themed wrapper around MUI Skeleton.
@@ -459,5 +486,5 @@ declare const getGradientBorderStyles: (theme: Theme$1, options?: GradientBorder
459
486
  declare const leftPipe: SxProps$2<Theme$1>;
460
487
  declare const expandableText: (isExpanded: boolean) => SxProps$2<Theme$1>;
461
488
 
462
- export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AiButton, AiCard, AiGlassCard, AiGlassPaper, AiPaper, Body1, Body2, Box, ButtonBase, Caption, Card, CheckboxGroup, Chip, Collapse, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, H1, H2, H3, H4, IconButton, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MuiAppThemeProvider, NexusDataGrid, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, Skeleton, SkillChip, Stack, StatusChip, Tab, Tabs, TextField, ThemeModeProvider, ThemeToggle, Tooltip, colours, createSageTheme, expandableText, fontSageHeadline, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
463
- export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, LoadingSpinnerNexusProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SkeletonProps, ThemeMode, TooltipProps };
489
+ export { AccordionGroup, AccordionGroupItem, AccordionSingle, ActionBar, ActionBarTitle, AiButton, AiCard, AiGlassCard, AiGlassPaper, AiPaper, Body1, Body2, Box, ButtonBase, Caption, Card, CheckboxGroup, Chip, Collapse, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Divider, GlassCard, GlassPaper, GlassPaperAsync, GreenWaveBackground, H1, H2, H3, H4, IconButton, LoadingSpinnerNexus, LocationMultiSelect, LogoOptions, MuiAppThemeProvider, NexusDataGrid, NexusHome, NexusLogo, Paper, PrimaryButton, PrimaryButtonLink, RagChip, RagDot, SearchInput, SecondaryButton, SecondaryButtonLink, SideBlade, Skeleton, SkillChip, Stack, StatusChip, Tab, Tabs, TextField, ThemeModeProvider, ThemeToggle, Tooltip, colours, createSageTheme, expandableText, fontSageHeadline, fontSageText, fontSageUI, formatDate, getFiscalPeriod, getGradientBorderStyles, getModeTokens, gradients, leftPipe, useThemeMode, useTokens };
490
+ export type { AccordionGroupItemProps, AccordionGroupProps, AccordionSingleProps, AiButtonProps, AiCardProps, AiGlassCardProps, AiGlassPaperProps, AiPaperProps, CardProps, CardTrend, GlassCardProps, GlassPaperAsyncProps, GlassPaperProps, GradientBorderOptions, GreenWaveBackgroundProps, IconButtonProps, LoadingSpinnerNexusProps, ModeTokens, PrimaryButtonLinkProps, PrimaryButtonProps, SecondaryButtonLinkProps, SecondaryButtonProps, SideBladeProps, SkeletonProps, ThemeMode, TooltipProps };