@registrucentras/rc-ses-react-components 2.4.0 → 2.5.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.
@@ -83,6 +83,10 @@ export declare const CircleFilledIcon: {
83
83
  ({ fillColor, size, weight, ...rest }: __DTS_DEFAULT_0__): import("react").JSX.Element;
84
84
  displayName: string;
85
85
  };
86
+ export declare const ClockIcon: {
87
+ ({ fillColor, size, weight, ...rest }: __DTS_DEFAULT_0__): import("react").JSX.Element;
88
+ displayName: string;
89
+ };
86
90
  export declare const CloseIcon: {
87
91
  ({ fillColor, size, weight, ...rest }: __DTS_DEFAULT_0__): import("react").JSX.Element;
88
92
  displayName: string;
@@ -3,6 +3,7 @@ export interface RcSesBadgeProps {
3
3
  variant: 'neutral' | 'success' | 'warning' | 'error' | 'info' | 'brand';
4
4
  size: 'small' | 'regular';
5
5
  showIcon?: boolean;
6
+ icon?: React.ReactNode;
6
7
  showClose?: boolean;
7
8
  onClose?: () => void;
8
9
  }
@@ -0,0 +1,30 @@
1
+ import { ReactNode } from 'react';
2
+ export interface RcSesDrawerTestIds {
3
+ root?: string;
4
+ header?: string;
5
+ closeButton?: string;
6
+ body?: string;
7
+ footer?: string;
8
+ }
9
+ export interface RcSesDrawerProps {
10
+ /** Whether the drawer is open */
11
+ isOpen: boolean;
12
+ /** Callback fired when the drawer should close */
13
+ onClose: () => void;
14
+ /** Drawer title displayed in header */
15
+ title: ReactNode;
16
+ /** Main content of the drawer (scrollable body) */
17
+ children: ReactNode;
18
+ /** Label for the secondary (left) action button */
19
+ secondaryActionLabel?: string;
20
+ /** Callback fired when secondary action button is clicked */
21
+ onSecondaryAction?: () => void;
22
+ /** Label for the primary (right) action button */
23
+ primaryActionLabel?: string;
24
+ /** Callback fired when primary action button is clicked */
25
+ onPrimaryAction?: () => void;
26
+ /** Test IDs for testing */
27
+ testIds?: RcSesDrawerTestIds;
28
+ /** Optional CSS class name */
29
+ className?: string;
30
+ }
@@ -0,0 +1,9 @@
1
+ import { RcSesDrawerProps, RcSesDrawerTestIds } from './Drawer.types';
2
+ /**
3
+ * RcSesDrawer component - a slide-over panel that slides in from the right.
4
+ * Built on MUI Dialog for proper focus management, scroll locking, and DOM handling.
5
+ * Composition: Header (title + close button), scrollable body, and optional footer.
6
+ */
7
+ declare const RcSesDrawer: ({ isOpen, onClose, title, children, secondaryActionLabel, onSecondaryAction, primaryActionLabel, onPrimaryAction, testIds, className, }: RcSesDrawerProps) => import("react").JSX.Element;
8
+ export default RcSesDrawer;
9
+ export type { RcSesDrawerProps, RcSesDrawerTestIds };
@@ -58,6 +58,7 @@ import { default as RcSesLoader } from '../components/loaders/Loader';
58
58
  import { default as RcSesLoadingSpinner } from '../components/loaders/LoadingSpinner';
59
59
  import { default as RcSesBottomSheet } from '../components/overlays/BottomSheet';
60
60
  import { default as RcSesDialog } from '../components/overlays/Dialog';
61
+ import { default as RcSesDrawer } from '../components/overlays/Drawer';
61
62
  import { default as RcSesModal } from '../components/overlays/Modal';
62
63
  import { default as RcSesTheme } from '../theme/light';
63
64
  import { default as RcSesPalette } from '../theme/palette';
@@ -70,7 +71,7 @@ declare module '@mui/x-date-pickers/models' {
70
71
  export { RcSesPalette, RcSesTheme };
71
72
  export { RcSesAccordion, useAccordionController };
72
73
  export { RcSesAdvancedList, RcSesAdvancedListItem, RcSesAdvancedListItemShell };
73
- export { RcSesAlert, RcSesBadge, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesCardShell, RcSesTitleBlock, RcSesCardFooter, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesModal, RcSesStepCard, RcSesSwitch, RcSesBottomSheet, };
74
+ export { RcSesAlert, RcSesBadge, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesCardShell, RcSesTitleBlock, RcSesCardFooter, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesModal, RcSesStepCard, RcSesSwitch, RcSesBottomSheet, RcSesDrawer, };
74
75
  export { RcSesSegmentedControl };
75
76
  export { RcSesSideNavLayout };
76
77
  export { RcSesCheckbox, RcSesCheckboxFormControl, RcSesSimpleCheckbox };
@@ -21,6 +21,7 @@ import { RcSesLoaderProps, RcSesLoaderSize } from '../components/loaders/Loader'
21
21
  import { RcSesLoadingSpinnerProps, RcSesSpinnerColor } from '../components/loaders/LoadingSpinner';
22
22
  import { RcSesBottomSheetProps } from '../components/overlays/BottomSheet';
23
23
  import { DialogSize, RcSesDialogProps } from '../components/overlays/Dialog';
24
+ import { RcSesDrawerProps, RcSesDrawerTestIds } from '../components/overlays/Drawer';
24
25
  import { ModalVariant, RcSesModalProps } from '../components/overlays/Modal';
25
26
  import { ButtonProps } from '../types/buttons/ButtonProps';
26
27
  export type { ListWithIconsProps, ListWithIconsItemData, ListWithIconsItemTone, PaletteColor, };
@@ -31,3 +32,4 @@ export type { RcSesFullPageLoaderProps, RcSesLoaderBackdrop, RcSesLoaderProps, R
31
32
  export type { RcSesDialogProps, DialogSize };
32
33
  export type { RcSesModalProps, ModalVariant };
33
34
  export type { RcSesBottomSheetProps };
35
+ export type { RcSesDrawerProps, RcSesDrawerTestIds };