@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
@@ -12,12 +12,16 @@ import { useTranslation } from 'react-i18next'
12
12
  import { CloseIcon } from '@/assets/icons/phosphorIcons'
13
13
  import usePrefersReducedMotion from '@/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion'
14
14
  import RcSesButton from '@/components/common/Button'
15
+ import { backdropTokens } from '@/theme/backdropTokens'
16
+ import { borderTokens } from '@/theme/borderTokens'
17
+ import { colorTokens } from '@/theme/colorTokens'
18
+ import { spacingRoleBasedTokens } from '@/theme/spacingRoleBasedTokens'
19
+ import { typographyTokens } from '@/theme/typographyTokens'
15
20
 
16
21
  import { RcSesDrawerProps, RcSesDrawerTestIds } from './Drawer.types'
17
22
 
18
23
  const DRAWER_WIDTH = 440
19
24
  const ANIMATION_DURATION = 250
20
- const BACKDROP_OPACITY = 0.5
21
25
 
22
26
  /**
23
27
  * SlideLeftTransition - Wrapper for Slide component with direction='left'
@@ -76,7 +80,7 @@ const RcSesDrawer = ({
76
80
  },
77
81
  backdrop: {
78
82
  sx: {
79
- backgroundColor: `rgba(0, 0, 0, ${BACKDROP_OPACITY})`,
83
+ backgroundColor: backdropTokens['backdrop-dark'],
80
84
  },
81
85
  },
82
86
  container: {
@@ -99,7 +103,7 @@ const RcSesDrawer = ({
99
103
  minHeight: '100vh',
100
104
  borderRadius: 0,
101
105
  boxShadow: '-4px 0 24px rgba(0, 0, 0, 0.18)',
102
- backgroundColor: (theme) => theme.palette.common.white,
106
+ backgroundColor: colorTokens['surface-base'],
103
107
  },
104
108
  },
105
109
  }}
@@ -120,20 +124,31 @@ const RcSesDrawer = ({
120
124
  display: 'flex',
121
125
  alignItems: 'center',
122
126
  justifyContent: 'space-between',
123
- padding: '1.25rem 1rem 1rem 1.5rem',
124
- borderBottom: (theme) => `1px solid ${theme.palette.grey[200]}`,
127
+ padding: `${spacingRoleBasedTokens['space-20']} ${spacingRoleBasedTokens['space-16']} ${spacingRoleBasedTokens['space-16']} ${spacingRoleBasedTokens['space-24']}`,
128
+ borderBottom: `${borderTokens['stroke-1']} solid ${colorTokens['border-subtle']}`,
129
+ backgroundColor: colorTokens['surface-base'],
125
130
  flexShrink: 0,
126
- gap: '1rem',
131
+ gap: spacingRoleBasedTokens['space-8'],
127
132
  }}
128
133
  >
129
- <Typography id={headerId} variant='h6'>
134
+ <Typography
135
+ id={headerId}
136
+ component='h2'
137
+ sx={{
138
+ fontSize: typographyTokens['font-size-heading-h5'],
139
+ fontStyle: 'normal',
140
+ fontWeight: typographyTokens['font-weight-heading-h5'],
141
+ lineHeight: typographyTokens['line-height-heading-h5'],
142
+ color: colorTokens['text-default'],
143
+ }}
144
+ >
130
145
  {title}
131
146
  </Typography>
132
147
  <RcSesButton
133
148
  variant='link'
134
149
  onClick={handleClose}
135
150
  data-testid={testIds?.closeButton}
136
- sx={{ flexShrink: 0, width: '2.75rem', height: '2.75rem' }}
151
+ sx={{ flexShrink: 0, width: '44px', height: '44px' }}
137
152
  aria-label={t('closeDrawer')}
138
153
  >
139
154
  <CloseIcon size={24} />
@@ -145,8 +160,8 @@ const RcSesDrawer = ({
145
160
  sx={{
146
161
  flex: 1,
147
162
  overflowY: 'auto',
148
- padding: '1rem 1.5rem',
149
- backgroundColor: (theme) => theme.palette.grey[50],
163
+ padding: `${spacingRoleBasedTokens['space-12']} ${spacingRoleBasedTokens['space-24']} ${spacingRoleBasedTokens['space-16']}`,
164
+ backgroundColor: colorTokens['surface-sunken'],
150
165
  }}
151
166
  >
152
167
  {children}
@@ -156,8 +171,9 @@ const RcSesDrawer = ({
156
171
  <Box
157
172
  data-testid={testIds?.footer}
158
173
  sx={{
159
- padding: '1rem 1.5rem',
160
- borderTop: (theme) => `1px solid ${theme.palette.grey[200]}`,
174
+ padding: `${spacingRoleBasedTokens['space-16']} ${spacingRoleBasedTokens['space-24']}`,
175
+ borderTop: `${borderTokens['stroke-1']} solid ${colorTokens['border-subtle']}`,
176
+ backgroundColor: colorTokens['surface-base'],
161
177
  flexShrink: 0,
162
178
  display: 'flex',
163
179
  alignItems: 'center',
@@ -166,8 +182,7 @@ const RcSesDrawer = ({
166
182
  >
167
183
  {secondaryActionLabel && (
168
184
  <RcSesButton
169
- variant='outlined'
170
- color='grey'
185
+ variant='link'
171
186
  onClick={onSecondaryAction}
172
187
  disabled={secondaryActionDisabled}
173
188
  >
@@ -8,7 +8,9 @@ import {
8
8
  QuestionFillIcon,
9
9
  WarningFillIcon,
10
10
  } from '@/assets/icons/phosphorIcons'
11
- import palette from '@/theme/palette'
11
+ import { colorTokens } from '@/theme/colorTokens'
12
+ import { spacingRoleBasedTokens } from '@/theme/spacingRoleBasedTokens'
13
+ import { typographyTokens } from '@/theme/typographyTokens'
12
14
 
13
15
  import RcSesDialog, { RcSesDialogProps } from '../Dialog'
14
16
 
@@ -16,22 +18,40 @@ export type ModalVariant = 'destructive' | 'confirm' | 'success' | 'info'
16
18
 
17
19
  const VARIANT_CONFIG: Record<ModalVariant, { icon: ReactNode }> = {
18
20
  destructive: {
19
- icon: <WarningFillIcon size={36} weight='regular' fillColor={palette.error['600']} />,
21
+ icon: (
22
+ <WarningFillIcon
23
+ size={36}
24
+ weight='regular'
25
+ fillColor={colorTokens['status-error-icon']}
26
+ />
27
+ ),
20
28
  },
21
29
  confirm: {
22
- icon: <QuestionFillIcon size={36} weight='regular' fillColor={palette.grey['700']} />,
30
+ icon: (
31
+ <QuestionFillIcon
32
+ size={36}
33
+ weight='regular'
34
+ fillColor={colorTokens['status-info-icon']}
35
+ />
36
+ ),
23
37
  },
24
38
  success: {
25
39
  icon: (
26
40
  <CheckCircleFillIcon
27
41
  size={36}
28
42
  weight='regular'
29
- fillColor={palette.secondary['600']}
43
+ fillColor={colorTokens['status-success-icon']}
30
44
  />
31
45
  ),
32
46
  },
33
47
  info: {
34
- icon: <InfoFillIcon size={36} weight='regular' fillColor={palette.primary['500']} />,
48
+ icon: (
49
+ <InfoFillIcon
50
+ size={36}
51
+ weight='regular'
52
+ fillColor={colorTokens['status-info-icon']}
53
+ />
54
+ ),
35
55
  },
36
56
  }
37
57
 
@@ -81,10 +101,19 @@ function RcSesModal({
81
101
  display: 'flex',
82
102
  flexDirection: 'column',
83
103
  alignItems: 'flex-start',
84
- gap: 8,
104
+ gap: spacingRoleBasedTokens['space-12'],
85
105
  }}
86
106
  >
87
- <div aria-hidden='true'>{config.icon}</div>
107
+ <div
108
+ aria-hidden='true'
109
+ style={{
110
+ display: 'flex',
111
+ width: spacingRoleBasedTokens['space-36'],
112
+ height: spacingRoleBasedTokens['space-36'],
113
+ }}
114
+ >
115
+ {config.icon}
116
+ </div>
88
117
  {title}
89
118
  </div>
90
119
  ) : (
@@ -112,7 +141,16 @@ function RcSesModal({
112
141
 
113
142
  return (
114
143
  <RcSesDialog dialogTitle={titleContent} actions={actions} {...props}>
115
- <Typography variant='body1'>{message}</Typography>
144
+ <Typography
145
+ variant='body1'
146
+ sx={{
147
+ color: colorTokens['text-default'],
148
+ fontSize: typographyTokens['font-size-body-regular'],
149
+ lineHeight: typographyTokens['line-height-body-regular'],
150
+ }}
151
+ >
152
+ {message}
153
+ </Typography>
116
154
  </RcSesDialog>
117
155
  )
118
156
  }
@@ -0,0 +1,68 @@
1
+ import { Box, Stack } from '@mui/material'
2
+ import type { CSSProperties } from 'react'
3
+ import { useForm } from 'react-hook-form'
4
+
5
+ import FileDropzone from '@/components/form/inputs/FileDropzone'
6
+ import FileUpload from '@/components/form/inputs/FileUpload'
7
+
8
+ export default function FileUploadTokenPreview({
9
+ dropzone = false,
10
+ overrides = false,
11
+ }: {
12
+ dropzone?: boolean
13
+ overrides?: boolean
14
+ }) {
15
+ const { control } = useForm({
16
+ defaultValues: {
17
+ empty: null,
18
+ disabled: null,
19
+ error: null,
20
+ selected: [
21
+ new File(['Example document'], 'document.pdf', { type: 'application/pdf' }),
22
+ ],
23
+ },
24
+ })
25
+ const Component = dropzone ? FileDropzone : FileUpload
26
+ return (
27
+ <Stack
28
+ spacing={2}
29
+ sx={{ maxWidth: '700px' }}
30
+ style={
31
+ overrides
32
+ ? ({
33
+ '--rc-color-surface-base': '#fffaf0',
34
+ '--rc-color-border-default': '#a56835',
35
+ '--rc-color-border-focus': '#8b4513',
36
+ '--rc-color-status-error-border': '#a02040',
37
+ '--rc-radius-input': '12px',
38
+ } as CSSProperties)
39
+ : undefined
40
+ }
41
+ >
42
+ {(
43
+ [
44
+ 'empty',
45
+ 'disabled',
46
+ 'error',
47
+ ...(dropzone ? (['selected'] as const) : []),
48
+ ] as const
49
+ ).map((name) => (
50
+ <Box key={name}>
51
+ <Component
52
+ id={`file-token-${name}`}
53
+ name={name}
54
+ control={control}
55
+ label={`Document / ${name}`}
56
+ disabled={name === 'disabled'}
57
+ errors={
58
+ name === 'error'
59
+ ? { type: 'required', message: 'Upload a document' }
60
+ : undefined
61
+ }
62
+ slotProps={{ wrapper: { labelOnTop: true, description: 'PDF, JPG or PNG' } }}
63
+ />
64
+ </Box>
65
+ ))}
66
+ </Stack>
67
+ )
68
+ }
@@ -0,0 +1,58 @@
1
+ import { Box } from '@mui/material'
2
+ import type { CSSProperties } from 'react'
3
+ import { useState } from 'react'
4
+
5
+ import Tab from '@/components/common/Tabs/Tab'
6
+ import TabPanel from '@/components/common/Tabs/TabPanel'
7
+ import Tabs from '@/components/common/Tabs/Tabs'
8
+ import TabsWrapper from '@/components/common/Tabs/TabsWrapper'
9
+
10
+ export default function TabsTokenPreview({ overrides = false }: { overrides?: boolean }) {
11
+ const [value, setValue] = useState(0)
12
+ return (
13
+ <Box
14
+ sx={{ maxWidth: '720px' }}
15
+ style={
16
+ overrides
17
+ ? ({
18
+ '--rc-color-surface-base': '#fffaf0',
19
+ '--rc-color-surface-muted': '#f2e9de',
20
+ '--rc-color-surface-sunken': '#f8f2ea',
21
+ '--rc-color-border-default': '#a56835',
22
+ '--rc-color-border-subtle': '#c9ab8a',
23
+ '--rc-color-text-default': '#542d16',
24
+ '--rc-color-text-disabled': '#a38c7c',
25
+ '--rc-radius-6': '12px',
26
+ } as CSSProperties)
27
+ : undefined
28
+ }
29
+ >
30
+ <TabsWrapper heading='Orders'>
31
+ <Tabs
32
+ value={value}
33
+ onChange={(_, next) => setValue(next)}
34
+ aria-label='Order status'
35
+ variant='scrollable'
36
+ scrollButtons='auto'
37
+ >
38
+ {['All (17)', 'Drafts (3)', 'Unavailable (0)', 'Completed (14)'].map(
39
+ (label, index) => (
40
+ <Tab
41
+ key={label}
42
+ id={`rc-ses-tab--${index}`}
43
+ aria-controls={`rc-ses-tab-panel-${index}`}
44
+ label={label}
45
+ disabled={index === 2}
46
+ />
47
+ ),
48
+ )}
49
+ </Tabs>
50
+ {[0, 1, 2, 3].map((index) => (
51
+ <TabPanel key={index} activeTab={value} index={index}>
52
+ <Box sx={{ p: 3 }}>Content for tab {index + 1}</Box>
53
+ </TabPanel>
54
+ ))}
55
+ </TabsWrapper>
56
+ </Box>
57
+ )
58
+ }
@@ -0,0 +1,347 @@
1
+ import { Box, Typography, useMediaQuery } from '@mui/material'
2
+ import type { ReactNode } from 'react'
3
+
4
+ import { borderTokens } from '@/theme/borderTokens'
5
+ import { colorTokens } from '@/theme/colorTokens'
6
+ // The preview already loads tokens.css; this reads its source to show the token chains.
7
+ import tokensCss from '@/theme/tokens.css?raw'
8
+ import { typographyTokens } from '@/theme/typographyTokens'
9
+
10
+ export const breakpoints = [
11
+ { key: 'xs', min: 0 },
12
+ { key: 'sm', min: 600 },
13
+ { key: 'md', min: 900 },
14
+ { key: 'lg', min: 1200 },
15
+ ] as const
16
+ export type Breakpoint = (typeof breakpoints)[number]['key']
17
+
18
+ type Declarations = Record<string, Partial<Record<Breakpoint, string>>>
19
+
20
+ // tokens.css is the source of truth: one base :root plus min-width overrides.
21
+ const declarations: Declarations = (() => {
22
+ const out: Declarations = {}
23
+ const [base, ...media] = tokensCss.split('@media')
24
+ const read = (chunk: string, bp: Breakpoint) =>
25
+ Array.from(chunk.matchAll(/--rc-([\w-]+):\s*([^;]+);/g)).forEach(
26
+ ([, name, value]) => {
27
+ out[name] = { ...out[name], [bp]: value.trim() }
28
+ },
29
+ )
30
+ read(base, 'xs')
31
+ media.forEach((chunk) => {
32
+ const min = Number(/min-width:\s*(\d+)px/.exec(chunk)?.[1])
33
+ const bp = breakpoints.find((b) => b.min === min)?.key
34
+ if (bp) read(chunk, bp)
35
+ })
36
+ return out
37
+ })()
38
+
39
+ /** Strips the `var(--rc-…)` wrapper from a token map value. */
40
+ export const cssName = (ref: string) => /var\(--rc-([\w-]+)\)/.exec(ref)?.[1] ?? ref
41
+
42
+ export function rawAt(name: string, bp: Breakpoint = 'xs') {
43
+ const index = breakpoints.findIndex((b) => b.key === bp)
44
+ for (let i = index; i >= 0; i -= 1) {
45
+ const value = declarations[name]?.[breakpoints[i].key]
46
+ if (value !== undefined) return value
47
+ }
48
+ return undefined
49
+ }
50
+
51
+ const refOf = (value?: string) =>
52
+ value ? /^var\(--rc-([\w-]+)\)$/.exec(value)?.[1] : undefined
53
+
54
+ /** Token names a role passes through, excluding itself. */
55
+ export function chainOf(name: string, bp: Breakpoint = 'xs') {
56
+ const chain: string[] = []
57
+ let ref = refOf(rawAt(name, bp))
58
+ while (ref) {
59
+ chain.push(ref)
60
+ ref = refOf(rawAt(ref, bp))
61
+ }
62
+ return chain
63
+ }
64
+
65
+ export function literalOf(name: string, bp: Breakpoint = 'xs') {
66
+ const chain = chainOf(name, bp)
67
+ return rawAt(chain.at(-1) ?? name, bp) ?? ''
68
+ }
69
+
70
+ export const isResponsive = (name: string) =>
71
+ breakpoints.some((b) => b.key !== 'xs' && literalOf(name, b.key) !== literalOf(name))
72
+
73
+ export function toPx(value: string) {
74
+ if (value.endsWith('rem')) return `${parseFloat(value) * 16}px`
75
+ return value
76
+ }
77
+
78
+ export function parseHex(value: string) {
79
+ const match = /^#([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})?$/i.exec(value)
80
+ if (!match) return undefined
81
+ const [r, g, b] = match.slice(1, 4).map((n) => parseInt(n, 16))
82
+ const alpha = match[4] ? parseInt(match[4], 16) / 255 : 1
83
+ const hex = `#${match.slice(1, 4).join('')}`.toUpperCase()
84
+ const luminance = [r, g, b]
85
+ .map((n) => n / 255)
86
+ .map((c) => (c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4))
87
+ .reduce((sum, c, i) => sum + c * [0.2126, 0.7152, 0.0722][i], 0)
88
+ // Picks the label color with the higher contrast: white or neutrals-900.
89
+ const onWhite = 1.05 / (luminance + 0.05)
90
+ const onInk = (luminance + 0.05) / 0.0704
91
+ return { hex, alpha, dark: alpha > 0.5 && onWhite > onInk }
92
+ }
93
+
94
+ export function useBreakpoint(): Breakpoint {
95
+ const sm = useMediaQuery('(min-width:600px)')
96
+ const md = useMediaQuery('(min-width:900px)')
97
+ const lg = useMediaQuery('(min-width:1200px)')
98
+ if (lg) return 'lg'
99
+ if (md) return 'md'
100
+ if (sm) return 'sm'
101
+ return 'xs'
102
+ }
103
+
104
+ export const mono = 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace'
105
+ export const hairline = `${borderTokens['border-default']} solid ${colorTokens['border-subtle']}`
106
+
107
+ export function Code({ children, muted }: { children: ReactNode; muted?: boolean }) {
108
+ return (
109
+ <Box
110
+ component='code'
111
+ sx={{
112
+ color: muted ? colorTokens['text-secondary'] : colorTokens['text-default'],
113
+ fontFamily: mono,
114
+ fontSize: '0.8125rem',
115
+ overflowWrap: 'anywhere',
116
+ }}
117
+ >
118
+ {children}
119
+ </Box>
120
+ )
121
+ }
122
+
123
+ export function Pill({ children }: { children: ReactNode }) {
124
+ return (
125
+ <Box
126
+ component='span'
127
+ sx={{
128
+ backgroundColor: colorTokens['surface-brand-subtle'],
129
+ borderRadius: borderTokens['radius-chip'],
130
+ color: colorTokens['text-link'],
131
+ display: 'inline-block',
132
+ fontFamily: mono,
133
+ fontSize: '0.75rem',
134
+ px: 1,
135
+ py: 0.25,
136
+ whiteSpace: 'nowrap',
137
+ }}
138
+ >
139
+ {children}
140
+ </Box>
141
+ )
142
+ }
143
+
144
+ /** `role → primitive` path, the part designers map back to Figma variables. */
145
+ export function Chain({ name, bp }: { name: string; bp?: Breakpoint }) {
146
+ const chain = chainOf(name, bp)
147
+ if (!chain.length) return <Code muted>{literalOf(name, bp)}</Code>
148
+ return (
149
+ <Box sx={{ alignItems: 'baseline', display: 'flex', flexWrap: 'wrap', gap: 0.75 }}>
150
+ {chain.map((step) => (
151
+ <Box key={step} component='span' sx={{ display: 'inline-flex', gap: 0.75 }}>
152
+ <Box component='span' sx={{ color: colorTokens['text-muted'] }}>
153
+ →
154
+ </Box>
155
+ <Code muted>{step}</Code>
156
+ </Box>
157
+ ))}
158
+ </Box>
159
+ )
160
+ }
161
+
162
+ export function DocPage({
163
+ title,
164
+ lead,
165
+ children,
166
+ }: {
167
+ title: string
168
+ lead: string
169
+ children: ReactNode
170
+ }) {
171
+ return (
172
+ <Box sx={{ color: colorTokens['text-default'], maxWidth: 1200, pb: 6 }}>
173
+ <Typography variant='overline' sx={{ color: colorTokens['text-secondary'] }}>
174
+ Foundations
175
+ </Typography>
176
+ <Typography variant='h1' sx={{ mb: 1 }}>
177
+ {title}
178
+ </Typography>
179
+ <Typography sx={{ color: colorTokens['text-secondary'], maxWidth: 680, mb: 5 }}>
180
+ {lead}
181
+ </Typography>
182
+ <Box sx={{ display: 'flex', flexDirection: 'column', gap: 6 }}>{children}</Box>
183
+ </Box>
184
+ )
185
+ }
186
+
187
+ export function Section({
188
+ title,
189
+ lead,
190
+ children,
191
+ }: {
192
+ title: string
193
+ lead?: string
194
+ children: ReactNode
195
+ }) {
196
+ return (
197
+ <Box component='section'>
198
+ <Typography variant='h3' component='h2' sx={{ mb: 0.5 }}>
199
+ {title}
200
+ </Typography>
201
+ {lead && (
202
+ <Typography variant='body2' sx={{ color: colorTokens['text-secondary'], mb: 2 }}>
203
+ {lead}
204
+ </Typography>
205
+ )}
206
+ {children}
207
+ </Box>
208
+ )
209
+ }
210
+
211
+ /** Bordered list; each child row shares the grid template. */
212
+ export function Table({
213
+ columns,
214
+ head,
215
+ children,
216
+ }: {
217
+ columns: string
218
+ head?: ReactNode[]
219
+ children: ReactNode
220
+ }) {
221
+ return (
222
+ <Box
223
+ sx={{
224
+ border: hairline,
225
+ borderRadius: borderTokens['radius-12'],
226
+ overflow: 'hidden',
227
+ '& > [data-row]': {
228
+ alignItems: 'center',
229
+ columnGap: 2,
230
+ display: 'grid',
231
+ gridTemplateColumns: columns,
232
+ px: 2,
233
+ py: 1.25,
234
+ },
235
+ '& > [data-row] + [data-row]': { borderTop: hairline },
236
+ }}
237
+ >
238
+ {head && (
239
+ <Box
240
+ data-row
241
+ sx={{
242
+ backgroundColor: colorTokens['surface-sunken'],
243
+ color: colorTokens['text-secondary'],
244
+ fontSize: '0.75rem',
245
+ fontWeight: typographyTokens['font-weight-semibold'],
246
+ letterSpacing: '0.04em',
247
+ textTransform: 'uppercase',
248
+ }}
249
+ >
250
+ {head.map((cell, index) => (
251
+ // eslint-disable-next-line react/no-array-index-key
252
+ <Box key={index}>{cell}</Box>
253
+ ))}
254
+ </Box>
255
+ )}
256
+ {children}
257
+ </Box>
258
+ )
259
+ }
260
+
261
+ export function Row({ children }: { children: ReactNode }) {
262
+ return <Box data-row>{children}</Box>
263
+ }
264
+
265
+ /** Values per breakpoint; repeats are dimmed so the change points stand out. */
266
+ export function ResponsiveValues({
267
+ name,
268
+ format = toPx,
269
+ }: {
270
+ name: string
271
+ format?: (value: string) => string
272
+ }) {
273
+ const current = useBreakpoint()
274
+ const values = breakpoints.map((bp) => format(literalOf(name, bp.key)))
275
+ return (
276
+ <Box
277
+ sx={{
278
+ display: 'grid',
279
+ gap: 1,
280
+ gridTemplateColumns: 'repeat(4, minmax(52px, 1fr))',
281
+ }}
282
+ >
283
+ {breakpoints.map((bp, index) => {
284
+ const value = values[index]
285
+ const changed = index === 0 || value !== values[index - 1]
286
+ return (
287
+ <Box
288
+ key={bp.key}
289
+ sx={{
290
+ borderBottom: `2px solid ${
291
+ bp.key === current ? colorTokens['border-focus'] : 'transparent'
292
+ }`,
293
+ pb: 0.25,
294
+ }}
295
+ >
296
+ <Box sx={{ color: colorTokens['text-muted'], fontSize: '0.6875rem' }}>
297
+ {bp.key}
298
+ </Box>
299
+ <Box
300
+ sx={{
301
+ color: changed
302
+ ? colorTokens['text-default']
303
+ : colorTokens['text-secondary'],
304
+ fontFamily: mono,
305
+ fontWeight: changed ? 700 : 400,
306
+ fontSize: '0.8125rem',
307
+ }}
308
+ >
309
+ {value}
310
+ </Box>
311
+ </Box>
312
+ )
313
+ })}
314
+ </Box>
315
+ )
316
+ }
317
+
318
+ /** Dotted stage the specimens sit on. */
319
+ export function Stage({
320
+ children,
321
+ height = 72,
322
+ width,
323
+ }: {
324
+ children: ReactNode
325
+ height?: number
326
+ width?: number | string
327
+ }) {
328
+ return (
329
+ <Box
330
+ sx={{
331
+ alignItems: 'center',
332
+ backgroundColor: colorTokens['surface-sunken'],
333
+ backgroundImage: `radial-gradient(${colorTokens['border-subtle']} 1px, transparent 1px)`,
334
+ backgroundSize: '8px 8px',
335
+ borderRadius: borderTokens['radius-8'],
336
+ display: 'flex',
337
+ height,
338
+ justifyContent: 'center',
339
+ width: width ?? height,
340
+ }}
341
+ >
342
+ {children}
343
+ </Box>
344
+ )
345
+ }
346
+
347
+ export const numericSuffix = (name: string) => Number(/(\d+)$/.exec(name)?.[1] ?? NaN)
@@ -1,6 +1,7 @@
1
1
  import { useForm } from 'react-hook-form'
2
2
 
3
3
  import RcSesCheckbox from '@/components/form/inputs/Checkbox'
4
+ import { typographyTokens } from '@/theme/typographyTokens'
4
5
 
5
6
  interface FormModel {
6
7
  agreement: boolean
@@ -33,7 +34,10 @@ function TermsAndConditionsForm() {
33
34
  slotProps: {
34
35
  typography: {
35
36
  // MUI 9 no longer accepts style shorthands on this slot.
36
- sx: { fontWeight: 600, lineHeight: '1.3125rem' },
37
+ sx: {
38
+ fontWeight: typographyTokens['font-weight-semibold'],
39
+ lineHeight: '1.3125rem',
40
+ },
37
41
  variant: 'body1',
38
42
  },
39
43
  },