@registrucentras/rc-ses-react-components 2.0.0-rc.7 → 2.0.0-rc.8

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.
Files changed (199) hide show
  1. package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +2 -2
  2. package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +2 -2
  3. package/dist/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.d.ts +2 -2
  4. package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.d.ts +2 -2
  5. package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.d.ts +2 -2
  6. package/dist/components/common/Badge/index.d.ts +2 -2
  7. package/dist/components/common/Breadcrumbs/index.d.ts +4 -4
  8. package/dist/components/common/Card/index.d.ts +2 -2
  9. package/dist/components/common/CardShell/CardFooter/index.d.ts +1 -1
  10. package/dist/components/common/CardShell/CardFooter/types.d.ts +4 -9
  11. package/dist/components/common/CardShell/types.d.ts +4 -4
  12. package/dist/components/common/IconWithCircularBackground.d.ts +2 -2
  13. package/dist/components/common/IconWithSquareBackground/index.d.ts +2 -2
  14. package/dist/components/common/ImageCard/index.d.ts +2 -2
  15. package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +2 -2
  16. package/dist/components/common/SelectableCardList/index.d.ts +2 -2
  17. package/dist/components/common/ServiceLinks/types.d.ts +6 -6
  18. package/dist/components/common/SideNav/SideNav.types.d.ts +7 -5
  19. package/dist/components/common/SideNav/SideNavLayout.d.ts +1 -1
  20. package/dist/components/common/SideNav/components/SideNavPill.d.ts +2 -2
  21. package/dist/components/common/SideNav/components/SideNavPillList.d.ts +2 -2
  22. package/dist/components/common/SideNav/components/SideNavRow.d.ts +4 -3
  23. package/dist/components/common/SideNav/hooks/useKeepActiveItemInView.d.ts +19 -0
  24. package/dist/components/common/SideNav/hooks/useSideNavScrollSpy.d.ts +2 -2
  25. package/dist/components/common/SideNav/index.d.ts +2 -2
  26. package/dist/components/common/Tabs/TabPanel.d.ts +2 -2
  27. package/dist/components/common/Tabs/TabsWrapper.d.ts +2 -2
  28. package/dist/components/common/TitleBlock/types.d.ts +4 -4
  29. package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +2 -2
  30. package/dist/components/form/components/FormControlWrapper/index.d.ts +2 -2
  31. package/dist/components/form/inputs/RadioButtonGroup.d.ts +3 -3
  32. package/dist/components/form/inputs/SearchableField.d.ts +2 -2
  33. package/dist/components/form/inputs/Select/Select.types.d.ts +2 -2
  34. package/dist/components/layout/Footer/index.d.ts +2 -2
  35. package/dist/components/layout/ServiceFormActions.d.ts +2 -2
  36. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +2 -2
  37. package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +2 -2
  38. package/dist/components/layout/ServiceHeader.d.ts +2 -2
  39. package/dist/components/layout/ServicePage.d.ts +2 -2
  40. package/dist/components/utils/normalizeSx.d.ts +1 -1
  41. package/dist/library/types.d.ts +2 -2
  42. package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
  43. package/dist/registrucentras-rc-ses-react-components.js +1631 -1589
  44. package/dist/types/assets/IconProps.d.ts +2 -2
  45. package/dist/types/cards/CardServiceProps.d.ts +2 -2
  46. package/dist/types/common/QuickLinkType.d.ts +2 -2
  47. package/dist/types/inputs/InputIconProps.d.ts +2 -2
  48. package/dist/types/lists/ListNewsItemType.d.ts +2 -2
  49. package/dist/types/lists/ListServicesItemType.d.ts +3 -3
  50. package/package.json +2 -1
  51. package/src/components/common/Accordion/hooks/useAccordionController.tsx +1 -1
  52. package/src/components/common/Accordion/index.tsx +1 -4
  53. package/src/components/common/Accordion/types/AccordionControllerState.ts +1 -1
  54. package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts +1 -1
  55. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +1 -1
  56. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +1 -1
  57. package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +2 -2
  58. package/src/components/common/Badge/index.tsx +3 -3
  59. package/src/components/common/Breadcrumbs/index.tsx +5 -2
  60. package/src/components/common/Card/index.tsx +1 -1
  61. package/src/components/common/CardShell/CardFooter/index.tsx +6 -13
  62. package/src/components/common/CardShell/CardFooter/types.ts +2 -7
  63. package/src/components/common/CardShell/types.ts +2 -2
  64. package/src/components/common/IconWithCircularBackground.tsx +7 -8
  65. package/src/components/common/IconWithSquareBackground/index.tsx +7 -8
  66. package/src/components/common/ImageCard/index.tsx +1 -1
  67. package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +18 -19
  68. package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +1 -1
  69. package/src/components/common/SelectableCardList/index.tsx +1 -1
  70. package/src/components/common/ServiceLinks/types.ts +3 -3
  71. package/src/components/common/SideNav/SideNav.types.ts +11 -3
  72. package/src/components/common/SideNav/SideNavLayout.tsx +3 -0
  73. package/src/components/common/SideNav/components/SideNavPill.tsx +1 -1
  74. package/src/components/common/SideNav/components/SideNavPillList.tsx +8 -23
  75. package/src/components/common/SideNav/components/SideNavRow.tsx +6 -2
  76. package/src/components/common/SideNav/hooks/useKeepActiveItemInView.test.ts +258 -0
  77. package/src/components/common/SideNav/hooks/useKeepActiveItemInView.ts +80 -0
  78. package/src/components/common/SideNav/hooks/useSideNavScrollSpy.test.ts +9 -2
  79. package/src/components/common/SideNav/hooks/useSideNavScrollSpy.ts +4 -3
  80. package/src/components/common/SideNav/index.test.tsx +51 -0
  81. package/src/components/common/SideNav/index.tsx +47 -12
  82. package/src/components/common/Snackbar/index.test.tsx +40 -0
  83. package/src/components/common/Snackbar/index.tsx +9 -3
  84. package/src/components/common/Tabs/TabPanel.tsx +1 -1
  85. package/src/components/common/Tabs/TabsWrapper.tsx +1 -1
  86. package/src/components/common/TitleBlock/index.test.tsx +9 -7
  87. package/src/components/common/TitleBlock/index.tsx +13 -9
  88. package/src/components/common/TitleBlock/types.ts +2 -2
  89. package/src/components/form/components/FormControlWrapper/components/FieldSuffix.tsx +1 -1
  90. package/src/components/form/components/FormControlWrapper/index.tsx +1 -1
  91. package/src/components/form/inputs/Datepicker/index.test.tsx +1 -1
  92. package/src/components/form/inputs/FileDropzone.tsx +1 -4
  93. package/src/components/form/inputs/NumberStepper.test.tsx +83 -0
  94. package/src/components/form/inputs/NumberStepper.tsx +7 -8
  95. package/src/components/form/inputs/RadioButtonGroup.test.tsx +1 -1
  96. package/src/components/form/inputs/RadioButtonGroup.tsx +2 -2
  97. package/src/components/form/inputs/SearchInput/index.tsx +1 -1
  98. package/src/components/form/inputs/SearchableField.test.tsx +2 -2
  99. package/src/components/form/inputs/SearchableField.tsx +1 -1
  100. package/src/components/form/inputs/Select/Select.types.ts +1 -1
  101. package/src/components/form/inputs/Select/index.test.tsx +3 -3
  102. package/src/components/layout/Footer/index.tsx +1 -1
  103. package/src/components/layout/ServiceFormActions.tsx +1 -1
  104. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +1 -1
  105. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +1 -1
  106. package/src/components/layout/ServiceHeader.tsx +1 -1
  107. package/src/components/layout/ServicePage.tsx +1 -1
  108. package/src/components/utils/normalizeSx.ts +2 -4
  109. package/src/examples/ListWithPagination/index.tsx +0 -2
  110. package/src/examples/MultipleStepForm/components/AdditionalServicesForm.tsx +1 -1
  111. package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +1 -1
  112. package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +1 -1
  113. package/src/examples/MultipleStepForm/types/MultiStepFormModel.ts +1 -1
  114. package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +2 -2
  115. package/src/examples/SingleStepForm/types/SingleStepFormModel.ts +1 -1
  116. package/src/library/types.ts +2 -1
  117. package/src/stories/atoms/Button.stories.tsx +9 -14
  118. package/src/stories/atoms/Checkbox.stories.tsx +1 -1
  119. package/src/stories/atoms/Icons.stories.tsx +1 -1
  120. package/src/stories/atoms/NumberStepper.stories.tsx +1 -1
  121. package/src/stories/atoms/PhoneInput.stories.tsx +1 -1
  122. package/src/stories/atoms/Select.stories.tsx +7 -9
  123. package/src/stories/atoms/Switch.stories.tsx +1 -1
  124. package/src/stories/molecules/Alert.stories.tsx +2 -2
  125. package/src/stories/molecules/CardShell.stories.tsx +4 -4
  126. package/src/stories/molecules/CheckboxFormControl.stories.tsx +13 -21
  127. package/src/stories/molecules/RadioButtonGroup.stories.tsx +1 -1
  128. package/src/stories/molecules/Snackbar.stories.tsx +2 -2
  129. package/src/stories/molecules/TitleBlock.stories.tsx +40 -1
  130. package/src/stories/organisms/AdvancedList.stories.tsx +4 -4
  131. package/src/stories/organisms/FileDropzone.stories.tsx +1 -1
  132. package/src/stories/organisms/FileUpload.stories.tsx +1 -1
  133. package/src/stories/organisms/SideNav.stories.tsx +36 -3
  134. package/src/stubs/Component.tsx +4 -4
  135. package/src/types/assets/IconProps.tsx +1 -1
  136. package/src/types/cards/CardServiceProps.tsx +1 -1
  137. package/src/types/common/QuickLinkType.tsx +1 -1
  138. package/src/types/inputs/InputIconProps.tsx +1 -1
  139. package/src/types/lists/ListNewsItemType.tsx +1 -1
  140. package/src/types/lists/ListServicesItemType.tsx +2 -2
  141. package/src/vite-env.d.ts +2 -2
  142. package/dist/stories/atoms/Badge.stories.d.ts +0 -9
  143. package/dist/stories/atoms/Button.stories.d.ts +0 -107
  144. package/dist/stories/atoms/Checkbox.stories.d.ts +0 -21
  145. package/dist/stories/atoms/IconWithCircularBackground.stories.d.ts +0 -6
  146. package/dist/stories/atoms/IconWithSquareBackground.stories.d.ts +0 -7
  147. package/dist/stories/atoms/Icons.stories.d.ts +0 -7
  148. package/dist/stories/atoms/Loader.stories.d.ts +0 -36
  149. package/dist/stories/atoms/LoadingSpinner.stories.d.ts +0 -62
  150. package/dist/stories/atoms/Logo.stories.d.ts +0 -12
  151. package/dist/stories/atoms/NumberStepper.stories.d.ts +0 -6
  152. package/dist/stories/atoms/PhoneInput.stories.d.ts +0 -10
  153. package/dist/stories/atoms/SearchInput.stories.d.ts +0 -11
  154. package/dist/stories/atoms/Select.stories.d.ts +0 -7
  155. package/dist/stories/atoms/SimpleCheckbox.stories.d.ts +0 -19
  156. package/dist/stories/atoms/Switch.stories.d.ts +0 -17
  157. package/dist/stories/atoms/Tab.stories.d.ts +0 -8
  158. package/dist/stories/atoms/TextField.stories.d.ts +0 -6
  159. package/dist/stories/atoms/Tooltip.stories.d.ts +0 -48
  160. package/dist/stories/foundations/ThemedMuiComponents.stories.d.ts +0 -25
  161. package/dist/stories/molecules/Alert.stories.d.ts +0 -14
  162. package/dist/stories/molecules/Breadcrumbs.stories.d.ts +0 -6
  163. package/dist/stories/molecules/ButtonWithPopover.stories.d.ts +0 -7
  164. package/dist/stories/molecules/Card.stories.d.ts +0 -8
  165. package/dist/stories/molecules/CardShell.stories.d.ts +0 -18
  166. package/dist/stories/molecules/CheckboxFormControl.stories.d.ts +0 -9
  167. package/dist/stories/molecules/DatePicker.stories.d.ts +0 -152
  168. package/dist/stories/molecules/FormControlWrapper.stories.d.ts +0 -7
  169. package/dist/stories/molecules/ImageCard.stories.d.ts +0 -8
  170. package/dist/stories/molecules/ListWithIcons.stories.d.ts +0 -34
  171. package/dist/stories/molecules/PhoneInputFormControl.stories.d.ts +0 -6
  172. package/dist/stories/molecules/Popover.stories.d.ts +0 -12
  173. package/dist/stories/molecules/RadioButtonGroup.stories.d.ts +0 -6
  174. package/dist/stories/molecules/SearchableField.stories.d.ts +0 -6
  175. package/dist/stories/molecules/SegmentedControl.stories.d.ts +0 -202
  176. package/dist/stories/molecules/Snackbar.stories.d.ts +0 -143
  177. package/dist/stories/molecules/TabPanel.stories.d.ts +0 -7
  178. package/dist/stories/molecules/Tabs.stories.d.ts +0 -7
  179. package/dist/stories/molecules/TabsWrapper.stories.d.ts +0 -6
  180. package/dist/stories/molecules/TitleBlock.stories.d.ts +0 -22
  181. package/dist/stories/organisms/Accordion.stories.d.ts +0 -18
  182. package/dist/stories/organisms/AdvancedList.stories.d.ts +0 -33
  183. package/dist/stories/organisms/AdvancedListItem.stories.d.ts +0 -33
  184. package/dist/stories/organisms/CardFormContainer.stories.d.ts +0 -7
  185. package/dist/stories/organisms/DataPagination.stories.d.ts +0 -47
  186. package/dist/stories/organisms/Dialog.stories.d.ts +0 -15
  187. package/dist/stories/organisms/FileDropzone.stories.d.ts +0 -6
  188. package/dist/stories/organisms/FileUpload.stories.d.ts +0 -18
  189. package/dist/stories/organisms/Footer.stories.d.ts +0 -6
  190. package/dist/stories/organisms/FullPageLoader.stories.d.ts +0 -37
  191. package/dist/stories/organisms/Modal.stories.d.ts +0 -10
  192. package/dist/stories/organisms/SelectableCardList.stories.d.ts +0 -37
  193. package/dist/stories/organisms/ServiceFormActions.stories.d.ts +0 -6
  194. package/dist/stories/organisms/ServiceFormContainer.stories.d.ts +0 -15
  195. package/dist/stories/organisms/ServiceHeader.stories.d.ts +0 -7
  196. package/dist/stories/organisms/ServiceLinks.stories.d.ts +0 -28
  197. package/dist/stories/organisms/ServiceWizardStepper.stories.d.ts +0 -7
  198. package/dist/stories/organisms/SideNav.stories.d.ts +0 -7
  199. package/dist/stories/templates/ServicePage.stories.d.ts +0 -6
