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

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 (128) hide show
  1. package/dist/registrucentras-rc-ses-react-components.cjs +1 -1
  2. package/dist/registrucentras-rc-ses-react-components.js +535 -482
  3. package/dist/stories/{components/display → atoms}/Badge.stories.d.ts +1 -1
  4. package/dist/stories/{components/inputs → atoms}/Checkbox.stories.d.ts +1 -1
  5. package/dist/stories/{components/icons → atoms}/IconWithCircularBackground.stories.d.ts +1 -1
  6. package/dist/stories/{components/icons → atoms}/IconWithSquareBackground.stories.d.ts +1 -1
  7. package/dist/stories/{components/icons → atoms}/Icons.stories.d.ts +1 -1
  8. package/dist/stories/{components/loaders → atoms}/Loader.stories.d.ts +1 -1
  9. package/dist/stories/{components/loaders → atoms}/LoadingSpinner.stories.d.ts +1 -1
  10. package/dist/stories/{components/inputs → atoms}/NumberStepper.stories.d.ts +1 -1
  11. package/dist/stories/{components/inputs → atoms}/PhoneInput.stories.d.ts +1 -1
  12. package/dist/stories/{components/inputs → atoms}/SearchInput.stories.d.ts +1 -1
  13. package/dist/stories/{components/inputs → atoms}/Select.stories.d.ts +1 -1
  14. package/dist/stories/{components/form → atoms}/SimpleCheckbox.stories.d.ts +1 -1
  15. package/dist/stories/{components/inputs → atoms}/Switch.stories.d.ts +1 -1
  16. package/dist/stories/{components/tabs → atoms}/Tab.stories.d.ts +1 -1
  17. package/dist/stories/{components/inputs → atoms}/TextField.stories.d.ts +1 -1
  18. package/dist/stories/{components/display → atoms}/Tooltip.stories.d.ts +1 -1
  19. package/dist/stories/{components/feedback → molecules}/Alert.stories.d.ts +1 -1
  20. package/dist/stories/{components/navigation → molecules}/Breadcrumbs.stories.d.ts +1 -1
  21. package/dist/stories/{components/actions → molecules}/ButtonWithPopover.stories.d.ts +1 -1
  22. package/dist/stories/{components/display → molecules}/Card.stories.d.ts +1 -1
  23. package/dist/stories/{components/display → molecules}/CardShell.stories.d.ts +2 -1
  24. package/dist/stories/{components/form → molecules}/CheckboxFormControl.stories.d.ts +1 -1
  25. package/dist/stories/{components/inputs → molecules}/DatePicker.stories.d.ts +1 -1
  26. package/dist/stories/{components/form → molecules}/FormControlWrapper.stories.d.ts +1 -1
  27. package/dist/stories/{components/display → molecules}/ImageCard.stories.d.ts +1 -1
  28. package/dist/stories/{components/display → molecules}/ListWithIcons.stories.d.ts +2 -2
  29. package/dist/stories/{components/inputs → molecules}/PhoneInputFormControl.stories.d.ts +1 -1
  30. package/dist/stories/{components/overlays → molecules}/Popover.stories.d.ts +1 -1
  31. package/dist/stories/{components/inputs → molecules}/RadioButtonGroup.stories.d.ts +1 -1
  32. package/dist/stories/{components/inputs → molecules}/SearchableField.stories.d.ts +1 -1
  33. package/dist/stories/{components/display → molecules}/SegmentedControl.stories.d.ts +1 -1
  34. package/dist/stories/{components/feedback → molecules}/Snackbar.stories.d.ts +1 -1
  35. package/dist/stories/{components/tabs → molecules}/TabPanel.stories.d.ts +1 -1
  36. package/dist/stories/{components/tabs → molecules}/Tabs.stories.d.ts +1 -1
  37. package/dist/stories/{components/tabs → molecules}/TabsWrapper.stories.d.ts +1 -1
  38. package/dist/stories/{components/display → molecules}/TitleBlock.stories.d.ts +2 -1
  39. package/dist/stories/{components/navigation → organisms}/Accordion.stories.d.ts +1 -1
  40. package/dist/stories/{components/display → organisms}/AdvancedList.stories.d.ts +1 -1
  41. package/dist/stories/{components/display → organisms}/AdvancedListItem.stories.d.ts +1 -1
  42. package/dist/stories/{components/form → organisms}/CardFormContainer.stories.d.ts +1 -1
  43. package/dist/stories/{components/navigation → organisms}/DataPagination.stories.d.ts +1 -1
  44. package/dist/stories/{components/overlays → organisms}/Dialog.stories.d.ts +1 -1
  45. package/dist/stories/{components/inputs → organisms}/FileDropzone.stories.d.ts +1 -1
  46. package/dist/stories/{components/inputs → organisms}/FileUpload.stories.d.ts +1 -1
  47. package/dist/stories/{components/layout → organisms}/Footer.stories.d.ts +1 -1
  48. package/dist/stories/{components/loaders → organisms}/FullPageLoader.stories.d.ts +1 -1
  49. package/dist/stories/{components/overlays → organisms}/Modal.stories.d.ts +1 -1
  50. package/dist/stories/{components/display → organisms}/SelectableCardList.stories.d.ts +1 -1
  51. package/dist/stories/{components/form → organisms}/ServiceFormActions.stories.d.ts +1 -1
  52. package/dist/stories/{components/form → organisms}/ServiceFormContainer.stories.d.ts +1 -1
  53. package/dist/stories/{components/layout → organisms}/ServiceHeader.stories.d.ts +1 -1
  54. package/dist/stories/{components/display → organisms}/ServiceLinks.stories.d.ts +1 -1
  55. package/dist/stories/{components/navigation → organisms}/ServiceWizardStepper.stories.d.ts +1 -1
  56. package/dist/stories/{components/navigation → organisms}/SideNav.stories.d.ts +1 -1
  57. package/dist/stories/{components/layout → templates}/ServicePage.stories.d.ts +1 -1
  58. package/dist/theme/cards.d.ts +4 -0
  59. package/package.json +1 -1
  60. package/src/components/common/CardShell/CardFooter/index.tsx +10 -1
  61. package/src/components/common/CardShell/index.tsx +31 -7
  62. package/src/components/common/TitleBlock/index.tsx +21 -2
  63. package/src/stories/Welcome.mdx +25 -2
  64. package/src/stories/{components/display → atoms}/Badge.stories.tsx +1 -1
  65. package/src/stories/{components/actions → atoms}/Button.stories.tsx +1 -1
  66. package/src/stories/{components/inputs → atoms}/Checkbox.stories.tsx +1 -1
  67. package/src/stories/{components/icons → atoms}/IconWithCircularBackground.stories.tsx +1 -1
  68. package/src/stories/{components/icons → atoms}/IconWithSquareBackground.stories.tsx +1 -1
  69. package/src/stories/{components/icons → atoms}/Icons.stories.tsx +1 -1
  70. package/src/stories/{components/loaders → atoms}/Loader.stories.tsx +1 -1
  71. package/src/stories/{components/loaders → atoms}/LoadingSpinner.stories.tsx +1 -1
  72. package/src/stories/{assets → atoms}/Logo.stories.tsx +1 -1
  73. package/src/stories/{components/inputs → atoms}/NumberStepper.stories.tsx +1 -1
  74. package/src/stories/{components/inputs → atoms}/PhoneInput.stories.tsx +1 -1
  75. package/src/stories/{components/inputs → atoms}/SearchInput.stories.tsx +1 -1
  76. package/src/stories/{components/inputs → atoms}/Select.stories.tsx +1 -1
  77. package/src/stories/{components/form → atoms}/SimpleCheckbox.stories.tsx +1 -1
  78. package/src/stories/{components/inputs → atoms}/Switch.stories.tsx +1 -1
  79. package/src/stories/{components/tabs → atoms}/Tab.stories.tsx +1 -1
  80. package/src/stories/{components/inputs → atoms}/TextField.stories.tsx +1 -1
  81. package/src/stories/{components/display → atoms}/Tooltip.stories.tsx +2 -2
  82. package/src/stories/{theme → foundations}/ThemedMuiComponents.stories.tsx +1 -1
  83. package/src/stories/{components/feedback → molecules}/Alert.stories.tsx +1 -1
  84. package/src/stories/{components/navigation → molecules}/Breadcrumbs.stories.tsx +1 -1
  85. package/src/stories/{components/actions → molecules}/ButtonWithPopover.stories.tsx +1 -1
  86. package/src/stories/{components/display → molecules}/Card.stories.tsx +1 -1
  87. package/src/stories/{components/display → molecules}/CardShell.stories.tsx +20 -1
  88. package/src/stories/{components/form → molecules}/CheckboxFormControl.stories.tsx +1 -1
  89. package/src/stories/{components/inputs → molecules}/DatePicker.stories.tsx +1 -1
  90. package/src/stories/{components/form → molecules}/FormControlWrapper.stories.tsx +1 -1
  91. package/src/stories/{components/display → molecules}/ImageCard.stories.tsx +1 -1
  92. package/src/stories/{components/display → molecules}/ListWithIcons.stories.tsx +1 -1
  93. package/src/stories/{components/inputs → molecules}/PhoneInputFormControl.stories.tsx +1 -1
  94. package/src/stories/{components/overlays → molecules}/Popover.stories.tsx +1 -1
  95. package/src/stories/{components/inputs → molecules}/RadioButtonGroup.stories.tsx +1 -1
  96. package/src/stories/{components/inputs → molecules}/SearchableField.stories.tsx +1 -1
  97. package/src/stories/{components/display → molecules}/SegmentedControl.stories.tsx +2 -2
  98. package/src/stories/{components/feedback → molecules}/Snackbar.stories.tsx +1 -1
  99. package/src/stories/{components/tabs → molecules}/TabPanel.stories.tsx +1 -1
  100. package/src/stories/{components/tabs → molecules}/Tabs.stories.tsx +1 -1
  101. package/src/stories/{components/tabs → molecules}/TabsWrapper.stories.tsx +1 -1
  102. package/src/stories/{components/display → molecules}/TitleBlock.stories.tsx +25 -2
  103. package/src/stories/{components/navigation → organisms}/Accordion.stories.tsx +1 -1
  104. package/src/stories/{components/display → organisms}/AdvancedList.stories.tsx +1 -1
  105. package/src/stories/{components/display → organisms}/AdvancedListItem.stories.tsx +1 -1
  106. package/src/stories/{components/form → organisms}/CardFormContainer.stories.tsx +1 -1
  107. package/src/stories/{components/navigation → organisms}/DataPagination.stories.tsx +1 -1
  108. package/src/stories/{components/overlays → organisms}/Dialog.stories.tsx +1 -1
  109. package/src/stories/{components/inputs → organisms}/FileDropzone.stories.tsx +1 -1
  110. package/src/stories/{components/inputs → organisms}/FileUpload.stories.tsx +1 -1
  111. package/src/stories/{components/layout → organisms}/Footer.stories.tsx +1 -1
  112. package/src/stories/{components/loaders → organisms}/FullPageLoader.stories.tsx +1 -1
  113. package/src/stories/{components/overlays → organisms}/Modal.stories.tsx +1 -1
  114. package/src/stories/{components/display → organisms}/SelectableCardList.stories.tsx +1 -1
  115. package/src/stories/{components/form → organisms}/ServiceFormActions.stories.tsx +1 -1
  116. package/src/stories/{components/form → organisms}/ServiceFormContainer.stories.tsx +1 -1
  117. package/src/stories/{components/layout → organisms}/ServiceHeader.stories.tsx +1 -1
  118. package/src/stories/{components/display → organisms}/ServiceLinks.stories.tsx +1 -1
  119. package/src/stories/{components/navigation → organisms}/ServiceWizardStepper.stories.tsx +3 -3
  120. package/src/stories/{components/navigation → organisms}/SideNav.stories.tsx +1 -1
  121. package/src/stories/{components/layout → templates}/ServicePage.stories.tsx +1 -1
  122. package/src/theme/cards.ts +2 -0
  123. package/src/stories/components/display/Card.test.tsx +0 -19
  124. /package/dist/stories/{components/actions → atoms}/Button.stories.d.ts +0 -0
  125. /package/dist/stories/{assets → atoms}/Logo.stories.d.ts +0 -0
  126. /package/dist/stories/{theme → foundations}/ThemedMuiComponents.stories.d.ts +0 -0
  127. /package/src/stories/{components/actions → atoms}/Button.test.ts +0 -0
  128. /package/src/stories/{Colors.mdx → foundations/Colors.mdx} +0 -0
