@registrucentras/rc-ses-react-components 2.2.0 → 2.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.
@@ -1,4 +1,7 @@
1
1
  import { AdvancedListItemProps } from './AdvancedListItem.types';
2
+ /**
3
+ * @deprecated Use `RcSesAdvancedListItemShell` instead. Will be removed in a future major release.
4
+ */
2
5
  declare const AdvancedListItem: ({ title, label, subtitle, metaItems, leadingMedia, expandedContent, expanded, onExpandedChange, leading, trailing, state, onClick, }: AdvancedListItemProps) => import("react").JSX.Element;
3
6
  export default AdvancedListItem;
4
7
  export type { AdvancedListItemProps };
@@ -0,0 +1,31 @@
1
+ import { ReactNode } from 'react';
2
+ export type AdvancedListItemShellState = 'rest' | 'selected' | 'disabled' | 'error';
3
+ /**
4
+ * `card` - bordered, rounded container (the default).
5
+ * `row` - flush row within a list: no border/radius, just a bottom divider.
6
+ */
7
+ export type AdvancedListItemShellContainer = 'card' | 'row';
8
+ export interface AdvancedListItemShellTestIds {
9
+ root?: string;
10
+ leading?: string;
11
+ content?: string;
12
+ trailing?: string;
13
+ expanded?: string;
14
+ }
15
+ export interface AdvancedListItemShellProps {
16
+ /** Optional leading slot (e.g. checkbox, radio, avatar, icon). Empty => not rendered. */
17
+ leading?: ReactNode;
18
+ /** Required main content slot (title, subtitle, meta, etc.). */
19
+ content: ReactNode;
20
+ /** Optional trailing slot (e.g. actions, status, price). Empty => not rendered. */
21
+ trailing?: ReactNode;
22
+ /** Optional expandable slot content, shown/hidden via `isExpanded`. */
23
+ expanded?: ReactNode;
24
+ isExpanded?: boolean;
25
+ state?: AdvancedListItemShellState;
26
+ /** Visual container style. Defaults to `card`. */
27
+ container?: AdvancedListItemShellContainer;
28
+ onClick?: () => void;
29
+ className?: string;
30
+ testIds?: AdvancedListItemShellTestIds;
31
+ }
@@ -0,0 +1,11 @@
1
+ import { AdvancedListItemShellContainer, AdvancedListItemShellProps, AdvancedListItemShellState, AdvancedListItemShellTestIds } from './AdvancedListItemShell.types';
2
+ /**
3
+ * Slot-based shell (Leading, Content, Trailing, Expanded).
4
+ * Content is required; Leading/Trailing/Expanded are omitted from the DOM
5
+ * entirely when not provided. Slot content is opaque to the shell and stays
6
+ * stable across `state`/`isExpanded` changes — new content variations are
7
+ * composed as slot content, not new boolean/variant props.
8
+ */
9
+ declare const AdvancedListItemShell: ({ leading, content, trailing, expanded, isExpanded, state, container, onClick, className, testIds, }: AdvancedListItemShellProps) => import("react").JSX.Element;
10
+ export default AdvancedListItemShell;
11
+ export type { AdvancedListItemShellContainer, AdvancedListItemShellProps, AdvancedListItemShellState, AdvancedListItemShellTestIds, };
@@ -3,6 +3,7 @@ import { default as RcSesAccordion } from '../components/common/Accordion';
3
3
  import { default as useAccordionController } from '../components/common/Accordion/hooks/useAccordionController';
4
4
  import { default as RcSesAdvancedList } from '../components/common/AdvancedList';
5
5
  import { default as RcSesAdvancedListItem } from '../components/common/AdvancedList/components/AdvancedListItem';
6
+ import { default as RcSesAdvancedListItemShell } from '../components/common/AdvancedList/components/AdvancedListItemShell';
6
7
  import { default as RcSesAlert } from '../components/common/Alert';
7
8
  import { default as RcSesBadge } from '../components/common/Badge';
8
9
  import { default as RcSesBreadcrumbs } from '../components/common/Breadcrumbs';
@@ -68,7 +69,7 @@ declare module '@mui/x-date-pickers/models' {
68
69
  }
69
70
  export { RcSesPalette, RcSesTheme };
70
71
  export { RcSesAccordion, useAccordionController };
71
- export { RcSesAdvancedList, RcSesAdvancedListItem };
72
+ export { RcSesAdvancedList, RcSesAdvancedListItem, RcSesAdvancedListItemShell };
72
73
  export { RcSesAlert, RcSesBadge, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesCardShell, RcSesTitleBlock, RcSesCardFooter, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesModal, RcSesStepCard, RcSesSwitch, RcSesBottomSheet, };
73
74
  export { RcSesSegmentedControl };
74
75
  export { RcSesSideNavLayout };
@@ -1,3 +1,4 @@
1
+ import { AdvancedListItemShellProps, AdvancedListItemShellState, AdvancedListItemShellTestIds } from '../components/common/AdvancedList/components/AdvancedListItemShell/AdvancedListItemShell.types';
1
2
  import { RcSesCardProps } from '../components/common/Card';
2
3
  import { CardFooterAlign, RcSesCardFooterProps, RcSesCardFooterTestIds } from '../components/common/CardShell/CardFooter/types';
3
4
  import { CardShellTheme, CardShellVariant, RcSesCardShellProps, RcSesCardShellTestIds } from '../components/common/CardShell/types';
@@ -25,6 +26,7 @@ import { ButtonProps } from '../types/buttons/ButtonProps';
25
26
  export type { ListWithIconsProps, ListWithIconsItemData, ListWithIconsItemTone, PaletteColor, };
26
27
  export type { RcSesServiceLinksProps, RcSesServiceLinkItem, RcSesServiceLinksTestIds };
27
28
  export type { ButtonProps };
29
+ export type { AdvancedListItemShellProps, AdvancedListItemShellState, AdvancedListItemShellTestIds, };
28
30
  export type { RcSesFullPageLoaderProps, RcSesLoaderBackdrop, RcSesLoaderProps, RcSesLoaderSize, RcSesCardFormContainerProps, RcSesCardProps, RcSesCardShellProps, RcSesCardShellTestIds, RcSesTitleBlockProps, RcSesTitleBlockTestIds, RcSesCardFooterProps, RcSesCardFooterTestIds, CardFooterAlign, CardShellVariant, CardShellTheme, TitleBlockHeadingLevel, TitleBlockTitleVariant, RcSesSegmentedControlProps, RcSesSegmentButtonProps, RcSesSegmentOption, ServiceWizardStepperProps, SimpleCheckboxProps, RcSesFormControlLabelProps, RcSesLoadingSpinnerProps, RcSesSpinnerColor, RcSesTooltipProps, RcSesSideNavItem, RcSesSideNavLayoutProps, RcSesSideNavOverflow, RcSesStepCardProps, RcSesStepCardTestIds, };
29
31
  export type { RcSesDialogProps, DialogSize };
30
32
  export type { RcSesModalProps, ModalVariant };