@@ -1,7 +1,7 @@
1
1
  import { AccordionControllerState } from '../types/AccordionControllerState';
2
- type Props = {
2
+ interface Props {
3
3
  initialState: AccordionControllerState;
4
- };
4
+ }
5
5
  declare function useAccordionController({ initialState }: Props): {
6
6
  collapseAll: () => void;
7
7
  expandAll: () => void;
@@ -1,8 +1,8 @@
1
- export type AccordionState = {
1
+ export interface AccordionState {
2
2
  canToggle?: boolean | undefined;
3
3
  disabled?: boolean | undefined;
4
4
  expanded: boolean | undefined;
5
5
  state: 'active' | 'completed' | 'pending';
6
6
  title: string;
7
- };
7
+ }
8
8
  export type AccordionControllerState = Record<string, AccordionState>;
@@ -2,7 +2,7 @@ import { ComponentType, ReactNode } from 'react';
2
2
  import { ListWithIconsItemData } from '../../../ListWithIcons/ListWithIcons.types';
3
3
  export type AdvancedListItemState = 'rest' | 'selected' | 'disabled' | 'error';
4
4
  export type AdvancedListItemStatusColor = 'grey' | 'warning' | 'success' | 'error';
5
- export type AdvancedListItemAction = {
5
+ export interface AdvancedListItemAction {
6
6
  label: string;
7
7
  icon?: ComponentType<{
8
8
  fillColor?: string;
@@ -10,7 +10,7 @@ export type AdvancedListItemAction = {
10
10
  }>;
11
11
  onClick: () => void;
12
12
  disabled?: boolean;
13
- };
13
+ }
14
14
  export type AdvancedListItemLeading = {
15
15
  type: 'none';
16
16
  } | {
@@ -1,12 +1,12 @@
1
1
  import { RefObject } from 'react';
2
2
  import { AdvancedListItemLeading as AdvancedListItemLeadingData } from '../AdvancedListItem.types';
3
- type Props = {
3
+ interface Props {
4
4
  leading: AdvancedListItemLeadingData;
5
5
  disabled?: boolean;
6
6
  inputRef?: RefObject<HTMLInputElement>;
7
7
  expandableId?: string;
8
8
  expanded?: boolean;
9
9
  titleId?: string;
10
- };
10
+ }
11
11
  declare const AdvancedListItemLeading: ({ leading, disabled, inputRef, expandableId, expanded, titleId, }: Props) => import("react").JSX.Element | null;
12
12
  export default AdvancedListItemLeading;
@@ -1,7 +1,7 @@
1
1
  import { AdvancedListItemTrailing as AdvancedListItemTrailingData } from '../AdvancedListItem.types';
2
- type Props = {
2
+ interface Props {
3
3
  trailing: AdvancedListItemTrailingData;
4
4
  disabled?: boolean;
5
- };
5
+ }
6
6
  declare const AdvancedListItemTrailing: ({ trailing, disabled }: Props) => import("react").JSX.Element | null;
7
7
  export default AdvancedListItemTrailing;
@@ -1,10 +1,10 @@
1
- export type RcSesBadgeProps = {
1
+ export interface RcSesBadgeProps {
2
2
  label: string;
3
3
  variant: 'neutral' | 'success' | 'warning' | 'error' | 'info' | 'brand';
4
4
  size: 'small' | 'regular';
5
5
  showIcon?: boolean;
6
6
  showClose?: boolean;
7
7
  onClose?: () => void;
8
- };
8
+ }
9
9
  declare function RcSesBadge(props: RcSesBadgeProps): import("react").JSX.Element;
10
10
  export default RcSesBadge;
@@ -1,11 +1,11 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
- export type BreadcrumbItem = {
2
+ export interface BreadcrumbItem {
3
3
  label: string;
4
4
  path: string;
5
- };
6
- type Props = {
5
+ }
6
+ interface Props {
7
7
  path: BreadcrumbItem[];
8
8
  sx?: SxProps<Theme>;
9
- };
9
+ }
10
10
  declare function RcSesBreadcrumbs({ path, sx }: Props): import("react").JSX.Element;
11
11
  export default RcSesBreadcrumbs;
@@ -1,6 +1,6 @@
1
1
  import { BoxProps, CardProps, StackProps, TypographyProps } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
- export type RcSesCardTestIds = {
3
+ export interface RcSesCardTestIds {
4
4
  root?: string;
5
5
  image?: string;
6
6
  header?: string;
@@ -11,7 +11,7 @@ export type RcSesCardTestIds = {
11
11
  actions?: string;
12
12
  leadingActions?: string;
13
13
  trailingActions?: string;
14
- };
14
+ }
15
15
  export type RcSesCardProps = Omit<CardProps, 'children' | 'title'> & {
16
16
  title: ReactNode;
17
17
  description?: ReactNode;
@@ -1,3 +1,3 @@
1
1
  import { RcSesCardFooterProps } from './types';
2
- declare function RcSesCardFooter({ children, align, stretchOnMobile, className, testIds, }: RcSesCardFooterProps): import("react").JSX.Element;
2
+ declare function RcSesCardFooter({ children, align, className, testIds, }: RcSesCardFooterProps): import("react").JSX.Element;
3
3
  export default RcSesCardFooter;
@@ -1,9 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type CardFooterAlign = 'start' | 'between' | 'end';
3
- export type RcSesCardFooterTestIds = {
3
+ export interface RcSesCardFooterTestIds {
4
4
  root?: string;
5
- };
6
- export type RcSesCardFooterProps = {
5
+ }
6
+ export interface RcSesCardFooterProps {
7
7
  children?: ReactNode;
8
8
  /**
9
9
  * Horizontal distribution of the row. `between` pushes the first and last
@@ -11,11 +11,6 @@ export type RcSesCardFooterProps = {
11
11
  * primary action; `start` is a lone link such as "Žiūrėti visas".
12
12
  */
13
13
  align?: CardFooterAlign;
14
- /**
15
- * Whether direct children stretch to the full width once the row stacks.
16
- * Right for buttons, wrong for a text link, which is why it is a prop.
17
- */
18
- stretchOnMobile?: boolean;
19
14
  className?: string;
20
15
  testIds?: RcSesCardFooterTestIds;
21
- };
16
+ }
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type CardShellVariant = 'card' | 'subcard';
3
3
  export type CardShellTheme = 'default' | 'brand' | 'sunken';
4
- export type RcSesCardShellTestIds = {
4
+ export interface RcSesCardShellTestIds {
5
5
  root?: string;
6
6
  header?: string;
7
7
  content?: string;
8
8
  footer?: string;
9
- };
10
- export type RcSesCardShellProps = {
9
+ }
10
+ export interface RcSesCardShellProps {
11
11
  variant?: CardShellVariant;
12
12
  theme?: CardShellTheme;
13
13
  fullHeight?: boolean;
@@ -23,4 +23,4 @@ export type RcSesCardShellProps = {
23
23
  footer?: ReactNode;
24
24
  className?: string;
25
25
  testIds?: RcSesCardShellTestIds;
26
- };
26
+ }
@@ -2,13 +2,13 @@ import { default as React } from 'react';
2
2
  import { default as IconProps } from '../../assets/IconProps';
3
3
  import { default as palette } from '../../theme/palette';
4
4
  type Shade = keyof (typeof palette)[keyof typeof palette];
5
- type Props = {
5
+ interface Props {
6
6
  bgShade?: Shade | 'white';
7
7
  color?: keyof typeof palette;
8
8
  Icon: React.JSXElementConstructor<IconProps>;
9
9
  iconShade?: Shade | 'white';
10
10
  size?: 'tiny' | 'small' | 'medium' | 'mediumLarge' | 'large';
11
- };
11
+ }
12
12
  declare function IconWithCircularBackground(props: Props): React.JSX.Element;
13
13
  declare const _default: React.MemoExoticComponent<typeof IconWithCircularBackground>;
14
14
  export default _default;
@@ -2,11 +2,11 @@ import { default as React } from 'react';
2
2
  import { default as IconProps } from '../../../assets/IconProps';
3
3
  type SquareTileSize = 40 | 44;
4
4
  type SquareTileVariant = 'solid' | 'soft' | 'muted';
5
- type Props = {
5
+ interface Props {
6
6
  Icon: React.JSXElementConstructor<IconProps>;
7
7
  size?: SquareTileSize;
8
8
  variant?: SquareTileVariant;
9
- };
9
+ }
10
10
  declare function IconWithSquareBackground(props: Props): React.JSX.Element;
11
11
  declare const _default: React.MemoExoticComponent<typeof IconWithSquareBackground>;
12
12
  export default _default;
@@ -1,13 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { RcSesCardProps, RcSesCardTestIds } from '../Card';
3
3
  export type RcSesImageCardTestIds = Pick<RcSesCardTestIds, 'root' | 'image' | 'header' | 'title' | 'description' | 'content'>;
4
- export type RcSesImageCardProps = {
4
+ export interface RcSesImageCardProps {
5
5
  image: ReactNode;
6
6
  title: ReactNode;
7
7
  description?: ReactNode;
8
8
  button?: ReactNode;
9
9
  testIds?: RcSesImageCardTestIds;
10
10
  slotProps?: RcSesCardProps['slotProps'];
11
- };
11
+ }
12
12
  declare function RcSesImageCard({ image, title, description, button, testIds, slotProps, }: RcSesImageCardProps): import("react").JSX.Element;
13
13
  export default RcSesImageCard;
@@ -1,5 +1,5 @@
1
1
  import { ListWithIconsItemData } from '../../ListWithIcons/ListWithIcons.types';
2
- type Props = {
2
+ interface Props {
3
3
  title: string;
4
4
  subtitle?: string;
5
5
  listItems: ListWithIconsItemData[];
@@ -9,6 +9,6 @@ type Props = {
9
9
  hasActionButton?: boolean;
10
10
  actionButtonLabel?: string;
11
11
  onActionButtonClick?: () => void;
12
- };
12
+ }
13
13
  declare const SelectableCardListItem: ({ title, subtitle, listItems, selected, onSelect, isLoading, hasActionButton, actionButtonLabel, onActionButtonClick, }: Props) => import("react").JSX.Element;
14
14
  export default SelectableCardListItem;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ListWithIconsItemData } from '../ListWithIcons/ListWithIcons.types';
3
- export type SelectableCardListItemData = {
3
+ export interface SelectableCardListItemData {
4
4
  id: string;
5
5
  title: string;
6
6
  subtitle?: string;
@@ -8,7 +8,7 @@ export type SelectableCardListItemData = {
8
8
  hasActionButton?: boolean;
9
9
  actionButtonLabel?: string;
10
10
  onActionButtonClick?: () => void;
11
- };
11
+ }
12
12
  export interface SelectableCardListProps {
13
13
  items?: SelectableCardListItemData[];
14
14
  selectedId?: string | null;
@@ -1,11 +1,11 @@
1
1
  import { ElementType, ReactNode } from 'react';
2
- export type RcSesServiceLinksTestIds = {
2
+ export interface RcSesServiceLinksTestIds {
3
3
  root?: string;
4
4
  item?: string;
5
5
  itemLabel?: string;
6
6
  itemIcon?: string;
7
- };
8
- export type RcSesServiceLinkItem = {
7
+ }
8
+ export interface RcSesServiceLinkItem {
9
9
  label: ReactNode;
10
10
  href?: string;
11
11
  target?: string;
@@ -16,8 +16,8 @@ export type RcSesServiceLinkItem = {
16
16
  * Stripped out before spreading onto the row, so it never reaches the DOM.
17
17
  */
18
18
  key?: string;
19
- };
20
- export type RcSesServiceLinksProps = {
19
+ }
20
+ export interface RcSesServiceLinksProps {
21
21
  items: RcSesServiceLinkItem[];
22
22
  dividers?: boolean;
23
23
  isLoading?: boolean;
@@ -31,4 +31,4 @@ export type RcSesServiceLinksProps = {
31
31
  linkComponent?: ElementType;
32
32
  className?: string;
33
33
  testIds?: RcSesServiceLinksTestIds;
34
- };
34
+ }
@@ -1,20 +1,22 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
- export type RcSesSideNavItem = {
3
+ export interface RcSesSideNavItem {
4
4
  id: string;
5
5
  label: string;
6
6
  count?: number;
7
- };
8
- export type RcSesSideNavProps = {
7
+ }
8
+ export type RcSesSideNavOverflow = 'fit' | 'scroll';
9
+ export interface RcSesSideNavProps {
9
10
  items: RcSesSideNavItem[];
10
11
  activeItemId?: string;
11
12
  onItemClick?: (id: string) => void;
12
13
  title?: string;
14
+ overflow?: RcSesSideNavOverflow;
15
+ offset?: number;
13
16
  sx?: SxProps<Theme>;
14
- };
17
+ }
15
18
  export type RcSesSideNavLayoutProps = Omit<RcSesSideNavProps, 'sx'> & {
16
19
  children: ReactNode;
17
20
  sidebarWidth?: string;
18
- offset?: number;
19
21
  sx?: SxProps<Theme>;
20
22
  };
@@ -1,4 +1,4 @@
1
1
  import { RcSesSideNavLayoutProps } from './SideNav.types';
2
- declare function RcSesSideNavLayout({ children, items, activeItemId: controlledActiveItemId, onItemClick, title, offset, sidebarWidth, sx, }: RcSesSideNavLayoutProps): import("react").JSX.Element;
2
+ declare function RcSesSideNavLayout({ children, items, activeItemId: controlledActiveItemId, onItemClick, title, overflow, offset, sidebarWidth, sx, }: RcSesSideNavLayoutProps): import("react").JSX.Element;
3
3
  export default RcSesSideNavLayout;
4
4
  export type { RcSesSideNavLayoutProps } from './SideNav.types';
@@ -1,9 +1,9 @@
1
- type Props = {
1
+ interface Props {
2
2
  label: string;
3
3
  count?: number;
4
4
  ariaLabel?: string;
5
5
  active: boolean;
6
6
  onClick?: () => void;
7
- };
7
+ }
8
8
  declare function SideNavPill({ label, count, ariaLabel, active, onClick }: Props): import("react").JSX.Element;
9
9
  export default SideNavPill;
@@ -1,9 +1,9 @@
1
1
  import { RcSesSideNavItem } from '../SideNav.types';
2
- type Props = {
2
+ interface Props {
3
3
  items: RcSesSideNavItem[];
4
4
  activeItemId?: string;
5
5
  onItemClick?: (id: string) => void;
6
6
  getItemAriaLabel: (item: RcSesSideNavItem) => string | undefined;
7
- };
7
+ }
8
8
  declare function SideNavPillList({ items, activeItemId, onItemClick, getItemAriaLabel }: Props): import("react").JSX.Element;
9
9
  export default SideNavPillList;
@@ -1,9 +1,10 @@
1
- type Props = {
1
+ interface Props {
2
+ itemId: string;
2
3
  label: string;
3
4
  count?: number;
4
5
  ariaLabel?: string;
5
6
  active: boolean;
6
7
  onClick?: () => void;
7
- };
8
- declare function SideNavRow({ label, count, ariaLabel, active, onClick }: Props): import("react").JSX.Element;
8
+ }
9
+ declare function SideNavRow({ itemId, label, count, ariaLabel, active, onClick }: Props): import("react").JSX.Element;
9
10
  export default SideNavRow;
@@ -0,0 +1,19 @@
1
+ import { RefObject } from 'react';
2
+ interface UseKeepActiveItemInViewOptions {
3
+ containerRef: RefObject<HTMLElement>;
4
+ activeItemId?: string;
5
+ axis: 'horizontal' | 'vertical';
6
+ enabled?: boolean;
7
+ behavior?: ScrollBehavior;
8
+ }
9
+ /**
10
+ * Scrolls the container the minimum amount needed to bring the active item into
11
+ * view - the nav's own equivalent of `scrollIntoView({ block: 'nearest' })`.
12
+ *
13
+ * Deliberately not `scrollIntoView`: that also scrolls every scrollable
14
+ * ancestor, so bringing a nav item into view would drag the page along with it
15
+ * and fight the scroll-spy that picked the item in the first place.
16
+ */
17
+ declare function useKeepActiveItemInView({ containerRef, activeItemId, axis, enabled, behavior, }: UseKeepActiveItemInViewOptions): void;
18
+ export default useKeepActiveItemInView;
19
+ export type { UseKeepActiveItemInViewOptions };
@@ -1,9 +1,9 @@
1
1
  import { RefObject } from 'react';
2
- type UseSideNavScrollSpyOptions = {
2
+ interface UseSideNavScrollSpyOptions {
3
3
  itemIds: string[];
4
4
  offset?: number;
5
5
  scope?: RefObject<HTMLElement>;
6
- };
6
+ }
7
7
  declare function useSideNavScrollSpy({ itemIds, offset, scope }: UseSideNavScrollSpyOptions): {
8
8
  activeItemId: string | undefined;
9
9
  scrollToItem: (id: string) => void;
@@ -1,4 +1,4 @@
1
1
  import { RcSesSideNavProps } from './SideNav.types';
2
- declare function RcSesSideNav({ items, activeItemId, onItemClick, title, sx, }: RcSesSideNavProps): import("react").JSX.Element;
2
+ declare function RcSesSideNav({ items, activeItemId, onItemClick, title, overflow, offset, sx, }: RcSesSideNavProps): import("react").JSX.Element;
3
3
  export default RcSesSideNav;
4
- export type { RcSesSideNavItem, RcSesSideNavProps } from './SideNav.types';
4
+ export type { RcSesSideNavItem, RcSesSideNavOverflow, RcSesSideNavProps, } from './SideNav.types';
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ interface Props {
3
3
  activeTab: number;
4
4
  children?: React.ReactNode;
5
5
  index: number;
6
- };
6
+ }
7
7
  declare function RcSesTabPanel({ activeTab, children, index, ...rest }: Props): React.JSX.Element;
8
8
  export default RcSesTabPanel;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
- type Props = {
2
+ interface Props {
3
3
  children?: React.ReactNode;
4
4
  heading?: React.ReactNode;
5
- };
5
+ }
6
6
  declare function RcSesTabsWrapper({ children, heading }: Props): React.JSX.Element;
7
7
  export default RcSesTabsWrapper;
@@ -2,15 +2,15 @@ import { ReactNode } from 'react';
2
2
  export type TitleBlockHeadingLevel = 2 | 3 | 4 | 5 | 6;
3
3
  export type TitleBlockTitleVariant = 'h4' | 'h5' | 'h6' | 'body1';
4
4
  export type TitleBlockOrientation = 'horizontal' | 'vertical';
5
- export type RcSesTitleBlockTestIds = {
5
+ export interface RcSesTitleBlockTestIds {
6
6
  root?: string;
7
7
  icon?: string;
8
8
  heading?: string;
9
9
  badge?: string;
10
10
  description?: string;
11
11
  actions?: string;
12
- };
13
- export type RcSesTitleBlockBaseProps = {
12
+ }
13
+ export interface RcSesTitleBlockBaseProps {
14
14
  title: ReactNode;
15
15
  headingLevel?: TitleBlockHeadingLevel;
16
16
  /**
@@ -49,7 +49,7 @@ export type RcSesTitleBlockBaseProps = {
49
49
  headingId?: string;
50
50
  className?: string;
51
51
  testIds?: RcSesTitleBlockTestIds;
52
- };
52
+ }
53
53
  /**
54
54
  * Horizontal layout: icon on the left, text on the right, actions on the far
55
55
  * right. Up to two trailing CTAs are allowed in the `actions` slot.
@@ -1,7 +1,7 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
- type Props = {
2
+ interface Props {
3
3
  children: React.ReactNode;
4
4
  sx?: SxProps<Theme>;
5
- };
5
+ }
6
6
  declare function FieldSuffix({ children, sx }: Props): import("react").JSX.Element | null;
7
7
  export default FieldSuffix;
@@ -1,5 +1,5 @@
1
1
  import { FieldError } from 'react-hook-form';
2
- type Props = {
2
+ interface Props {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  description?: React.ReactNode;
@@ -11,7 +11,7 @@ type Props = {
11
11
  labelSubtitle?: React.ReactNode;
12
12
  labelOnTop?: boolean;
13
13
  required?: boolean;
14
- };
14
+ }
15
15
  declare function RcSesFormControlWrapper({ children, className, description, errors, fieldSuffix, hideLabel, id, label, labelSubtitle, labelOnTop, required, }: Props): import("react").JSX.Element;
16
16
  export default RcSesFormControlWrapper;
17
17
  export { type Props as RcSesFormControlWrapperProps };
@@ -3,10 +3,10 @@ import { UseControllerProps } from 'react-hook-form';
3
3
  import { RcSesFormControlWrapperProps } from '../components/FormControlWrapper';
4
4
  import { StyledComponent } from '@emotion/styled';
5
5
  import { MUIStyledCommonProps } from '@mui/system';
6
- export type RadioOption = {
6
+ export interface RadioOption {
7
7
  label: string;
8
8
  value: string;
9
- };
9
+ }
10
10
  type TControllerProps = UseControllerProps<any, any>;
11
11
  type ImmediateControllerProps = 'control' | 'rules' | 'name';
12
12
  type TWrapperProps = RcSesFormControlWrapperProps;
@@ -15,7 +15,7 @@ declare const RcSesRadioButtonGroup: StyledComponent<Pick<TControllerProps, Imme
15
15
  id?: string;
16
16
  className?: string;
17
17
  hideNativeRadio?: boolean;
18
- options: Array<RadioOption>;
18
+ options: RadioOption[];
19
19
  variant?: "flat" | "outlined" | "filled";
20
20
  slotProps?: {
21
21
  controller?: Partial<Omit<TControllerProps, ImmediateControllerProps>>;
@@ -2,11 +2,11 @@ import { OutlinedTextFieldProps } from '@mui/material/TextField';
2
2
  import { default as React } from 'react';
3
3
  import { UseControllerProps } from 'react-hook-form';
4
4
  import { RcSesFormControlWrapperProps } from '../components/FormControlWrapper';
5
- type ModalComponentProps = {
5
+ interface ModalComponentProps {
6
6
  open: boolean;
7
7
  onSubmit: (value: string) => void;
8
8
  onClose: () => void;
9
- };
9
+ }
10
10
  type TControllerProps = UseControllerProps<any, any>;
11
11
  type ImmediateControllerProps = 'control' | 'rules' | 'disabled' | 'name';
12
12
  type TFieldProps = Omit<OutlinedTextFieldProps, 'variant'>;
@@ -1,5 +1,5 @@
1
- export type Option = {
1
+ export interface Option {
2
2
  label: string;
3
3
  value: string;
4
4
  description?: string;
5
- };
5
+ }
@@ -1,5 +1,5 @@
1
- type Props = {
1
+ interface Props {
2
2
  text: string;
3
- };
3
+ }
4
4
  declare function RcSesFooter({ text }: Props): import("react").JSX.Element;
5
5
  export default RcSesFooter;
@@ -1,9 +1,9 @@
1
- type Props = {
1
+ interface Props {
2
2
  onDiscard: () => void;
3
3
  onSaveDraft: () => void;
4
4
  onSubmit: () => void;
5
5
  draftDisabled?: boolean;
6
6
  submitDisabled?: boolean;
7
- };
7
+ }
8
8
  declare function ServiceFormActions({ onDiscard, onSaveDraft, onSubmit, draftDisabled, submitDisabled, }: Props): import("react").JSX.Element;
9
9
  export default ServiceFormActions;
@@ -1,6 +1,6 @@
1
1
  import { default as useAccordionController } from '../../../../common/Accordion/hooks/useAccordionController';
2
- type Props = {
2
+ interface Props {
3
3
  controller: ReturnType<typeof useAccordionController>;
4
- };
4
+ }
5
5
  declare function AccordionCollapseControls({ controller }: Props): import("react").JSX.Element;
6
6
  export default AccordionCollapseControls;
@@ -1,7 +1,7 @@
1
1
  import { ContainerProps } from '@mui/system';
2
2
  import { default as React } from 'react';
3
3
  import { default as useAccordionController } from '../../../common/Accordion/hooks/useAccordionController';
4
- type Props = {
4
+ interface Props {
5
5
  accordionController: ReturnType<typeof useAccordionController>;
6
6
  children: React.ReactNode;
7
7
  showAccordionCollapseControls?: boolean;
@@ -9,6 +9,6 @@ type Props = {
9
9
  slotProps?: {
10
10
  container: Partial<ContainerProps>;
11
11
  };
12
- };
12
+ }
13
13
  declare function RcSesServiceFormContainer({ accordionController, children, showAccordionCollapseControls, showProgressStepper, slotProps, }: Props): React.JSX.Element;
14
14
  export default RcSesServiceFormContainer;
@@ -1,10 +1,10 @@
1
1
  import { default as React, CSSProperties } from 'react';
2
2
  import { default as RcSesBreadcrumbs } from '../common/Breadcrumbs';
3
- type Props = {
3
+ interface Props {
4
4
  breadcrumbsProps: React.ComponentProps<typeof RcSesBreadcrumbs>;
5
5
  children?: React.ReactNode;
6
6
  title: string;
7
7
  backgroundColor?: CSSProperties['backgroundColor'];
8
- };
8
+ }
9
9
  declare function ServiceHeader({ breadcrumbsProps, children, title, backgroundColor, }: Props): React.JSX.Element;
10
10
  export default ServiceHeader;
@@ -1,5 +1,5 @@
1
- type Props = {
1
+ interface Props {
2
2
  children: React.ReactNode;
3
- };
3
+ }
4
4
  declare function ServicePage({ children }: Props): import("react").JSX.Element;
5
5
  export default ServicePage;
@@ -1,4 +1,4 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
- type SxEntry = Extract<SxProps<Theme>, ReadonlyArray<unknown>> extends ReadonlyArray<infer T> ? T : never;
2
+ type SxEntry = Extract<SxProps<Theme>, readonly unknown[]> extends readonly (infer T)[] ? T : never;
3
3
  declare function normalizeSx(sx: SxProps<Theme> | undefined): SxEntry[];
4
4
  export default normalizeSx;
@@ -6,7 +6,7 @@ import { ListWithIconsItemData } from '../components/common/ListWithIcons/ListWi
6
6
  import { RcSesSegmentOption, RcSesSegmentedControlProps } from '../components/common/SegmentedControl';
7
7
  import { RcSesSegmentButtonProps } from '../components/common/SegmentedControl/components/SegmentButton';
8
8
  import { RcSesServiceLinkItem, RcSesServiceLinksProps, RcSesServiceLinksTestIds } from '../components/common/ServiceLinks/types';
9
- import { RcSesSideNavItem } from '../components/common/SideNav';
9
+ import { RcSesSideNavItem, RcSesSideNavOverflow } from '../components/common/SideNav';
10
10
  import { RcSesSideNavLayoutProps } from '../components/common/SideNav/SideNavLayout';
11
11
  import { RcSesTitleBlockProps, RcSesTitleBlockTestIds, TitleBlockHeadingLevel, TitleBlockTitleVariant } from '../components/common/TitleBlock/types';
12
12
  import { RcSesTooltipProps } from '../components/common/Tooltip';
@@ -23,6 +23,6 @@ import { ButtonProps } from '../types/buttons/ButtonProps';
23
23
  export type { ListWithIconsProps, ListWithIconsItemData };
24
24
  export type { RcSesServiceLinksProps, RcSesServiceLinkItem, RcSesServiceLinksTestIds };
25
25
  export type { ButtonProps };
26
- 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, };
26
+ 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, };
27
27
  export type { RcSesDialogProps, DialogSize };
28
28
  export type { RcSesModalProps, ModalVariant };