@registrucentras/rc-ses-react-components 2.7.2 → 3.0.0-rc.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.
Files changed (289) hide show
  1. package/dist/assets/icons/phosphorIcons.d.ts +24 -0
  2. package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +2 -1
  3. package/dist/components/common/Accordion/index.d.ts +18 -4
  4. package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +1 -0
  5. package/dist/components/common/Card/index.d.ts +3 -0
  6. package/dist/components/common/CheckboxMark/index.d.ts +8 -0
  7. package/dist/components/common/DataPagination/components/ExpandButton.d.ts +7 -0
  8. package/dist/components/common/DataPagination/components/PaginationButton.d.ts +2 -1
  9. package/dist/components/common/DataPagination/index.d.ts +13 -3
  10. package/dist/components/common/DataPagination/paginationModel.d.ts +4 -0
  11. package/dist/components/common/Divider/index.d.ts +6 -0
  12. package/dist/components/common/EmptyState/index.d.ts +21 -0
  13. package/dist/components/common/IconWithSquareBackground/index.d.ts +2 -2
  14. package/dist/components/common/ImageCard/index.d.ts +5 -0
  15. package/dist/components/common/LinkTile/index.d.ts +11 -0
  16. package/dist/components/common/RadioMark/index.d.ts +8 -0
  17. package/dist/components/common/StepCard/StepCardFooter/index.d.ts +1 -1
  18. package/dist/components/common/TitleBlock/types.d.ts +4 -2
  19. package/dist/components/form/components/FormControlWrapper/index.d.ts +2 -1
  20. package/dist/components/form/inputs/Datepicker/RangeDatepicker.d.ts +23 -0
  21. package/dist/components/form/inputs/Datepicker/SingleDatepicker.d.ts +24 -0
  22. package/dist/components/form/inputs/Datepicker/components/CalendarViewsHeader.d.ts +18 -0
  23. package/dist/components/form/inputs/Datepicker/index.d.ts +10 -14
  24. package/dist/components/form/inputs/Datepicker/rangeModel.d.ts +4 -0
  25. package/dist/components/form/inputs/FileDropzone.d.ts +2 -2
  26. package/dist/components/form/inputs/RadioButtonGroup.d.ts +1 -0
  27. package/dist/components/form/inputs/Select/Select.styles.d.ts +84 -0
  28. package/dist/components/form/inputs/Select/components/OptionCheckbox.d.ts +2 -1
  29. package/dist/components/form/inputs/TextField.d.ts +27 -12
  30. package/dist/components/form/inputs/TextField.styles.d.ts +101 -0
  31. package/dist/components/layout/ServiceWizardStepper/stepperTokens.d.ts +5 -0
  32. package/dist/components/loaders/Loader/index.d.ts +12 -9
  33. package/dist/components/overlays/BottomSheet/index.d.ts +3 -2
  34. package/dist/components/overlays/Dialog/index.d.ts +1 -1
  35. package/dist/components/storybook/FileUploadTokenPreview.d.ts +4 -0
  36. package/dist/components/storybook/TabsTokenPreview.d.ts +3 -0
  37. package/dist/components/storybook/TokenDocs.d.ts +74 -0
  38. package/dist/library/index.d.ts +30 -1
  39. package/dist/registrucentras-rc-ses-react-components.cjs +2 -2
  40. package/dist/registrucentras-rc-ses-react-components.js +11144 -8374
  41. package/dist/theme/backdropTokens.d.ts +6 -0
  42. package/dist/theme/borderTokens.d.ts +33 -0
  43. package/dist/theme/cards.d.ts +42 -73
  44. package/dist/theme/colorTokens.d.ts +146 -0
  45. package/dist/theme/effectTokens.d.ts +9 -0
  46. package/dist/theme/layoutTokens.d.ts +12 -0
  47. package/dist/theme/light/MuiAccordion.d.ts +2 -2
  48. package/dist/theme/light/MuiAccordionSummary.d.ts +19 -0
  49. package/dist/theme/light/MuiButton.d.ts +7 -0
  50. package/dist/theme/light/MuiInputBase.d.ts +2 -0
  51. package/dist/theme/light/MuiPickerPopper.d.ts +3 -0
  52. package/dist/theme/light/MuiTypography.d.ts +0 -14
  53. package/dist/theme/palette.d.ts +8 -0
  54. package/dist/theme/sizeTokens.d.ts +20 -0
  55. package/dist/theme/spacingRoleBasedTokens.d.ts +38 -0
  56. package/dist/theme/spacingTokens.d.ts +97 -0
  57. package/dist/theme/tokenTheme.d.ts +13 -0
  58. package/dist/theme/typographyTokens.d.ts +104 -0
  59. package/package.json +2 -2
  60. package/src/assets/icons/phosphorIcons.ts +11 -0
  61. package/src/components/common/Accordion/hooks/useAccordionController.tsx +39 -7
  62. package/src/components/common/Accordion/index.test.tsx +132 -0
  63. package/src/components/common/Accordion/index.tsx +302 -25
  64. package/src/components/common/Accordion/types/AccordionControllerState.ts +1 -0
  65. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +3 -3
  66. package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +8 -3
  67. package/src/components/common/AdvancedList/components/AdvancedListItem/index.tsx +3 -2
  68. package/src/components/common/AdvancedList/components/AdvancedListItemShell/index.test.tsx +3 -3
  69. package/src/components/common/AdvancedList/components/AdvancedListItemShell/index.tsx +23 -19
  70. package/src/components/common/AdvancedList/index.test.tsx +4 -2
  71. package/src/components/common/Alert/index.tsx +10 -6
  72. package/src/components/common/Badge/index.tsx +50 -37
  73. package/src/components/common/Button/index.tsx +12 -10
  74. package/src/components/common/Card/index.tsx +6 -1
  75. package/src/components/common/CardShell/index.test.tsx +16 -6
  76. package/src/components/common/CheckboxMark/index.tsx +86 -0
  77. package/src/components/common/DataPagination/components/DataPaginationSkeleton.tsx +9 -7
  78. package/src/components/common/DataPagination/components/ExpandButton.tsx +48 -0
  79. package/src/components/common/DataPagination/components/PaginationButton.tsx +48 -21
  80. package/src/components/common/DataPagination/index.test.tsx +229 -12
  81. package/src/components/common/DataPagination/index.tsx +135 -60
  82. package/src/components/common/DataPagination/paginationModel.ts +35 -0
  83. package/src/components/common/Divider/index.test.tsx +33 -0
  84. package/src/components/common/Divider/index.tsx +52 -0
  85. package/src/components/common/EmptyState/index.test.tsx +56 -0
  86. package/src/components/common/EmptyState/index.tsx +211 -0
  87. package/src/components/common/FilterChip/index.tsx +24 -19
  88. package/src/components/common/IconWithCircularBackground.tsx +24 -6
  89. package/src/components/common/IconWithSquareBackground/index.test.tsx +14 -2
  90. package/src/components/common/IconWithSquareBackground/index.tsx +36 -17
  91. package/src/components/common/ImageCard/index.test.tsx +16 -0
  92. package/src/components/common/ImageCard/index.tsx +54 -1
  93. package/src/components/common/LinkTile/index.test.tsx +57 -0
  94. package/src/components/common/LinkTile/index.tsx +136 -0
  95. package/src/components/common/ListWithIcons/components/ListWithIconsItem.tsx +39 -23
  96. package/src/components/common/ListWithIcons/index.test.tsx +20 -9
  97. package/src/components/common/ListWithIcons/index.tsx +6 -6
  98. package/src/components/common/Popover/index.tsx +11 -1
  99. package/src/components/common/RadioMark/index.tsx +76 -0
  100. package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +49 -25
  101. package/src/components/common/SegmentedControl/index.tsx +10 -6
  102. package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +7 -5
  103. package/src/components/common/SelectableCardList/index.test.tsx +8 -6
  104. package/src/components/common/SelectionMarks.test.tsx +92 -0
  105. package/src/components/common/ServiceLinks/ServiceLinkItem/index.tsx +20 -11
  106. package/src/components/common/ServiceLinks/index.tsx +3 -3
  107. package/src/components/common/SideNav/SideNavLayout.tsx +6 -1
  108. package/src/components/common/SideNav/components/SideNavPill.tsx +24 -12
  109. package/src/components/common/SideNav/components/SideNavPillList.tsx +18 -12
  110. package/src/components/common/SideNav/components/SideNavRow.tsx +22 -15
  111. package/src/components/common/SideNav/index.tsx +10 -9
  112. package/src/components/common/Snackbar/config.ts +27 -8
  113. package/src/components/common/Snackbar/index.tsx +39 -16
  114. package/src/components/common/StepCard/StepCardFooter/index.tsx +28 -6
  115. package/src/components/common/StepCard/index.tsx +18 -6
  116. package/src/components/common/Switch/index.tsx +10 -4
  117. package/src/components/common/Tabs/TabPanel.tsx +6 -3
  118. package/src/components/common/Tabs/TabsWrapper.tsx +15 -7
  119. package/src/components/common/TitleBlock/index.test.tsx +14 -17
  120. package/src/components/common/TitleBlock/index.tsx +120 -15
  121. package/src/components/common/TitleBlock/types.ts +4 -2
  122. package/src/components/common/Tooltip/index.tsx +32 -3
  123. package/src/components/form/components/FormControlWrapper/index.tsx +43 -14
  124. package/src/components/form/inputs/CheckboxFormControl.tsx +25 -13
  125. package/src/components/form/inputs/Datepicker/RangeDatepicker.tsx +356 -0
  126. package/src/components/form/inputs/Datepicker/SingleDatepicker.tsx +207 -0
  127. package/src/components/form/inputs/Datepicker/components/CalendarViewsHeader.tsx +335 -0
  128. package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +22 -10
  129. package/src/components/form/inputs/Datepicker/index.test.tsx +23 -18
  130. package/src/components/form/inputs/Datepicker/index.tsx +20 -150
  131. package/src/components/form/inputs/Datepicker/rangeModel.test.ts +35 -0
  132. package/src/components/form/inputs/Datepicker/rangeModel.ts +25 -0
  133. package/src/components/form/inputs/FileDropzone.tsx +73 -46
  134. package/src/components/form/inputs/FileUpload.tsx +25 -16
  135. package/src/components/form/inputs/NumberStepper.tsx +36 -14
  136. package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +10 -5
  137. package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +7 -1
  138. package/src/components/form/inputs/PhoneInputFormControl/components/PopperComponent.tsx +5 -2
  139. package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +9 -5
  140. package/src/components/form/inputs/PhoneInputFormControl/index.tsx +48 -24
  141. package/src/components/form/inputs/RadioButtonGroup.tsx +14 -6
  142. package/src/components/form/inputs/Select/Select.styles.ts +76 -0
  143. package/src/components/form/inputs/Select/components/OptionCheckbox.tsx +6 -33
  144. package/src/components/form/inputs/Select/index.tsx +124 -86
  145. package/src/components/form/inputs/SimpleCheckbox.tsx +10 -3
  146. package/src/components/form/inputs/TextField.presets.test.tsx +284 -0
  147. package/src/components/form/inputs/TextField.styles.ts +96 -0
  148. package/src/components/form/inputs/TextField.test.tsx +153 -0
  149. package/src/components/form/inputs/TextField.tsx +315 -42
  150. package/src/components/layout/Footer/index.test.tsx +1 -1
  151. package/src/components/layout/Footer/index.tsx +17 -7
  152. package/src/components/layout/ServiceFormActions.tsx +5 -1
  153. package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +3 -3
  154. package/src/components/layout/ServiceHeader.tsx +19 -19
  155. package/src/components/layout/ServiceWizardStepper/ServiceWizardStepper.css +10 -10
  156. package/src/components/layout/ServiceWizardStepper/StepConnector.tsx +8 -5
  157. package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.tsx +22 -7
  158. package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.tsx +15 -11
  159. package/src/components/layout/ServiceWizardStepper/components/StyledStepLabel.tsx +28 -11
  160. package/src/components/layout/ServiceWizardStepper/stepperTokens.ts +8 -0
  161. package/src/components/loaders/FullPageLoader/index.test.tsx +18 -7
  162. package/src/components/loaders/FullPageLoader/index.tsx +14 -9
  163. package/src/components/loaders/Loader/index.tsx +48 -17
  164. package/src/components/overlays/BottomSheet/index.test.tsx +36 -3
  165. package/src/components/overlays/BottomSheet/index.tsx +54 -21
  166. package/src/components/overlays/Dialog/index.tsx +5 -23
  167. package/src/components/overlays/Drawer/index.tsx +29 -14
  168. package/src/components/overlays/Modal/index.tsx +46 -8
  169. package/src/components/storybook/FileUploadTokenPreview.tsx +68 -0
  170. package/src/components/storybook/TabsTokenPreview.tsx +58 -0
  171. package/src/components/storybook/TokenDocs.tsx +347 -0
  172. package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +5 -1
  173. package/src/i18n/namespaces/input/en.json +48 -4
  174. package/src/i18n/namespaces/input/lt.json +48 -4
  175. package/src/library/index.ts +50 -0
  176. package/src/stories/atoms/Badge.stories.tsx +2 -1
  177. package/src/stories/atoms/Button.stories.tsx +124 -6
  178. package/src/stories/atoms/CheckboxMark.stories.tsx +79 -0
  179. package/src/stories/atoms/Divider.stories.tsx +129 -0
  180. package/src/stories/atoms/FilterChip.stories.tsx +9 -1
  181. package/src/stories/atoms/IconWithSquareBackground.stories.tsx +7 -7
  182. package/src/stories/atoms/Icons.stories.tsx +1 -1
  183. package/src/stories/atoms/NumberStepper.stories.tsx +44 -0
  184. package/src/stories/atoms/PhoneInput.stories.tsx +42 -0
  185. package/src/stories/atoms/RadioMark.stories.tsx +132 -0
  186. package/src/stories/atoms/Select.stories.tsx +139 -2
  187. package/src/stories/atoms/SimpleCheckbox.stories.tsx +74 -0
  188. package/src/stories/atoms/Switch.stories.tsx +46 -1
  189. package/src/stories/atoms/TextField.stories.tsx +508 -0
  190. package/src/stories/atoms/Tooltip.stories.tsx +5 -0
  191. package/src/stories/fixtures/foundations/Borders.stories.tsx +84 -0
  192. package/src/stories/fixtures/foundations/Effects.stories.tsx +204 -0
  193. package/src/stories/fixtures/foundations/Layout.stories.tsx +76 -0
  194. package/src/stories/fixtures/foundations/Sizes.stories.tsx +42 -0
  195. package/src/stories/fixtures/foundations/Spacing.stories.tsx +48 -0
  196. package/src/stories/fixtures/foundations/Typography.stories.tsx +49 -0
  197. package/src/stories/foundations/Borders.stories.tsx +179 -0
  198. package/src/stories/foundations/Colors.stories.tsx +253 -0
  199. package/src/stories/foundations/Effects.stories.tsx +116 -0
  200. package/src/stories/foundations/Layout.stories.tsx +177 -0
  201. package/src/stories/foundations/Sizes.stories.tsx +123 -0
  202. package/src/stories/foundations/Spacing.stories.tsx +159 -0
  203. package/src/stories/foundations/ThemeAdapter.stories.tsx +389 -0
  204. package/src/stories/foundations/Typography.stories.tsx +148 -0
  205. package/src/stories/molecules/Alert.stories.tsx +18 -0
  206. package/src/stories/molecules/Breadcrumbs.stories.tsx +51 -0
  207. package/src/stories/molecules/Card.stories.tsx +1 -1
  208. package/src/stories/molecules/CardShell.stories.tsx +1 -0
  209. package/src/stories/molecules/DatePicker.stories.tsx +133 -3
  210. package/src/stories/molecules/EmptyState.stories.tsx +106 -0
  211. package/src/stories/molecules/FormControlWrapper.stories.tsx +59 -0
  212. package/src/stories/molecules/LinkTile.stories.tsx +151 -0
  213. package/src/stories/molecules/ListWithIcons.stories.tsx +27 -2
  214. package/src/stories/molecules/RadioButtonGroup.stories.tsx +23 -0
  215. package/src/stories/molecules/SegmentedControl.stories.tsx +62 -1
  216. package/src/stories/molecules/Tabs.stories.tsx +4 -0
  217. package/src/stories/molecules/TitleBlock.stories.tsx +16 -16
  218. package/src/stories/organisms/Accordion.stories.tsx +132 -0
  219. package/src/stories/organisms/AdvancedListItemShell.stories.tsx +63 -23
  220. package/src/stories/organisms/BottomSheet.stories.tsx +48 -1
  221. package/src/stories/organisms/DataPagination.stories.tsx +127 -3
  222. package/src/stories/organisms/Dialog.stories.tsx +13 -0
  223. package/src/stories/organisms/FileDropzone.stories.tsx +6 -0
  224. package/src/stories/organisms/FileUpload.stories.tsx +4 -0
  225. package/src/stories/organisms/Footer.stories.tsx +20 -0
  226. package/src/stories/organisms/Modal.stories.tsx +53 -0
  227. package/src/stories/organisms/ServiceHeader.stories.tsx +25 -3
  228. package/src/stories/organisms/ServiceLinks.stories.tsx +1 -1
  229. package/src/stories/organisms/ServiceWizardStepper.stories.tsx +37 -1
  230. package/src/stories/organisms/SideNav.stories.tsx +8 -1
  231. package/src/theme/backdropTokens.test.ts +11 -0
  232. package/src/theme/backdropTokens.ts +11 -0
  233. package/src/theme/borderTokens.test.ts +59 -0
  234. package/src/theme/borderTokens.ts +36 -0
  235. package/src/theme/cards.ts +28 -28
  236. package/src/theme/colorTokens.test.ts +66 -0
  237. package/src/theme/colorTokens.ts +87 -0
  238. package/src/theme/effectTokens.test.ts +29 -0
  239. package/src/theme/effectTokens.ts +11 -0
  240. package/src/theme/layoutTokens.test.ts +42 -0
  241. package/src/theme/layoutTokens.ts +14 -0
  242. package/src/theme/light/MuiAccordion.tsx +30 -26
  243. package/src/theme/light/MuiAccordionDetails.ts +10 -5
  244. package/src/theme/light/MuiAccordionSummary.tsx +31 -17
  245. package/src/theme/light/MuiAlert.tsx +42 -65
  246. package/src/theme/light/MuiAutocomplete.ts +14 -7
  247. package/src/theme/light/MuiBreadcrumbs.tsx +17 -9
  248. package/src/theme/light/MuiButton.tsx +213 -204
  249. package/src/theme/light/MuiCard.tsx +5 -4
  250. package/src/theme/light/MuiCheckbox.ts +45 -14
  251. package/src/theme/light/MuiChip.tsx +3 -1
  252. package/src/theme/light/MuiDialog.ts +45 -6
  253. package/src/theme/light/MuiFormControl.ts +19 -9
  254. package/src/theme/light/MuiFormControlLabel.ts +16 -25
  255. package/src/theme/light/MuiFormGroup.ts +29 -26
  256. package/src/theme/light/MuiFormHelperText.ts +15 -4
  257. package/src/theme/light/MuiFormLabel.ts +20 -20
  258. package/src/theme/light/MuiInputBase.ts +49 -84
  259. package/src/theme/light/MuiOutlinedInput.ts +50 -6
  260. package/src/theme/light/MuiPagination.ts +21 -21
  261. package/src/theme/light/MuiPickerPopper.ts +17 -0
  262. package/src/theme/light/MuiPickersLayout.ts +63 -34
  263. package/src/theme/light/MuiPickersOutlinedInput.ts +38 -38
  264. package/src/theme/light/MuiPopover.ts +3 -1
  265. package/src/theme/light/MuiRadio.tsx +35 -52
  266. package/src/theme/light/MuiStepper.ts +21 -17
  267. package/src/theme/light/MuiSwitch.tsx +27 -23
  268. package/src/theme/light/MuiTab.tsx +27 -18
  269. package/src/theme/light/MuiTableCell.ts +4 -2
  270. package/src/theme/light/MuiTabs.tsx +11 -9
  271. package/src/theme/light/MuiTooltip.ts +2 -1
  272. package/src/theme/light/MuiTypography.tsx +0 -17
  273. package/src/theme/light/index.tsx +2 -0
  274. package/src/theme/light/themePalette.tsx +1 -0
  275. package/src/theme/palette.tsx +9 -0
  276. package/src/theme/sizeTokens.test.ts +37 -0
  277. package/src/theme/sizeTokens.ts +21 -0
  278. package/src/theme/spacingRoleBasedTokens.ts +41 -0
  279. package/src/theme/spacingTokens.test.ts +58 -0
  280. package/src/theme/spacingTokens.ts +114 -0
  281. package/src/theme/tokenTheme.test.tsx +402 -0
  282. package/src/theme/tokenTheme.ts +429 -0
  283. package/src/theme/tokens.css +476 -0
  284. package/src/theme/tokens.test.ts +174 -0
  285. package/src/theme/typographyTokens.test.ts +120 -0
  286. package/src/theme/typographyTokens.ts +119 -0
  287. package/dist/theme/spacing.d.ts +0 -4
  288. package/src/stories/foundations/Colors.mdx +0 -127
  289. package/src/theme/spacing.ts +0 -5