@@ -28,13 +28,23 @@ function RcSesTitleBlock({
28
28
  const isHeadingScale = titleVariant !== 'body1'
29
29
 
30
30
  const iconNode = icon ? (
31
- <Box aria-hidden data-testid={testIds?.icon} sx={{ display: 'flex', flexShrink: 0 }}>
31
+ <Box
32
+ aria-hidden
33
+ data-testid={testIds?.icon}
34
+ sx={{
35
+ display: 'flex',
36
+ flexShrink: 0,
37
+ }}
38
+ >
32
39
  {icon}
33
40
  </Box>
34
41
  ) : null
35
42
 
36
43
  const textColumn = (
37
- <Stack spacing={cards.header.gap} sx={{ flex: 1, minWidth: 0, width: '100%' }}>
44
+ <Stack
45
+ spacing={isVertical ? { xs: '0.5rem', sm: cards.header.rowGap } : cards.header.gap}
46
+ sx={{ flex: 1, minWidth: 0, width: '100%' }}
47
+ >
38
48
  <HeadingTag id={headingId} data-testid={testIds?.heading} style={{ margin: 0 }}>
39
49
  <Typography
40
50
  component='span'
@@ -43,6 +53,11 @@ function RcSesTitleBlock({
43
53
  color: titleTone === 'brand' ? palette.primary[700] : palette.grey[900],
44
54
  // inline only when the badge has to sit on the heading's last line
45
55
  display: hasCount ? 'inline' : 'block',
56
+ // Vertical orientation compresses the title on xs; desktop keeps
57
+ // whatever size `titleVariant` defines. Keep lineHeight paired with
58
+ // fontSize so wrapping titles do not clip descenders.
59
+ fontSize: isVertical ? { xs: '0.875rem', sm: '1.5rem' } : undefined,
60
+ lineHeight: isVertical ? { xs: 1.25, sm: 1.33 } : undefined,
46
61
  fontWeight: isHeadingScale ? cards.header.titleFontWeight : undefined,
47
62
  overflowWrap: 'anywhere',
48
63
  }}
@@ -105,6 +120,10 @@ function RcSesTitleBlock({
105
120
  data-testid={testIds?.root}
106
121
  direction={isVertical ? 'column' : { xs: 'column', sm: 'row' }}
107
122
  spacing={cards.header.rowGap}
123
+ // Flex gap skips items removed via `display: none`, so the icon's mobile
124
+ // hide in the vertical orientation actually collapses its slot instead of
125
+ // leaving a sibling-selector margin above the title.
126
+ useFlexGap
108
127
  sx={{
109
128
  alignItems:
110
129
  isVertical || hasDescription
@@ -27,10 +27,33 @@ import Logo from '@/assets/Logo'
27
27
  {/* Overview */}
28
28
  <div style={{ marginBottom: '24px', padding: '24px', backgroundColor: grey['100'], borderRadius: '12px' }}>
29
29
  <p style={{ color: primary['600'], lineHeight: '1.7', margin: '0 0 16px 0', fontSize: '15px', fontWeight: '500' }}>
30
- This is a comprehensive component library for RC SES React applications. All components are built with React 18, TypeScript, and styled with Material-UI (MUI) v5.
30
+ This is a comprehensive component library for RC SES React applications. All components are built with React 18/19, TypeScript, and styled with Material-UI (MUI) v9.
31
31
  </p>
32
32
  </div>
33
33
 
34
+ {/* Atomic Design */}
35
+ <div style={{ marginBottom: '24px', padding: '24px', backgroundColor: 'white', borderRadius: '12px', border: `1px solid ${grey['200']}` }}>
36
+ <h2 style={{ marginTop: '0', color: grey['900'], marginBottom: '12px', fontSize: '18px', fontWeight: '600' }}>🧪 Built on Atomic Design</h2>
37
+ <p style={{ color: grey['700'], lineHeight: '1.7', margin: '0 0 16px 0', fontSize: '14px' }}>
38
+ The library follows Brad Frost's <a href='https://atomicdesign.bradfrost.com/chapter-2/' target='_blank' rel='noreferrer' style={{ color: primary['600'], textDecoration: 'none', fontWeight: 500 }}>Atomic Design</a> methodology. Components are organised by structural complexity, so composing UIs feels like snapping together predictable building blocks.
39
+ </p>
40
+ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(5, 1fr)', gap: '12px' }}>
41
+ {[
42
+ { icon: '🎨', title: 'Foundations', desc: 'Colors, typography, MUI theming' },
43
+ { icon: '⚛️', title: 'Atoms', desc: 'Buttons, inputs, icons, badges' },
44
+ { icon: '🧬', title: 'Molecules', desc: 'Form controls, cards, title blocks' },
45
+ { icon: '🦠', title: 'Organisms', desc: 'Lists, dialogs, headers, forms' },
46
+ { icon: '📐', title: 'Templates', desc: 'Page skeletons and layouts' },
47
+ ].map((tier, idx) => (
48
+ <div key={idx} style={{ padding: '12px', backgroundColor: grey['50'], borderRadius: '8px', textAlign: 'center' }}>
49
+ <div style={{ fontSize: '1.5rem', marginBottom: '6px' }}>{tier.icon}</div>
50
+ <div style={{ fontSize: '13px', fontWeight: 600, color: grey['900'], marginBottom: '4px' }}>{tier.title}</div>
51
+ <div style={{ fontSize: '11px', color: grey['600'], lineHeight: 1.4 }}>{tier.desc}</div>
52
+ </div>
53
+ ))}
54
+ </div>
55
+ </div>
56
+
34
57
  {/* Features */}
35
58
  <div>
36
59
 
@@ -79,7 +102,7 @@ import Logo from '@/assets/Logo'
79
102
  <div style={{ marginTop: '2rem', padding: '1.5rem', backgroundColor: '#f0f8ff', borderRadius: '12px', borderLeft: '4px solid #0969da' }}>
80
103
  <h3 style={{ marginTop: '0', color: '#0969da', marginBottom: '0.75rem', fontSize: '1rem', fontWeight: '600' }}>🚀 Getting Started:</h3>
81
104
  <p style={{ color: '#555', lineHeight: '1.6', margin: '0', fontSize: '0.95rem' }}>
82
- Use the sidebar navigation to explore components by category. Each component includes documentation, interactive examples, and code samples you can copy directly into your projects.
105
+ Use the sidebar to explore components grouped by their atomic tier — from atoms up to full pages. Each entry ships with documentation, interactive controls, and copy-ready code samples you can drop straight into your project.
83
106
  </p>
84
107
  </div>
85
108
 
@@ -20,7 +20,7 @@ const variants: RcSesBadgeProps['variant'][] = [
20
20
  const sizes: RcSesBadgeProps['size'][] = ['small', 'regular']
21
21
 
22
22
  const meta: Meta<typeof RcSesBadge> = {
23
- title: 'components/display/Badge',
23
+ title: 'Atoms/Badge',
24
24
  component: RcSesBadge,
25
25
  tags: ['autodocs'],
26
26
  }
@@ -27,7 +27,7 @@ const colorOptions = [
27
27
  ]
28
28
 
29
29
  const meta = {
30
- title: 'components/actions/Button',
30
+ title: 'Atoms/Button',
31
31
  component: Button,
32
32
  parameters: {
33
33
  layout: 'centered',
@@ -16,7 +16,7 @@ type FormModel = {
16
16
  }
17
17
 
18
18
  const meta: Meta<typeof RcSesCheckbox> = {
19
- title: 'components/inputs/Checkbox',
19
+ title: 'Atoms/Checkbox',
20
20
  component: RcSesCheckbox,
21
21
  argTypes: {
22
22
  variant: {
@@ -4,7 +4,7 @@ import CheckBoldIcon from '@/assets/icons/CheckBoldIcon'
4
4
  import RcSesIconWithCircularBackground from '@/components/common/IconWithCircularBackground'
5
5
 
6
6
  const meta: Meta<typeof RcSesIconWithCircularBackground> = {
7
- title: 'components/icons/IconWithCircularBackground',
7
+ title: 'Atoms/IconWithCircularBackground',
8
8
  component: RcSesIconWithCircularBackground,
9
9
  tags: ['autodocs'],
10
10
  argTypes: {
@@ -5,7 +5,7 @@ import InfoFillIcon from '@/assets/icons/InfoFillIcon'
5
5
  import RcSesIconWithSquareBackground from '@/components/common/IconWithSquareBackground'
6
6
 
7
7
  const meta: Meta<typeof RcSesIconWithSquareBackground> = {
8
- title: 'components/icons/IconWithSquareBackground',
8
+ title: 'Atoms/IconWithSquareBackground',
9
9
  component: RcSesIconWithSquareBackground,
10
10
  tags: ['autodocs'],
11
11
  argTypes: {
@@ -269,7 +269,7 @@ const iconItems: IconStoryItem[] = [
269
269
  ]
270
270
 
271
271
  const meta: Meta<StoryArgs> = {
272
- title: 'components/icons/Icons',
272
+ title: 'Atoms/Icons',
273
273
  tags: ['autodocs'],
274
274
  args: {
275
275
  className: '',
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import RcSesLoader from '@/components/loaders/Loader'
4
4
 
5
5
  const meta = {
6
- title: 'components/loaders/Loader/Loader',
6
+ title: 'Atoms/Loader',
7
7
  component: RcSesLoader,
8
8
  tags: ['autodocs'],
9
9
  parameters: {
@@ -17,7 +17,7 @@ const colorOptions: RcSesSpinnerColor[] = [
17
17
  const sizeOptions = ['small', 'medium', 'large']
18
18
 
19
19
  const meta = {
20
- title: 'components/loaders/LoadingSpinner/LoadingSpinner',
20
+ title: 'Atoms/LoadingSpinner',
21
21
  component: RcSesLoadingSpinner,
22
22
  parameters: {
23
23
  layout: 'centered',
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import Logo from '@/assets/Logo'
4
4
 
5
5
  const meta = {
6
- title: 'assets/Logo',
6
+ title: 'Atoms/Logo',
7
7
  component: Logo,
8
8
  parameters: {
9
9
  layout: 'centered',
@@ -14,7 +14,7 @@ type FormModel = {
14
14
  }
15
15
 
16
16
  const meta: Meta<typeof RcSesNumberStepper> = {
17
- title: 'components/inputs/NumberStepper',
17
+ title: 'Atoms/NumberStepper',
18
18
  component: RcSesNumberStepper,
19
19
  argTypes: {
20
20
  id: { table: { disable: true } },
@@ -14,7 +14,7 @@ type FormModel = {
14
14
  }
15
15
 
16
16
  const meta: Meta<typeof RcSesPhoneInput> = {
17
- title: 'components/inputs/PhoneInput',
17
+ title: 'Atoms/PhoneInput',
18
18
  component: RcSesPhoneInput,
19
19
  argTypes: {
20
20
  control: {
@@ -7,7 +7,7 @@ import RcSesSearchInput from '@/components/form/inputs/SearchInput'
7
7
  import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
8
8
 
9
9
  const meta: Meta<typeof RcSesSearchInput> = {
10
- title: 'components/inputs/SearchInput',
10
+ title: 'Atoms/SearchInput',
11
11
  component: RcSesSearchInput,
12
12
  tags: ['autodocs'],
13
13
  argTypes: {
@@ -11,7 +11,7 @@ import PreviewTitle from '@/components/storybook/PreviewTitle'
11
11
  import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
12
12
 
13
13
  const meta: Meta<typeof RcSesSelect> = {
14
- title: 'components/inputs/Select',
14
+ title: 'Atoms/Select',
15
15
  component: RcSesSelect,
16
16
  argTypes: {
17
17
  disabled: {
@@ -4,7 +4,7 @@ import { useState } from 'react'
4
4
  import SimpleCheckbox from '@/components/form/inputs/SimpleCheckbox'
5
5
 
6
6
  const meta = {
7
- title: 'components/inputs/SimpleCheckbox',
7
+ title: 'Atoms/SimpleCheckbox',
8
8
  component: SimpleCheckbox,
9
9
  parameters: {
10
10
  layout: 'centered',
@@ -4,7 +4,7 @@ import { useState } from 'react'
4
4
  import RcSesSwitch from '@/components/common/Switch'
5
5
 
6
6
  const meta = {
7
- title: 'components/inputs/Switch',
7
+ title: 'Atoms/Switch',
8
8
  component: RcSesSwitch,
9
9
  parameters: {
10
10
  layout: 'centered',
@@ -4,7 +4,7 @@ import RcSesTab from '@/components/common/Tabs/Tab'
4
4
  import RcSesTabs from '@/components/common/Tabs/Tabs'
5
5
 
6
6
  const meta: Meta<typeof RcSesTab> = {
7
- title: 'components/tabs/Tab',
7
+ title: 'Atoms/Tab',
8
8
  component: RcSesTab,
9
9
  tags: ['autodocs'],
10
10
  // From MUI 9 a Tab must sit inside a Tabs provider: Tabs supplies the
@@ -7,7 +7,7 @@ import Fields from '@/components/storybook/Fields'
7
7
  import PreviewTitle from '@/components/storybook/PreviewTitle'
8
8
 
9
9
  const meta: Meta<typeof RcSesTextField> = {
10
- title: 'components/inputs/TextField',
10
+ title: 'Atoms/TextField',
11
11
  component: RcSesTextField,
12
12
  tags: ['autodocs'],
13
13
  }
@@ -1,10 +1,10 @@
1
1
  import { Button, Typography } from '@mui/material'
2
2
  import type { Meta } from '@storybook/react-vite'
3
3
 
4
- import RcSesTooltip from '../../../components/common/Tooltip'
4
+ import RcSesTooltip from '@/components/common/Tooltip'
5
5
 
6
6
  const meta = {
7
- title: 'components/display/Tooltip',
7
+ title: 'Atoms/Tooltip',
8
8
  component: RcSesTooltip,
9
9
  parameters: {
10
10
  layout: 'centered',
@@ -34,7 +34,7 @@ import type { Meta, StoryObj } from '@storybook/react-vite'
34
34
  * or silently dead override surfaces as a pixel diff.
35
35
  */
36
36
  const meta: Meta = {
37
- title: 'theme/Themed MUI components',
37
+ title: 'Foundations/Themed MUI Components',
38
38
  parameters: {
39
39
  docs: {
40
40
  description: {
@@ -20,7 +20,7 @@ const severities: Array<'grey' | 'info' | 'success' | 'warning' | 'error'> = [
20
20
  ]
21
21
 
22
22
  const meta: Meta<typeof RcSesAlert> = {
23
- title: 'components/feedback/Alert',
23
+ title: 'Molecules/Alert',
24
24
  component: RcSesAlert,
25
25
  tags: ['autodocs'],
26
26
  argTypes: {
@@ -14,7 +14,7 @@ const Path = [
14
14
  ]
15
15
 
16
16
  const meta: Meta<typeof RcSesBreadcrumbs> = {
17
- title: 'components/navigation/Breadcrumbs',
17
+ title: 'Molecules/Breadcrumbs',
18
18
  component: RcSesBreadcrumbs,
19
19
  tags: ['autodocs'],
20
20
  }
@@ -3,7 +3,7 @@ import { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import RcSesButtonWithPopover from '@/components/common/Button/ButtonWithPopover'
4
4
 
5
5
  const meta: Meta<typeof RcSesButtonWithPopover> = {
6
- title: 'components/actions/ButtonWithPopover',
6
+ title: 'Molecules/ButtonWithPopover',
7
7
  component: RcSesButtonWithPopover,
8
8
  tags: ['autodocs'],
9
9
  argTypes: {
@@ -9,7 +9,7 @@ import RcSesCard from '@/components/common/Card'
9
9
  import palette from '@/theme/palette'
10
10
 
11
11
  const meta: Meta<typeof RcSesCard> = {
12
- title: 'components/display/Card',
12
+ title: 'Molecules/Card',
13
13
  component: RcSesCard,
14
14
  tags: ['autodocs'],
15
15
  }
@@ -9,7 +9,7 @@ import RcSesIconWithCircularBackground from '@/components/common/IconWithCircula
9
9
  import RcSesTitleBlock from '@/components/common/TitleBlock'
10
10
 
11
11
  const meta: Meta<typeof RcSesCardShell> = {
12
- title: 'components/display/CardShell',
12
+ title: 'Molecules/CardShell',
13
13
  component: RcSesCardShell,
14
14
  tags: ['autodocs'],
15
15
  parameters: {
@@ -261,3 +261,22 @@ export const TabletViewport: Story = {
261
261
  tags: ['viewport-768', '!autodocs'],
262
262
  globals: { viewport: { value: 'tablet768' } },
263
263
  }
264
+
265
+ // Pins the CardFooter align='start' + single-action + stretchOnMobile={false}
266
+ // path at 375, so the mobile left-align regression the FooterLink helper
267
+ // depends on stays covered by the visual suite.
268
+ export const LeftAlignedFooterMobileViewport: Story = {
269
+ args: {
270
+ variant: 'card',
271
+ theme: 'default',
272
+ header: <SampleHeader />,
273
+ children: <SampleContent />,
274
+ footer: (
275
+ <RcSesCardFooter align='start' stretchOnMobile={false}>
276
+ <RcSesButton variant='link'>Peržiūrėti DUK</RcSesButton>
277
+ </RcSesCardFooter>
278
+ ),
279
+ },
280
+ tags: ['viewport-375', '!autodocs'],
281
+ globals: { viewport: { value: 'mobile375' } },
282
+ }
@@ -10,7 +10,7 @@ import Fields from '@/components/storybook/Fields'
10
10
  const variants = ['outlined', 'flat']
11
11
 
12
12
  const meta: Meta<typeof RcSesCheckboxFormControl> = {
13
- title: 'components/form/CheckboxFormControl',
13
+ title: 'Molecules/CheckboxFormControl',
14
14
  component: RcSesCheckboxFormControl,
15
15
  argTypes: {
16
16
  variant: {
@@ -10,7 +10,7 @@ import Fields from '@/components/storybook/Fields'
10
10
  import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
11
11
 
12
12
  const meta: Meta<typeof RcSesDatepicker> = {
13
- title: 'components/inputs/DatePicker',
13
+ title: 'Molecules/DatePicker',
14
14
  component: RcSesDatepicker,
15
15
  argTypes: {
16
16
  clearable: {
@@ -4,7 +4,7 @@ import { Meta, StoryObj } from '@storybook/react-vite'
4
4
  import RcSesFormControlWrapper from '@/components/form/components/FormControlWrapper'
5
5
 
6
6
  const meta: Meta<typeof RcSesFormControlWrapper> = {
7
- title: 'components/form/FormControlWrapper',
7
+ title: 'Molecules/FormControlWrapper',
8
8
  component: RcSesFormControlWrapper,
9
9
  tags: ['autodocs'],
10
10
  argTypes: {
@@ -7,7 +7,7 @@ import RcSesImageCard from '@/components/common/ImageCard'
7
7
  import palette from '@/theme/palette'
8
8
 
9
9
  const meta: Meta<typeof RcSesImageCard> = {
10
- title: 'components/display/ImageCard',
10
+ title: 'Molecules/ImageCard',
11
11
  component: RcSesImageCard,
12
12
  tags: ['autodocs'],
13
13
  }
@@ -25,7 +25,7 @@ const baseItems: ListWithIconsItemData[] = [
25
25
  ]
26
26
 
27
27
  const meta = {
28
- title: 'components/display/ListWithIcons',
28
+ title: 'Molecules/ListWithIcons',
29
29
  component: ListWithIcons,
30
30
  tags: ['autodocs'],
31
31
  args: {
@@ -5,7 +5,7 @@ import { useForm } from 'react-hook-form'
5
5
  import RcSesPhoneInputFormControl from '@/components/form/inputs/PhoneInputFormControl'
6
6
 
7
7
  const meta: Meta<typeof RcSesPhoneInputFormControl> = {
8
- title: 'components/inputs/PhoneInputFormControl',
8
+ title: 'Molecules/PhoneInputFormControl',
9
9
  component: RcSesPhoneInputFormControl,
10
10
  tags: ['autodocs'],
11
11
  argTypes: {
@@ -10,7 +10,7 @@ import RcSesPopover from '@/components/common/Popover'
10
10
  * These stories render the popover itself, already open against a fixed anchor.
11
11
  */
12
12
  const meta: Meta<typeof RcSesPopover> = {
13
- title: 'components/overlays/Popover',
13
+ title: 'Molecules/Popover',
14
14
  component: RcSesPopover,
15
15
  tags: ['autodocs'],
16
16
  argTypes: {
@@ -14,7 +14,7 @@ type FormModel = {
14
14
  const variants = ['outlined', 'filled', 'flat']
15
15
 
16
16
  const meta: Meta<typeof RcSesRadioButtonGroup> = {
17
- title: 'components/inputs/RadioButtonGroup',
17
+ title: 'Molecules/RadioButtonGroup',
18
18
  component: RcSesRadioButtonGroup,
19
19
  argTypes: {
20
20
  variant: {
@@ -6,7 +6,7 @@ import ObjectIdentifierSearchModal from '@/examples/SingleStepForm/components/Ob
6
6
  import SingleStepFormModel from '@/examples/SingleStepForm/types/SingleStepFormModel'
7
7
 
8
8
  const meta: Meta<typeof RcSesSearchableField> = {
9
- title: 'components/inputs/SearchableField',
9
+ title: 'Molecules/SearchableField',
10
10
  component: RcSesSearchableField,
11
11
  tags: ['autodocs'],
12
12
  }
@@ -1,10 +1,10 @@
1
1
  import type { Meta } from '@storybook/react-vite'
2
2
  import { useState } from 'react'
3
3
 
4
- import RcSesSegmentedControl from '../../../components/common/SegmentedControl'
4
+ import RcSesSegmentedControl from '@/components/common/SegmentedControl'
5
5
 
6
6
  const meta = {
7
- title: 'components/display/SegmentedControl',
7
+ title: 'Molecules/SegmentedControl',
8
8
  component: RcSesSegmentedControl,
9
9
  parameters: {
10
10
  layout: 'centered',
@@ -20,7 +20,7 @@ const getStateLabel = (state: SnackbarState): string =>
20
20
  state.charAt(0).toUpperCase() + state.slice(1).replace('-', ' ')
21
21
 
22
22
  const meta: Meta<typeof RcSesSnackbar> = {
23
- title: 'components/feedback/Snackbar',
23
+ title: 'Molecules/Snackbar',
24
24
  component: RcSesSnackbar,
25
25
  tags: ['autodocs'],
26
26
  decorators: [
@@ -3,7 +3,7 @@ import { Meta, StoryObj } from '@storybook/react-vite'
3
3
  import RcSesTabPanel from '@/components/common/Tabs/TabPanel'
4
4
 
5
5
  const meta: Meta<typeof RcSesTabPanel> = {
6
- title: 'components/tabs/TabPanel',
6
+ title: 'Molecules/TabPanel',
7
7
  component: RcSesTabPanel,
8
8
  tags: ['autodocs'],
9
9
  }
@@ -6,7 +6,7 @@ import RcSesTab from '@/components/common/Tabs/Tab'
6
6
  import RcSesTabs from '@/components/common/Tabs/Tabs'
7
7
 
8
8
  const meta: Meta<typeof RcSesTabs> = {
9
- title: 'components/tabs/Tabs',
9
+ title: 'Molecules/Tabs',
10
10
  component: RcSesTabs,
11
11
  tags: ['autodocs'],
12
12
  argTypes: {
@@ -6,7 +6,7 @@ import RcSesTabs from '@/components/common/Tabs/Tabs'
6
6
  import RcSesTabsWrapper from '@/components/common/Tabs/TabsWrapper'
7
7
 
8
8
  const meta: Meta<typeof RcSesTabsWrapper> = {
9
- title: 'components/tabs/TabsWrapper',
9
+ title: 'Molecules/TabsWrapper',
10
10
  component: RcSesTabsWrapper,
11
11
  tags: ['autodocs'],
12
12
  argTypes: {
@@ -12,7 +12,7 @@ import RcSesTitleBlock from '@/components/common/TitleBlock'
12
12
  import palette from '@/theme/palette'
13
13
 
14
14
  const meta: Meta<typeof RcSesTitleBlock> = {
15
- title: 'components/display/TitleBlock',
15
+ title: 'Molecules/TitleBlock',
16
16
  component: RcSesTitleBlock,
17
17
  tags: ['autodocs'],
18
18
  parameters: {
@@ -434,7 +434,8 @@ export const BodyScaleTitleInCard: Story = {
434
434
  const services = [
435
435
  {
436
436
  id: 'body-scale-title-a',
437
- title: 'Pažymos apie asmens duomenis Gyventojų registre užsakymas',
437
+ title:
438
+ 'Pažymos apie asmens duomenis Gyventojų registre užsakymas. Labai ilgas tekstas, skirtas testavimui.',
438
439
  },
439
440
  {
440
441
  id: 'body-scale-title-b',
@@ -570,3 +571,25 @@ export const TabletViewport: Story = {
570
571
  tags: ['viewport-768', '!autodocs'],
571
572
  globals: { viewport: { value: 'tablet768' } },
572
573
  }
574
+
575
+ // Pins the vertical-orientation mobile treatment (compressed
576
+ // title, left-aligned link footer inside CardShell) so any regression in the
577
+ // responsive gap/breakpoint stack shows up in the visual diff.
578
+ export const VerticalMobileViewport: Story = {
579
+ render: () => (
580
+ <RcSesCardShell
581
+ variant='card'
582
+ theme='default'
583
+ footer={<FooterLink label='Peržiūrėti DUK' href='#' />}
584
+ >
585
+ <RcSesTitleBlock
586
+ orientation='vertical'
587
+ title='DUK'
588
+ description='Atsakymai į dažniausiai užduodamus klausimus apie paslaugas ir savitarną.'
589
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
590
+ />
591
+ </RcSesCardShell>
592
+ ),
593
+ tags: ['viewport-375', '!autodocs'],
594
+ globals: { viewport: { value: 'mobile375' } },
595
+ }
@@ -6,7 +6,7 @@ import RcSesServiceFormContainer from '@/components/layout/ServiceFormContainer/
6
6
  import FieldView from '@/components/storybook/FieldView'
7
7
 
8
8
  const meta: Meta<typeof RcSesAccordion> = {
9
- title: 'components/navigation/Accordion',
9
+ title: 'Organisms/Accordion',
10
10
  component: RcSesAccordion,
11
11
  argTypes: {
12
12
  disabled: {
@@ -30,7 +30,7 @@ const buildItems = (): AdvancedListItemData[] =>
30
30
  }))
31
31
 
32
32
  const meta = {
33
- title: 'components/display/AdvancedList',
33
+ title: 'Organisms/AdvancedList',
34
34
  component: AdvancedList,
35
35
  tags: ['autodocs'],
36
36
  args: {
@@ -17,7 +17,7 @@ import UserIcon from '@/assets/icons/UserIcon'
17
17
  import AdvancedListItem from '@/components/common/AdvancedList/components/AdvancedListItem'
18
18
 
19
19
  const meta = {
20
- title: 'components/display/AdvancedListItem',
20
+ title: 'Organisms/AdvancedListItem',
21
21
  component: AdvancedListItem,
22
22
  tags: ['autodocs'],
23
23
  args: {
@@ -22,7 +22,7 @@ const longSteps: StepItem[] = [
22
22
  ]
23
23
 
24
24
  const meta: Meta<typeof RcSesCardFormContainer> = {
25
- title: 'components/form/CardFormContainer',
25
+ title: 'Organisms/CardFormContainer',
26
26
  component: RcSesCardFormContainer,
27
27
  tags: ['autodocs'],
28
28
  argTypes: {
@@ -5,7 +5,7 @@ import { useState } from 'react'
5
5
  import DataPagination from '@/components/common/DataPagination'
6
6
 
7
7
  const meta = {
8
- title: 'components/navigation/DataPagination',
8
+ title: 'Organisms/DataPagination',
9
9
  component: DataPagination,
10
10
  tags: ['autodocs'],
11
11
  args: {
@@ -7,7 +7,7 @@ import RcSesDialog, { RcSesDialogProps } from '@/components/overlays/Dialog'
7
7
 
8
8
  const meta: Meta<typeof RcSesDialog> = {
9
9
  component: RcSesDialog,
10
- title: 'components/overlays/Dialog',
10
+ title: 'Organisms/Dialog',
11
11
  parameters: {
12
12
  layout: 'centered',
13
13
  },
@@ -14,7 +14,7 @@ type FormModel = {
14
14
  }
15
15
 
16
16
  const meta: Meta<typeof RcSesFileDropzone> = {
17
- title: 'components/inputs/FileDropzone',
17
+ title: 'Organisms/FileDropzone',
18
18
  component: RcSesFileDropzone,
19
19
  argTypes: {
20
20
  control: { table: { disable: true } },