@@ -1,5 +1,5 @@
1
1
  import type { Meta } from '@storybook/react-vite'
2
- import { useState } from 'react'
2
+ import { CSSProperties, useState } from 'react'
3
3
 
4
4
  import RcSesSegmentedControl from '@/components/common/SegmentedControl'
5
5
 
@@ -91,6 +91,67 @@ export const Default = {
91
91
  ),
92
92
  } as const
93
93
 
94
+ export const TokenBindings = {
95
+ ...Default,
96
+ args: {
97
+ ...Default.args,
98
+ options: [
99
+ { id: '1', label: 'Selected' },
100
+ { id: '2', label: 'Available' },
101
+ { id: '3', label: 'Disabled', disabled: true },
102
+ ],
103
+ },
104
+ }
105
+
106
+ export const TokenOverrides = {
107
+ ...TokenBindings,
108
+ render: (args: any) => (
109
+ <div
110
+ style={
111
+ {
112
+ '--rc-color-text-link': '#008561',
113
+ '--rc-color-surface-brand-subtle': '#dcf4fc',
114
+ } as CSSProperties
115
+ }
116
+ >
117
+ <DefaultComponent {...args} />
118
+ </div>
119
+ ),
120
+ }
121
+
122
+ export const SelectedDisabled = {
123
+ ...Default,
124
+ args: {
125
+ ...Default.args,
126
+ options: [
127
+ { id: '1', label: 'Locked selection', disabled: true },
128
+ { id: '2', label: 'Unavailable', disabled: true },
129
+ ],
130
+ },
131
+ }
132
+
133
+ export const SelectedDisabledSmall = {
134
+ ...SelectedDisabled,
135
+ args: { ...SelectedDisabled.args, size: 'small' as const },
136
+ }
137
+
138
+ export const LongLabelsNarrow = {
139
+ ...Default,
140
+ args: {
141
+ ...Default.args,
142
+ options: [
143
+ { id: '1', label: 'Fizinis asmuo, veikiantis savo vardu' },
144
+ { id: '2', label: 'Juridinio asmens įgaliotas atstovas' },
145
+ { id: '3', label: 'Kitas pareiškėjas' },
146
+ ],
147
+ },
148
+ render: (args: any) => (
149
+ <div style={{ width: 295, maxWidth: '100%' }}>
150
+ <DefaultComponent {...args} />
151
+ </div>
152
+ ),
153
+ }
154
+
94
155
  export const RegularTwoOptions = {
95
156
  args: {
96
157
  options: [
@@ -4,6 +4,7 @@ import { useState } from 'react'
4
4
 
5
5
  import RcSesTab from '@/components/common/Tabs/Tab'
6
6
  import RcSesTabs from '@/components/common/Tabs/Tabs'
7
+ import TabsTokenPreview from '@/components/storybook/TabsTokenPreview'
7
8
 
8
9
  const meta: Meta<typeof RcSesTabs> = {
9
10
  title: 'Molecules/Tabs',
@@ -60,3 +61,6 @@ export const Default: Story = {
60
61
  export const WithIcons: Story = {
61
62
  render: () => <WithIconsTabsWrapper />,
62
63
  }
64
+
65
+ export const TokenBindings = { render: () => <TabsTokenPreview /> }
66
+ export const TokenOverrides = { render: () => <TabsTokenPreview overrides /> }
@@ -196,7 +196,7 @@ export const RowListWithIcons: Story = {
196
196
  title='Santuoką liudijančio įrašo užsakymas'
197
197
  description='Oficialus santuokos faktą patvirtinantis įrašas.'
198
198
  titleTone='brand'
199
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
199
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
200
200
  actions={
201
201
  <RcSesButton
202
202
  variant='link'
@@ -212,7 +212,7 @@ export const RowListWithIcons: Story = {
212
212
  title='Pažymos santuokai sudaryti užsienyje užsakymas'
213
213
  description='Pažyma, kad nėra kliūčių sudaryti santuoką užsienio valstybėje.'
214
214
  titleTone='brand'
215
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
215
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
216
216
  actions={
217
217
  <RcSesButton id={`${rowBId}-cta`} aria-labelledby={`${rowBId}-cta ${rowBId}`}>
218
218
  Užsakyti
@@ -235,7 +235,7 @@ export const RowListWithIconsAndLongText: Story = {
235
235
  title='Santuoką liudijančio įrašo, patvirtinančio santuokos sudarymo faktą užsienio valstybėje, užsakymas su visomis papildomomis pastabomis'
236
236
  description='Oficialus santuokos faktą patvirtinantis įrašas, apimantis visus civilinės metrikacijos duomenis, reikalingus tolimesnėms teisinėms procedūroms tiek Lietuvoje, tiek užsienyje. Įrašas gali būti pateikiamas įvairioms institucijoms ir naudojamas kaip oficialus patvirtinimas.'
237
237
  titleTone='brand'
238
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
238
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
239
239
  actions={
240
240
  <RcSesButton
241
241
  variant='link'
@@ -251,7 +251,7 @@ export const RowListWithIconsAndLongText: Story = {
251
251
  title='Pažymos, patvirtinančios, kad nėra kliūčių Lietuvos Respublikos piliečiui sudaryti santuoką užsienio valstybėje, užsakymas'
252
252
  description='Ši pažyma reikalinga tais atvejais, kai Lietuvos Respublikos pilietis planuoja sudaryti santuoką užsienio valstybėje ir vietos civilinės metrikacijos institucija reikalauja oficialaus patvirtinimo, kad asmens šeiminė padėtis Lietuvoje neturi kliūčių santuokos sudarymui.'
253
253
  titleTone='brand'
254
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
254
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
255
255
  actions={
256
256
  <RcSesButton id={`${rowBId}-cta`} aria-labelledby={`${rowBId}-cta ${rowBId}`}>
257
257
  Užsakyti
@@ -274,7 +274,7 @@ export const RowListWithIconsAndTwoActions: Story = {
274
274
  title='Santuoką liudijančio įrašo užsakymas'
275
275
  description='Oficialus santuokos faktą patvirtinantis įrašas.'
276
276
  titleTone='brand'
277
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
277
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
278
278
  actions={
279
279
  <>
280
280
  <RcSesButton
@@ -298,7 +298,7 @@ export const RowListWithIconsAndTwoActions: Story = {
298
298
  title='Pažymos santuokai sudaryti užsienyje užsakymas'
299
299
  description='Pažyma, kad nėra kliūčių sudaryti santuoką užsienio valstybėje.'
300
300
  titleTone='brand'
301
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
301
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
302
302
  actions={
303
303
  <>
304
304
  <RcSesButton
@@ -330,7 +330,7 @@ export const HorizontalTitleBlockWithIconAndArrow: Story = {
330
330
  title='Paslaugos pavadinimas'
331
331
  description='Trumpas paslaugos paaiškinimas'
332
332
  titleTone='brand'
333
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
333
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
334
334
  />
335
335
  </Box>
336
336
  <TrailingArrow />
@@ -389,8 +389,9 @@ export const ClickableHorizontalTitleBlockWithCardShellBase: Story = {
389
389
  <Box sx={{ alignSelf: 'center', flex: 1, minWidth: 0 }}>
390
390
  <RcSesTitleBlock
391
391
  title='Paslaugos sutartiniams klientams'
392
+ titleVariant='h5'
392
393
  description='Peržiūrėkite pagrindinius duomenis be užsakymo - dažniausias pirmas žingsnis.'
393
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
394
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
394
395
  />
395
396
  </Box>
396
397
  <TrailingArrow />
@@ -411,7 +412,7 @@ export const VerticalTitleBlockWithCardShellBase: Story = {
411
412
  orientation='vertical'
412
413
  title='DUK'
413
414
  description='Atsakymai į dažniausiai užduodamus klausimus apie paslaugas ir savitarną.'
414
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
415
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
415
416
  />
416
417
  </RcSesCardShell>
417
418
  ),
@@ -436,7 +437,7 @@ export const VerticalTitleBlock: Story = {
436
437
  orientation='vertical'
437
438
  title='DUK'
438
439
  description='Atsakymai į dažniausiai užduodamus klausimus apie paslaugas ir savitarną.'
439
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
440
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
440
441
  />
441
442
  </RcSesCardShell>
442
443
  <RcSesCardShell
@@ -449,7 +450,7 @@ export const VerticalTitleBlock: Story = {
449
450
  orientation='vertical'
450
451
  title='Kontaktai'
451
452
  description='Konsultacijos telefonu (0 5) 268 8262 darbo dienomis 8:00-17:00.'
452
- icon={<RcSesIconWithSquareBackground Icon={PhoneCallIcon} variant='soft' />}
453
+ icon={<RcSesIconWithSquareBackground Icon={PhoneCallIcon} variant='cyan' />}
453
454
  />
454
455
  </RcSesCardShell>
455
456
  <RcSesCardShell
@@ -462,7 +463,7 @@ export const VerticalTitleBlock: Story = {
462
463
  orientation='vertical'
463
464
  title='Registracija vizitui'
464
465
  description='Užduokite klausimą konsultantui pokalbių lange - atsakome darbo metu.'
465
- icon={<RcSesIconWithSquareBackground Icon={CalendarBlankIcon} variant='soft' />}
466
+ icon={<RcSesIconWithSquareBackground Icon={CalendarBlankIcon} variant='cyan' />}
466
467
  />
467
468
  </RcSesCardShell>
468
469
  </Box>
@@ -509,7 +510,6 @@ export const BodyScaleTitleInCard: Story = {
509
510
  headingLevel={3}
510
511
  title={service.title}
511
512
  titleVariant='body1'
512
- titleTone='brand'
513
513
  />
514
514
  }
515
515
  footer={
@@ -551,7 +551,7 @@ const ResponsiveTwoActionsRowList = () => (
551
551
  title='Santuoką liudijančio įrašo užsakymas'
552
552
  description='Oficialus santuokos faktą patvirtinantis įrašas.'
553
553
  titleTone='brand'
554
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
554
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
555
555
  actions={
556
556
  <>
557
557
  <RcSesButton
@@ -575,7 +575,7 @@ const ResponsiveTwoActionsRowList = () => (
575
575
  title='Pažymos santuokai sudaryti užsienyje užsakymas'
576
576
  description='Pažyma, kad nėra kliūčių sudaryti santuoką užsienio valstybėje.'
577
577
  titleTone='brand'
578
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
578
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
579
579
  actions={
580
580
  <>
581
581
  <RcSesButton
@@ -628,7 +628,7 @@ export const VerticalMobileViewport: Story = {
628
628
  orientation='vertical'
629
629
  title='DUK'
630
630
  description='Atsakymai į dažniausiai užduodamus klausimus apie paslaugas ir savitarną.'
631
- icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='soft' />}
631
+ icon={<RcSesIconWithSquareBackground Icon={InfoIcon} variant='cyan' />}
632
632
  />
633
633
  </RcSesCardShell>
634
634
  ),
@@ -1,9 +1,13 @@
1
+ import { Box, Stack, Typography } from '@mui/material'
1
2
  import { Meta, StoryContext } from '@storybook/react-vite'
2
3
 
4
+ import { BriefcaseIcon, UserIcon } from '@/assets/icons/phosphorIcons'
3
5
  import RcSesAccordion from '@/components/common/Accordion'
4
6
  import useAccordionController from '@/components/common/Accordion/hooks/useAccordionController'
5
7
  import RcSesServiceFormContainer from '@/components/layout/ServiceFormContainer/AccordionFormContainer'
6
8
  import FieldView from '@/components/storybook/FieldView'
9
+ import { colorTokens } from '@/theme/colorTokens'
10
+ import { typographyTokens } from '@/theme/typographyTokens'
7
11
 
8
12
  const meta: Meta<typeof RcSesAccordion> = {
9
13
  title: 'Organisms/Accordion',
@@ -19,6 +23,14 @@ const meta: Meta<typeof RcSesAccordion> = {
19
23
  },
20
24
  },
21
25
  tags: ['autodocs'],
26
+ parameters: {
27
+ docs: {
28
+ description: {
29
+ component:
30
+ 'Accordion v2 keeps the existing id + controller API. Optional description can be passed directly or in controller.state[id].description. Default now has the card border and radius at every breakpoint. canToggle=false always shows content and renders a non-interactive heading; collapseAll cannot close it. Use type="menu" with one shared controller (exclusive: true), menuItems and optional allLink. Mark the current link with current=true; its group opens on mount or when the current link changes. Menu uses buttons and lists, without heading/region landmarks. Menu children, if supplied, must be list items (li), allowing composition with future shared Nav-item components. Disabled is Default-only.',
31
+ },
32
+ },
33
+ },
22
34
  }
23
35
 
24
36
  export default meta
@@ -91,3 +103,123 @@ export const Main = {
91
103
  },
92
104
  },
93
105
  }
106
+
107
+ function DefaultV2Demo() {
108
+ const controller = useAccordionController({
109
+ initialState: {
110
+ closed: {
111
+ title: 'Sekcijos pavadinimas',
112
+ description: 'Trumpas sekcijos paaiškinimas',
113
+ expanded: false,
114
+ state: 'active',
115
+ },
116
+ opened: {
117
+ title: 'Atidaryta sekcija',
118
+ description: 'Trumpas sekcijos paaiškinimas',
119
+ expanded: true,
120
+ state: 'active',
121
+ },
122
+ disabled: {
123
+ title: 'Neaktyvi sekcija',
124
+ description: 'Sekcija dar neprieinama',
125
+ disabled: true,
126
+ expanded: false,
127
+ state: 'pending',
128
+ },
129
+ pinned: {
130
+ title: 'Visada atidaryta sekcija',
131
+ canToggle: false,
132
+ expanded: false,
133
+ state: 'active',
134
+ },
135
+ long: {
136
+ title:
137
+ 'Labai ilgas sekcijos pavadinimas, kuris mažame ekrane turi persikelti į kitą eilutę ir likti visas matomas',
138
+ expanded: false,
139
+ state: 'active',
140
+ },
141
+ },
142
+ })
143
+ return (
144
+ <Box sx={{ maxWidth: 840, mx: 'auto', p: 1 }}>
145
+ {Object.keys(controller.state).map((id) => (
146
+ <RcSesAccordion key={id} id={id} controller={controller}>
147
+ <Typography
148
+ sx={{
149
+ color: colorTokens['text-muted'],
150
+ fontFamily: typographyTokens['font-family'],
151
+ fontSize: typographyTokens['font-size-body-small'],
152
+ fontStyle: 'normal',
153
+ fontWeight: typographyTokens['font-weight-body-small'],
154
+ lineHeight: typographyTokens['line-height-body-small'],
155
+ letterSpacing: typographyTokens['letter-spacing-body-small'],
156
+ }}
157
+ >
158
+ Sekcijos turinys (Body slot) – formos laukai, sąrašai
159
+ </Typography>
160
+ </RcSesAccordion>
161
+ ))}
162
+ </Box>
163
+ )
164
+ }
165
+
166
+ export const DefaultV2 = { render: () => <DefaultV2Demo /> }
167
+ export const DefaultMobile = { render: () => <DefaultV2Demo />, tags: ['viewport-375'] }
168
+
169
+ function MenuDemo({
170
+ current = false,
171
+ icons = true,
172
+ }: {
173
+ current?: boolean
174
+ icons?: boolean
175
+ }) {
176
+ const controller = useAccordionController({
177
+ exclusive: true,
178
+ initialState: {
179
+ services: { title: 'Įmonės ir organizacijos', expanded: !current, state: 'active' },
180
+ people: { title: 'Gyventojai', expanded: false, state: 'active' },
181
+ },
182
+ })
183
+ return (
184
+ <Stack component='nav' aria-label='Paslaugų meniu' sx={{ maxWidth: 375, mx: 'auto' }}>
185
+ <RcSesAccordion
186
+ type='menu'
187
+ id='services'
188
+ controller={controller}
189
+ Icon={icons ? BriefcaseIcon : undefined}
190
+ menuItems={[
191
+ { label: 'Nuorodos pavadinimas', href: '#first' },
192
+ {
193
+ label:
194
+ 'Juridinių asmenų registro išrašo ir kitų reikalingų dokumentų užsakymas',
195
+ href: '#second',
196
+ },
197
+ { label: 'Nuorodos pavadinimas', href: '#third' },
198
+ { label: 'Nuorodos pavadinimas', href: '#fourth' },
199
+ ]}
200
+ allLink={{ label: 'Visos paslaugos', href: '#all' }}
201
+ />
202
+ <RcSesAccordion
203
+ type='menu'
204
+ id='people'
205
+ controller={controller}
206
+ Icon={icons ? UserIcon : undefined}
207
+ menuItems={[
208
+ { label: 'Mano duomenys', href: '#personal', current },
209
+ { label: 'Pažymų užsakymas', href: '#certificates' },
210
+ ]}
211
+ allLink={{ label: 'Visos gyventojų paslaugos', href: '#people' }}
212
+ />
213
+ </Stack>
214
+ )
215
+ }
216
+
217
+ export const Menu = { render: () => <MenuDemo />, tags: ['viewport-375'] }
218
+ export const MenuCurrentPage = {
219
+ render: () => <MenuDemo current />,
220
+ tags: ['viewport-375'],
221
+ }
222
+ export const MenuWithoutIcons = {
223
+ render: () => <MenuDemo icons={false} />,
224
+ tags: ['viewport-375'],
225
+ }
@@ -11,11 +11,12 @@ import RcSesSwitch from '@/components/common/Switch'
11
11
  import RcSesSelect from '@/components/form/inputs/Select'
12
12
  import RcSesSimpleCheckbox from '@/components/form/inputs/SimpleCheckbox'
13
13
  import palette from '@/theme/palette'
14
+ import { typographyTokens } from '@/theme/typographyTokens'
14
15
 
15
16
  const ACTION_BUTTON_SX = {
16
17
  height: 'auto',
17
18
  padding: '0.5rem 0.25rem',
18
- fontWeight: 500,
19
+ fontWeight: typographyTokens['font-weight-button-regular'],
19
20
  lineHeight: '1.25rem',
20
21
  color: palette.primary[700],
21
22
  } as const
@@ -35,7 +36,10 @@ const meta = {
35
36
  args: {
36
37
  content: (
37
38
  <Stack sx={{ gap: '0.5rem' }}>
38
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
39
+ <Typography
40
+ variant='body2'
41
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
42
+ >
39
43
  Įrašo pavadinimas
40
44
  </Typography>
41
45
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -62,7 +66,7 @@ export const Main: Story = {
62
66
  code: `<AdvancedListItemShell
63
67
  content={
64
68
  <Stack sx={{ gap: '0.5rem' }}>
65
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
69
+ <Typography variant='body2' sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}>
66
70
  Įrašo pavadinimas
67
71
  </Typography>
68
72
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -89,7 +93,10 @@ export const Selected: Story = {
89
93
  state='selected'
90
94
  content={
91
95
  <Stack sx={{ gap: '0.5rem' }}>
92
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
96
+ <Typography
97
+ variant='body2'
98
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
99
+ >
93
100
  Įrašo pavadinimas
94
101
  </Typography>
95
102
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -116,7 +123,10 @@ export const Disabled: Story = {
116
123
  state='disabled'
117
124
  content={
118
125
  <Stack sx={{ gap: '0.5rem' }}>
119
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
126
+ <Typography
127
+ variant='body2'
128
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
129
+ >
120
130
  Įrašo pavadinimas
121
131
  </Typography>
122
132
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -143,7 +153,10 @@ export const ErrorState: Story = {
143
153
  state='error'
144
154
  content={
145
155
  <Stack sx={{ gap: '0.5rem' }}>
146
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
156
+ <Typography
157
+ variant='body2'
158
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
159
+ >
147
160
  Įrašo pavadinimas
148
161
  </Typography>
149
162
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -191,7 +204,10 @@ export const WithLeadingAndTrailing: Story = {
191
204
  code: `<AdvancedListItemShell
192
205
  content={
193
206
  <Stack sx={{ gap: '0.5rem' }}>
194
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
207
+ <Typography
208
+ variant='body2'
209
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
210
+ >
195
211
  Įrašo pavadinimas
196
212
  </Typography>
197
213
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -252,7 +268,10 @@ export const RowContainer: Story = {
252
268
  container='row'
253
269
  content={
254
270
  <Stack sx={{ gap: '0.5rem' }}>
255
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
271
+ <Typography
272
+ variant='body2'
273
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
274
+ >
256
275
  Įrašo pavadinimas
257
276
  </Typography>
258
277
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -315,7 +334,10 @@ export const RowContainerSelected: Story = {
315
334
  state='selected'
316
335
  content={
317
336
  <Stack sx={{ gap: '0.5rem' }}>
318
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
337
+ <Typography
338
+ variant='body2'
339
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
340
+ >
319
341
  Įrašo pavadinimas
320
342
  </Typography>
321
343
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -378,7 +400,10 @@ export const RowContainerError: Story = {
378
400
  state='error'
379
401
  content={
380
402
  <Stack sx={{ gap: '0.5rem' }}>
381
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
403
+ <Typography
404
+ variant='body2'
405
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
406
+ >
382
407
  Įrašo pavadinimas
383
408
  </Typography>
384
409
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -460,7 +485,10 @@ export const RowContainerExpandable: Story = {
460
485
  container='row'
461
486
  content={
462
487
  <Stack sx={{ gap: '0.5rem' }}>
463
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
488
+ <Typography
489
+ variant='body2'
490
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
491
+ >
464
492
  Įrašo pavadinimas
465
493
  </Typography>
466
494
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -527,7 +555,10 @@ export const Expandable: Story = {
527
555
  <AdvancedListItemShell
528
556
  content={
529
557
  <Stack sx={{ gap: '0.5rem' }}>
530
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
558
+ <Typography
559
+ variant='body2'
560
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
561
+ >
531
562
  Įrašo pavadinimas
532
563
  </Typography>
533
564
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -578,7 +609,10 @@ export const ExpandedOpen: Story = {
578
609
  code: `<AdvancedListItemShell
579
610
  content={
580
611
  <Stack sx={{ gap: '0.5rem' }}>
581
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
612
+ <Typography
613
+ variant='body2'
614
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
615
+ >
582
616
  Įrašo pavadinimas
583
617
  </Typography>
584
618
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -665,7 +699,10 @@ export const RadioSelectionWithActions: Story = {
665
699
  }
666
700
  content={
667
701
  <Stack sx={{ gap: '0.4375rem' }}>
668
- <Typography variant='body1' sx={{ fontWeight: 600 }}>
702
+ <Typography
703
+ variant='body1'
704
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
705
+ >
669
706
  UAB Pavyzdys
670
707
  </Typography>
671
708
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>
@@ -713,7 +750,7 @@ export const ExpandableWithRadioAndSwitch: Story = {
713
750
  <Typography
714
751
  sx={{
715
752
  fontSize: '1rem',
716
- fontWeight: 500,
753
+ fontWeight: typographyTokens['font-weight-heading-h4'],
717
754
  lineHeight: '1.375rem',
718
755
  }}
719
756
  >
@@ -726,7 +763,7 @@ export const ExpandableWithRadioAndSwitch: Story = {
726
763
  sx={{
727
764
  color: palette.grey[600],
728
765
  fontSize: '0.8125rem',
729
- fontWeight: 400,
766
+ fontWeight: typographyTokens['font-weight-body-caption'],
730
767
  lineHeight: '1.125rem',
731
768
  }}
732
769
  >
@@ -755,7 +792,7 @@ export const ExpandableWithRadioAndSwitch: Story = {
755
792
  sx={{
756
793
  color: palette.grey[900],
757
794
  fontSize: '0.875rem',
758
- fontWeight: 600,
795
+ fontWeight: typographyTokens['font-weight-semibold'],
759
796
  lineHeight: '1.25rem',
760
797
  }}
761
798
  >
@@ -765,7 +802,7 @@ export const ExpandableWithRadioAndSwitch: Story = {
765
802
  sx={{
766
803
  color: palette.grey[600],
767
804
  fontSize: '0.875rem',
768
- fontWeight: 400,
805
+ fontWeight: typographyTokens['font-weight-body-small'],
769
806
  lineHeight: '1.25rem',
770
807
  }}
771
808
  >
@@ -809,7 +846,7 @@ const [sendCopy, setSendCopy] = useState(false)
809
846
  <Typography
810
847
  sx={{
811
848
  fontSize: '1rem',
812
- fontWeight: 500,
849
+ fontWeight: typographyTokens['font-weight-heading-h4'],
813
850
  lineHeight: '1.375rem',
814
851
  }}
815
852
  >
@@ -822,7 +859,7 @@ const [sendCopy, setSendCopy] = useState(false)
822
859
  sx={{
823
860
  color: palette.grey[600],
824
861
  fontSize: '0.8125rem',
825
- fontWeight: 400,
862
+ fontWeight: typographyTokens['font-weight-body-caption'],
826
863
  lineHeight: '1.125rem',
827
864
  }}
828
865
  >
@@ -843,7 +880,7 @@ const [sendCopy, setSendCopy] = useState(false)
843
880
  sx={{
844
881
  color: palette.grey[900],
845
882
  fontSize: '0.875rem',
846
- fontWeight: 600,
883
+ fontWeight: typographyTokens['font-weight-semibold'],
847
884
  lineHeight: '1.25rem',
848
885
  }}
849
886
  >
@@ -853,7 +890,7 @@ const [sendCopy, setSendCopy] = useState(false)
853
890
  sx={{
854
891
  color: palette.grey[600],
855
892
  fontSize: '0.875rem',
856
- fontWeight: 400,
893
+ fontWeight: typographyTokens['font-weight-body-small'],
857
894
  lineHeight: '1.25rem',
858
895
  }}
859
896
  >
@@ -919,7 +956,10 @@ const { control } = useForm<{ documentType: string }>({
919
956
  <AdvancedListItemShell
920
957
  content={
921
958
  <Stack sx={{ gap: '0.5rem' }}>
922
- <Typography variant='body2' sx={{ fontWeight: 600 }}>
959
+ <Typography
960
+ variant='body2'
961
+ sx={{ fontWeight: typographyTokens['font-weight-semibold'] }}
962
+ >
923
963
  Įrašo pavadinimas
924
964
  </Typography>
925
965
  <Typography variant='body2' sx={{ color: palette.grey[600] }}>