@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.
- package/dist/assets/icons/phosphorIcons.d.ts +24 -0
- package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +2 -1
- package/dist/components/common/Accordion/index.d.ts +18 -4
- package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +1 -0
- package/dist/components/common/Card/index.d.ts +3 -0
- package/dist/components/common/CheckboxMark/index.d.ts +8 -0
- package/dist/components/common/DataPagination/components/ExpandButton.d.ts +7 -0
- package/dist/components/common/DataPagination/components/PaginationButton.d.ts +2 -1
- package/dist/components/common/DataPagination/index.d.ts +13 -3
- package/dist/components/common/DataPagination/paginationModel.d.ts +4 -0
- package/dist/components/common/Divider/index.d.ts +6 -0
- package/dist/components/common/EmptyState/index.d.ts +21 -0
- package/dist/components/common/IconWithSquareBackground/index.d.ts +2 -2
- package/dist/components/common/ImageCard/index.d.ts +5 -0
- package/dist/components/common/LinkTile/index.d.ts +11 -0
- package/dist/components/common/RadioMark/index.d.ts +8 -0
- package/dist/components/common/StepCard/StepCardFooter/index.d.ts +1 -1
- package/dist/components/common/TitleBlock/types.d.ts +4 -2
- package/dist/components/form/components/FormControlWrapper/index.d.ts +2 -1
- package/dist/components/form/inputs/Datepicker/RangeDatepicker.d.ts +23 -0
- package/dist/components/form/inputs/Datepicker/SingleDatepicker.d.ts +24 -0
- package/dist/components/form/inputs/Datepicker/components/CalendarViewsHeader.d.ts +18 -0
- package/dist/components/form/inputs/Datepicker/index.d.ts +10 -14
- package/dist/components/form/inputs/Datepicker/rangeModel.d.ts +4 -0
- package/dist/components/form/inputs/FileDropzone.d.ts +2 -2
- package/dist/components/form/inputs/RadioButtonGroup.d.ts +1 -0
- package/dist/components/form/inputs/Select/Select.styles.d.ts +84 -0
- package/dist/components/form/inputs/Select/components/OptionCheckbox.d.ts +2 -1
- package/dist/components/form/inputs/TextField.d.ts +27 -12
- package/dist/components/form/inputs/TextField.styles.d.ts +101 -0
- package/dist/components/layout/ServiceWizardStepper/stepperTokens.d.ts +5 -0
- package/dist/components/loaders/Loader/index.d.ts +12 -9
- package/dist/components/overlays/BottomSheet/index.d.ts +3 -2
- package/dist/components/overlays/Dialog/index.d.ts +1 -1
- package/dist/components/storybook/FileUploadTokenPreview.d.ts +4 -0
- package/dist/components/storybook/TabsTokenPreview.d.ts +3 -0
- package/dist/components/storybook/TokenDocs.d.ts +74 -0
- package/dist/library/index.d.ts +30 -1
- package/dist/registrucentras-rc-ses-react-components.cjs +2 -2
- package/dist/registrucentras-rc-ses-react-components.js +11144 -8374
- package/dist/theme/backdropTokens.d.ts +6 -0
- package/dist/theme/borderTokens.d.ts +33 -0
- package/dist/theme/cards.d.ts +42 -73
- package/dist/theme/colorTokens.d.ts +146 -0
- package/dist/theme/effectTokens.d.ts +9 -0
- package/dist/theme/layoutTokens.d.ts +12 -0
- package/dist/theme/light/MuiAccordion.d.ts +2 -2
- package/dist/theme/light/MuiAccordionSummary.d.ts +19 -0
- package/dist/theme/light/MuiButton.d.ts +7 -0
- package/dist/theme/light/MuiInputBase.d.ts +2 -0
- package/dist/theme/light/MuiPickerPopper.d.ts +3 -0
- package/dist/theme/light/MuiTypography.d.ts +0 -14
- package/dist/theme/palette.d.ts +8 -0
- package/dist/theme/sizeTokens.d.ts +20 -0
- package/dist/theme/spacingRoleBasedTokens.d.ts +38 -0
- package/dist/theme/spacingTokens.d.ts +97 -0
- package/dist/theme/tokenTheme.d.ts +13 -0
- package/dist/theme/typographyTokens.d.ts +104 -0
- package/package.json +2 -2
- package/src/assets/icons/phosphorIcons.ts +11 -0
- package/src/components/common/Accordion/hooks/useAccordionController.tsx +39 -7
- package/src/components/common/Accordion/index.test.tsx +132 -0
- package/src/components/common/Accordion/index.tsx +302 -25
- package/src/components/common/Accordion/types/AccordionControllerState.ts +1 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +3 -3
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +8 -3
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.tsx +3 -2
- package/src/components/common/AdvancedList/components/AdvancedListItemShell/index.test.tsx +3 -3
- package/src/components/common/AdvancedList/components/AdvancedListItemShell/index.tsx +23 -19
- package/src/components/common/AdvancedList/index.test.tsx +4 -2
- package/src/components/common/Alert/index.tsx +10 -6
- package/src/components/common/Badge/index.tsx +50 -37
- package/src/components/common/Button/index.tsx +12 -10
- package/src/components/common/Card/index.tsx +6 -1
- package/src/components/common/CardShell/index.test.tsx +16 -6
- package/src/components/common/CheckboxMark/index.tsx +86 -0
- package/src/components/common/DataPagination/components/DataPaginationSkeleton.tsx +9 -7
- package/src/components/common/DataPagination/components/ExpandButton.tsx +48 -0
- package/src/components/common/DataPagination/components/PaginationButton.tsx +48 -21
- package/src/components/common/DataPagination/index.test.tsx +229 -12
- package/src/components/common/DataPagination/index.tsx +135 -60
- package/src/components/common/DataPagination/paginationModel.ts +35 -0
- package/src/components/common/Divider/index.test.tsx +33 -0
- package/src/components/common/Divider/index.tsx +52 -0
- package/src/components/common/EmptyState/index.test.tsx +56 -0
- package/src/components/common/EmptyState/index.tsx +211 -0
- package/src/components/common/FilterChip/index.tsx +24 -19
- package/src/components/common/IconWithCircularBackground.tsx +24 -6
- package/src/components/common/IconWithSquareBackground/index.test.tsx +14 -2
- package/src/components/common/IconWithSquareBackground/index.tsx +36 -17
- package/src/components/common/ImageCard/index.test.tsx +16 -0
- package/src/components/common/ImageCard/index.tsx +54 -1
- package/src/components/common/LinkTile/index.test.tsx +57 -0
- package/src/components/common/LinkTile/index.tsx +136 -0
- package/src/components/common/ListWithIcons/components/ListWithIconsItem.tsx +39 -23
- package/src/components/common/ListWithIcons/index.test.tsx +20 -9
- package/src/components/common/ListWithIcons/index.tsx +6 -6
- package/src/components/common/Popover/index.tsx +11 -1
- package/src/components/common/RadioMark/index.tsx +76 -0
- package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +49 -25
- package/src/components/common/SegmentedControl/index.tsx +10 -6
- package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +7 -5
- package/src/components/common/SelectableCardList/index.test.tsx +8 -6
- package/src/components/common/SelectionMarks.test.tsx +92 -0
- package/src/components/common/ServiceLinks/ServiceLinkItem/index.tsx +20 -11
- package/src/components/common/ServiceLinks/index.tsx +3 -3
- package/src/components/common/SideNav/SideNavLayout.tsx +6 -1
- package/src/components/common/SideNav/components/SideNavPill.tsx +24 -12
- package/src/components/common/SideNav/components/SideNavPillList.tsx +18 -12
- package/src/components/common/SideNav/components/SideNavRow.tsx +22 -15
- package/src/components/common/SideNav/index.tsx +10 -9
- package/src/components/common/Snackbar/config.ts +27 -8
- package/src/components/common/Snackbar/index.tsx +39 -16
- package/src/components/common/StepCard/StepCardFooter/index.tsx +28 -6
- package/src/components/common/StepCard/index.tsx +18 -6
- package/src/components/common/Switch/index.tsx +10 -4
- package/src/components/common/Tabs/TabPanel.tsx +6 -3
- package/src/components/common/Tabs/TabsWrapper.tsx +15 -7
- package/src/components/common/TitleBlock/index.test.tsx +14 -17
- package/src/components/common/TitleBlock/index.tsx +120 -15
- package/src/components/common/TitleBlock/types.ts +4 -2
- package/src/components/common/Tooltip/index.tsx +32 -3
- package/src/components/form/components/FormControlWrapper/index.tsx +43 -14
- package/src/components/form/inputs/CheckboxFormControl.tsx +25 -13
- package/src/components/form/inputs/Datepicker/RangeDatepicker.tsx +356 -0
- package/src/components/form/inputs/Datepicker/SingleDatepicker.tsx +207 -0
- package/src/components/form/inputs/Datepicker/components/CalendarViewsHeader.tsx +335 -0
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +22 -10
- package/src/components/form/inputs/Datepicker/index.test.tsx +23 -18
- package/src/components/form/inputs/Datepicker/index.tsx +20 -150
- package/src/components/form/inputs/Datepicker/rangeModel.test.ts +35 -0
- package/src/components/form/inputs/Datepicker/rangeModel.ts +25 -0
- package/src/components/form/inputs/FileDropzone.tsx +73 -46
- package/src/components/form/inputs/FileUpload.tsx +25 -16
- package/src/components/form/inputs/NumberStepper.tsx +36 -14
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +10 -5
- package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +7 -1
- package/src/components/form/inputs/PhoneInputFormControl/components/PopperComponent.tsx +5 -2
- package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +9 -5
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +48 -24
- package/src/components/form/inputs/RadioButtonGroup.tsx +14 -6
- package/src/components/form/inputs/Select/Select.styles.ts +76 -0
- package/src/components/form/inputs/Select/components/OptionCheckbox.tsx +6 -33
- package/src/components/form/inputs/Select/index.tsx +124 -86
- package/src/components/form/inputs/SimpleCheckbox.tsx +10 -3
- package/src/components/form/inputs/TextField.presets.test.tsx +284 -0
- package/src/components/form/inputs/TextField.styles.ts +96 -0
- package/src/components/form/inputs/TextField.test.tsx +153 -0
- package/src/components/form/inputs/TextField.tsx +315 -42
- package/src/components/layout/Footer/index.test.tsx +1 -1
- package/src/components/layout/Footer/index.tsx +17 -7
- package/src/components/layout/ServiceFormActions.tsx +5 -1
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +3 -3
- package/src/components/layout/ServiceHeader.tsx +19 -19
- package/src/components/layout/ServiceWizardStepper/ServiceWizardStepper.css +10 -10
- package/src/components/layout/ServiceWizardStepper/StepConnector.tsx +8 -5
- package/src/components/layout/ServiceWizardStepper/components/CustomStepIcon.tsx +22 -7
- package/src/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.tsx +15 -11
- package/src/components/layout/ServiceWizardStepper/components/StyledStepLabel.tsx +28 -11
- package/src/components/layout/ServiceWizardStepper/stepperTokens.ts +8 -0
- package/src/components/loaders/FullPageLoader/index.test.tsx +18 -7
- package/src/components/loaders/FullPageLoader/index.tsx +14 -9
- package/src/components/loaders/Loader/index.tsx +48 -17
- package/src/components/overlays/BottomSheet/index.test.tsx +36 -3
- package/src/components/overlays/BottomSheet/index.tsx +54 -21
- package/src/components/overlays/Dialog/index.tsx +5 -23
- package/src/components/overlays/Drawer/index.tsx +29 -14
- package/src/components/overlays/Modal/index.tsx +46 -8
- package/src/components/storybook/FileUploadTokenPreview.tsx +68 -0
- package/src/components/storybook/TabsTokenPreview.tsx +58 -0
- package/src/components/storybook/TokenDocs.tsx +347 -0
- package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +5 -1
- package/src/i18n/namespaces/input/en.json +48 -4
- package/src/i18n/namespaces/input/lt.json +48 -4
- package/src/library/index.ts +50 -0
- package/src/stories/atoms/Badge.stories.tsx +2 -1
- package/src/stories/atoms/Button.stories.tsx +124 -6
- package/src/stories/atoms/CheckboxMark.stories.tsx +79 -0
- package/src/stories/atoms/Divider.stories.tsx +129 -0
- package/src/stories/atoms/FilterChip.stories.tsx +9 -1
- package/src/stories/atoms/IconWithSquareBackground.stories.tsx +7 -7
- package/src/stories/atoms/Icons.stories.tsx +1 -1
- package/src/stories/atoms/NumberStepper.stories.tsx +44 -0
- package/src/stories/atoms/PhoneInput.stories.tsx +42 -0
- package/src/stories/atoms/RadioMark.stories.tsx +132 -0
- package/src/stories/atoms/Select.stories.tsx +139 -2
- package/src/stories/atoms/SimpleCheckbox.stories.tsx +74 -0
- package/src/stories/atoms/Switch.stories.tsx +46 -1
- package/src/stories/atoms/TextField.stories.tsx +508 -0
- package/src/stories/atoms/Tooltip.stories.tsx +5 -0
- package/src/stories/fixtures/foundations/Borders.stories.tsx +84 -0
- package/src/stories/fixtures/foundations/Effects.stories.tsx +204 -0
- package/src/stories/fixtures/foundations/Layout.stories.tsx +76 -0
- package/src/stories/fixtures/foundations/Sizes.stories.tsx +42 -0
- package/src/stories/fixtures/foundations/Spacing.stories.tsx +48 -0
- package/src/stories/fixtures/foundations/Typography.stories.tsx +49 -0
- package/src/stories/foundations/Borders.stories.tsx +179 -0
- package/src/stories/foundations/Colors.stories.tsx +253 -0
- package/src/stories/foundations/Effects.stories.tsx +116 -0
- package/src/stories/foundations/Layout.stories.tsx +177 -0
- package/src/stories/foundations/Sizes.stories.tsx +123 -0
- package/src/stories/foundations/Spacing.stories.tsx +159 -0
- package/src/stories/foundations/ThemeAdapter.stories.tsx +389 -0
- package/src/stories/foundations/Typography.stories.tsx +148 -0
- package/src/stories/molecules/Alert.stories.tsx +18 -0
- package/src/stories/molecules/Breadcrumbs.stories.tsx +51 -0
- package/src/stories/molecules/Card.stories.tsx +1 -1
- package/src/stories/molecules/CardShell.stories.tsx +1 -0
- package/src/stories/molecules/DatePicker.stories.tsx +133 -3
- package/src/stories/molecules/EmptyState.stories.tsx +106 -0
- package/src/stories/molecules/FormControlWrapper.stories.tsx +59 -0
- package/src/stories/molecules/LinkTile.stories.tsx +151 -0
- package/src/stories/molecules/ListWithIcons.stories.tsx +27 -2
- package/src/stories/molecules/RadioButtonGroup.stories.tsx +23 -0
- package/src/stories/molecules/SegmentedControl.stories.tsx +62 -1
- package/src/stories/molecules/Tabs.stories.tsx +4 -0
- package/src/stories/molecules/TitleBlock.stories.tsx +16 -16
- package/src/stories/organisms/Accordion.stories.tsx +132 -0
- package/src/stories/organisms/AdvancedListItemShell.stories.tsx +63 -23
- package/src/stories/organisms/BottomSheet.stories.tsx +48 -1
- package/src/stories/organisms/DataPagination.stories.tsx +127 -3
- package/src/stories/organisms/Dialog.stories.tsx +13 -0
- package/src/stories/organisms/FileDropzone.stories.tsx +6 -0
- package/src/stories/organisms/FileUpload.stories.tsx +4 -0
- package/src/stories/organisms/Footer.stories.tsx +20 -0
- package/src/stories/organisms/Modal.stories.tsx +53 -0
- package/src/stories/organisms/ServiceHeader.stories.tsx +25 -3
- package/src/stories/organisms/ServiceLinks.stories.tsx +1 -1
- package/src/stories/organisms/ServiceWizardStepper.stories.tsx +37 -1
- package/src/stories/organisms/SideNav.stories.tsx +8 -1
- package/src/theme/backdropTokens.test.ts +11 -0
- package/src/theme/backdropTokens.ts +11 -0
- package/src/theme/borderTokens.test.ts +59 -0
- package/src/theme/borderTokens.ts +36 -0
- package/src/theme/cards.ts +28 -28
- package/src/theme/colorTokens.test.ts +66 -0
- package/src/theme/colorTokens.ts +87 -0
- package/src/theme/effectTokens.test.ts +29 -0
- package/src/theme/effectTokens.ts +11 -0
- package/src/theme/layoutTokens.test.ts +42 -0
- package/src/theme/layoutTokens.ts +14 -0
- package/src/theme/light/MuiAccordion.tsx +30 -26
- package/src/theme/light/MuiAccordionDetails.ts +10 -5
- package/src/theme/light/MuiAccordionSummary.tsx +31 -17
- package/src/theme/light/MuiAlert.tsx +42 -65
- package/src/theme/light/MuiAutocomplete.ts +14 -7
- package/src/theme/light/MuiBreadcrumbs.tsx +17 -9
- package/src/theme/light/MuiButton.tsx +213 -204
- package/src/theme/light/MuiCard.tsx +5 -4
- package/src/theme/light/MuiCheckbox.ts +45 -14
- package/src/theme/light/MuiChip.tsx +3 -1
- package/src/theme/light/MuiDialog.ts +45 -6
- package/src/theme/light/MuiFormControl.ts +19 -9
- package/src/theme/light/MuiFormControlLabel.ts +16 -25
- package/src/theme/light/MuiFormGroup.ts +29 -26
- package/src/theme/light/MuiFormHelperText.ts +15 -4
- package/src/theme/light/MuiFormLabel.ts +20 -20
- package/src/theme/light/MuiInputBase.ts +49 -84
- package/src/theme/light/MuiOutlinedInput.ts +50 -6
- package/src/theme/light/MuiPagination.ts +21 -21
- package/src/theme/light/MuiPickerPopper.ts +17 -0
- package/src/theme/light/MuiPickersLayout.ts +63 -34
- package/src/theme/light/MuiPickersOutlinedInput.ts +38 -38
- package/src/theme/light/MuiPopover.ts +3 -1
- package/src/theme/light/MuiRadio.tsx +35 -52
- package/src/theme/light/MuiStepper.ts +21 -17
- package/src/theme/light/MuiSwitch.tsx +27 -23
- package/src/theme/light/MuiTab.tsx +27 -18
- package/src/theme/light/MuiTableCell.ts +4 -2
- package/src/theme/light/MuiTabs.tsx +11 -9
- package/src/theme/light/MuiTooltip.ts +2 -1
- package/src/theme/light/MuiTypography.tsx +0 -17
- package/src/theme/light/index.tsx +2 -0
- package/src/theme/light/themePalette.tsx +1 -0
- package/src/theme/palette.tsx +9 -0
- package/src/theme/sizeTokens.test.ts +37 -0
- package/src/theme/sizeTokens.ts +21 -0
- package/src/theme/spacingRoleBasedTokens.ts +41 -0
- package/src/theme/spacingTokens.test.ts +58 -0
- package/src/theme/spacingTokens.ts +114 -0
- package/src/theme/tokenTheme.test.tsx +402 -0
- package/src/theme/tokenTheme.ts +429 -0
- package/src/theme/tokens.css +476 -0
- package/src/theme/tokens.test.ts +174 -0
- package/src/theme/typographyTokens.test.ts +120 -0
- package/src/theme/typographyTokens.ts +119 -0
- package/dist/theme/spacing.d.ts +0 -4
- package/src/stories/foundations/Colors.mdx +0 -127
- package/src/theme/spacing.ts +0 -5
|
@@ -1,15 +1,59 @@
|
|
|
1
|
-
import { Components } from '@mui/material'
|
|
1
|
+
import type { Components } from '@mui/material'
|
|
2
|
+
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorTokens } from '../colorTokens'
|
|
5
|
+
import { spacingRoleBasedTokens } from '../spacingRoleBasedTokens'
|
|
6
|
+
import { inputPadding } from './MuiInputBase'
|
|
2
7
|
|
|
3
8
|
const MuiOutlinedInput: Components['MuiOutlinedInput'] = {
|
|
4
9
|
styleOverrides: {
|
|
5
10
|
root: {
|
|
6
|
-
borderRadius: '
|
|
7
|
-
|
|
8
|
-
'
|
|
9
|
-
|
|
11
|
+
borderRadius: borderTokens['radius-input'],
|
|
12
|
+
'&.MuiInputBase-adornedStart': { paddingLeft: spacingRoleBasedTokens['space-12'] },
|
|
13
|
+
'&.MuiInputBase-adornedEnd': { paddingRight: spacingRoleBasedTokens['space-12'] },
|
|
14
|
+
'&:hover:not(.Mui-disabled):not(.Mui-readOnly):not(.Mui-focused) .MuiOutlinedInput-notchedOutline':
|
|
15
|
+
{
|
|
16
|
+
borderColor: colorTokens['control-border'],
|
|
17
|
+
},
|
|
18
|
+
'&.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
19
|
+
borderColor: colorTokens['status-error-border'],
|
|
20
|
+
},
|
|
21
|
+
'&.Mui-error:hover:not(.Mui-disabled):not(.Mui-readOnly):not(.Mui-focused)': {
|
|
22
|
+
backgroundColor: colorTokens['status-error-bg'],
|
|
23
|
+
'.MuiOutlinedInput-notchedOutline': {
|
|
24
|
+
borderColor: colorTokens['status-error-border'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
28
|
+
borderColor: colorTokens['border-focus'],
|
|
29
|
+
borderWidth: borderTokens['border-focus'],
|
|
30
|
+
},
|
|
31
|
+
'&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
32
|
+
borderColor: colorTokens['border-focus-error'],
|
|
33
|
+
},
|
|
34
|
+
'&.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
35
|
+
borderColor: colorTokens['border-subtle'],
|
|
36
|
+
borderWidth: borderTokens['stroke-1'],
|
|
37
|
+
boxShadow: 'none',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
notchedOutline: {
|
|
41
|
+
borderColor: colorTokens['border-strong'],
|
|
42
|
+
borderWidth: borderTokens['stroke-1'],
|
|
43
|
+
borderRadius: borderTokens['radius-input'],
|
|
44
|
+
boxShadow: 'none',
|
|
45
|
+
},
|
|
46
|
+
// OutlinedInput applies these slots after InputBase.
|
|
47
|
+
multiline: { padding: spacingRoleBasedTokens['space-0'] },
|
|
48
|
+
input: {
|
|
49
|
+
padding: inputPadding,
|
|
50
|
+
'&.MuiInputBase-inputAdornedStart': {
|
|
51
|
+
paddingLeft: spacingRoleBasedTokens['space-0'],
|
|
52
|
+
},
|
|
53
|
+
'&.MuiInputBase-inputAdornedEnd': {
|
|
54
|
+
paddingRight: spacingRoleBasedTokens['space-0'],
|
|
10
55
|
},
|
|
11
56
|
},
|
|
12
57
|
},
|
|
13
58
|
}
|
|
14
|
-
|
|
15
59
|
export default MuiOutlinedInput
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Components } from '@mui/material'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorTokens } from '../colorTokens'
|
|
5
|
+
import { typographyTokens } from '../typographyTokens'
|
|
4
6
|
|
|
5
7
|
const MuiPagination: Components['MuiPagination'] = {
|
|
6
8
|
defaultProps: {
|
|
@@ -12,37 +14,36 @@ const MuiPagination: Components['MuiPagination'] = {
|
|
|
12
14
|
const MuiPaginationItem: Components['MuiPaginationItem'] = {
|
|
13
15
|
styleOverrides: {
|
|
14
16
|
root: {
|
|
15
|
-
|
|
17
|
+
margin: 0,
|
|
18
|
+
borderRadius: borderTokens['radius-button'],
|
|
16
19
|
height: 40,
|
|
17
20
|
width: 40,
|
|
18
|
-
fontSize:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
fontSize: typographyTokens['font-size-body-small'],
|
|
22
|
+
lineHeight: typographyTokens['line-height-body-small'],
|
|
23
|
+
fontWeight: typographyTokens['font-weight-body-small'],
|
|
24
|
+
color: 'var(--rc-color-neutrals-800)',
|
|
22
25
|
'&:hover': {
|
|
23
|
-
backgroundColor:
|
|
26
|
+
backgroundColor: 'var(--rc-color-neutrals-200)',
|
|
27
|
+
color: colorTokens['text-default'],
|
|
24
28
|
},
|
|
25
|
-
|
|
26
29
|
'&:active': {
|
|
27
|
-
backgroundColor:
|
|
30
|
+
backgroundColor: 'var(--rc-color-neutrals-300)',
|
|
31
|
+
color: colorTokens['text-default'],
|
|
28
32
|
},
|
|
29
|
-
|
|
30
33
|
'&.Mui-focusVisible': {
|
|
31
|
-
border:
|
|
32
|
-
backgroundColor:
|
|
34
|
+
border: `${borderTokens['border-focus']} solid var(--rc-color-neutrals-950)`,
|
|
35
|
+
backgroundColor: 'var(--rc-color-neutrals-50)',
|
|
36
|
+
color: colorTokens['text-default'],
|
|
33
37
|
},
|
|
34
|
-
|
|
35
38
|
'&.Mui-disabled': {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
color:
|
|
39
|
+
backgroundColor: 'var(--rc-color-neutrals-100)',
|
|
40
|
+
color: colorTokens['text-disabled'],
|
|
38
41
|
},
|
|
39
|
-
|
|
40
42
|
'&.Mui-selected': {
|
|
41
|
-
backgroundColor:
|
|
42
|
-
color: '
|
|
43
|
-
|
|
43
|
+
backgroundColor: 'var(--rc-color-neutrals-800)',
|
|
44
|
+
color: colorTokens['text-inverse'],
|
|
44
45
|
'&:hover': {
|
|
45
|
-
backgroundColor:
|
|
46
|
+
backgroundColor: 'var(--rc-color-neutrals-800)',
|
|
46
47
|
},
|
|
47
48
|
},
|
|
48
49
|
'&.MuiPaginationItem-ellipsis': {
|
|
@@ -50,7 +51,6 @@ const MuiPaginationItem: Components['MuiPaginationItem'] = {
|
|
|
50
51
|
alignItems: 'center',
|
|
51
52
|
justifyContent: 'center',
|
|
52
53
|
pointerEvents: 'none',
|
|
53
|
-
fontSize: 14,
|
|
54
54
|
},
|
|
55
55
|
},
|
|
56
56
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PickerComponents } from '@mui/x-date-pickers/themeAugmentation'
|
|
2
|
+
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorTokens } from '../colorTokens'
|
|
5
|
+
import { effectTokens } from '../effectTokens'
|
|
6
|
+
|
|
7
|
+
const MuiPickerPopper: PickerComponents['MuiPickerPopper'] = {
|
|
8
|
+
styleOverrides: {
|
|
9
|
+
paper: {
|
|
10
|
+
backgroundColor: colorTokens['surface-base'],
|
|
11
|
+
borderRadius: borderTokens['radius-12'],
|
|
12
|
+
boxShadow: effectTokens['elevation-md'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default MuiPickerPopper
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
import type { PickerComponents } from '@mui/x-date-pickers/themeAugmentation'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorTokens } from '../colorTokens'
|
|
5
|
+
import { effectTokens } from '../effectTokens'
|
|
6
|
+
import { spacingRoleBasedTokens } from '../spacingRoleBasedTokens'
|
|
7
|
+
import { typographyTokens } from '../typographyTokens'
|
|
8
|
+
|
|
9
|
+
const weekendColor = 'var(--rc-color-red-600)'
|
|
10
|
+
const outsideWeekendColor = 'var(--rc-color-red-200)'
|
|
11
|
+
// Figma binds the Cyans/500 primitive for the today ring; no semantic role maps to it.
|
|
12
|
+
const todayRingColor = 'var(--rc-color-cyans-500)'
|
|
4
13
|
|
|
5
14
|
const MuiPickersLayout: PickerComponents['MuiPickersLayout'] = {
|
|
6
15
|
defaultProps: {},
|
|
7
16
|
styleOverrides: {
|
|
8
17
|
root: {
|
|
9
|
-
borderRadius: '
|
|
18
|
+
borderRadius: borderTokens['radius-12'],
|
|
10
19
|
|
|
11
20
|
'.MuiPickersLayout-actionBar': {
|
|
12
|
-
backgroundColor:
|
|
13
|
-
borderBottomLeftRadius: '
|
|
14
|
-
borderBottomRightRadius: '
|
|
15
|
-
|
|
21
|
+
backgroundColor: colorTokens['surface-sunken'],
|
|
22
|
+
borderBottomLeftRadius: borderTokens['radius-6'],
|
|
23
|
+
borderBottomRightRadius: borderTokens['radius-6'],
|
|
24
|
+
// Calendar action-bar spacing has no semantic role yet.
|
|
25
|
+
padding: `${spacingRoleBasedTokens['space-8']} ${spacingRoleBasedTokens['space-10']}`,
|
|
16
26
|
|
|
17
27
|
'.MuiButtonBase-root': {
|
|
18
28
|
backgroundColor: 'transparent',
|
|
19
|
-
height: '
|
|
29
|
+
height: spacingRoleBasedTokens['space-36'],
|
|
20
30
|
minWidth: 'unset',
|
|
21
|
-
padding: '0
|
|
31
|
+
padding: `${spacingRoleBasedTokens['space-0']} ${spacingRoleBasedTokens['space-10']}`,
|
|
22
32
|
},
|
|
23
33
|
},
|
|
24
34
|
},
|
|
@@ -28,46 +38,65 @@ const MuiPickersLayout: PickerComponents['MuiPickersLayout'] = {
|
|
|
28
38
|
},
|
|
29
39
|
|
|
30
40
|
'.MuiDayCalendar-weekDayLabel': {
|
|
31
|
-
color:
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
color: colorTokens['text-muted'],
|
|
42
|
+
width: '44px',
|
|
43
|
+
height: '24px',
|
|
44
|
+
margin: 0,
|
|
45
|
+
fontSize: typographyTokens['font-size-body-caption'],
|
|
46
|
+
lineHeight: typographyTokens['line-height-body-caption'],
|
|
34
47
|
},
|
|
35
48
|
|
|
36
|
-
'.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
'.MuiDayCalendar-header': {
|
|
50
|
+
marginBottom: spacingRoleBasedTokens['space-12'],
|
|
51
|
+
},
|
|
52
|
+
'.MuiDayCalendar-weekContainer': { margin: 0 },
|
|
53
|
+
'.MuiDayCalendar-slideTransition': { minHeight: 0, overflow: 'visible' },
|
|
54
|
+
'.MuiDayCalendar-monthContainer': { overflow: 'visible' },
|
|
55
|
+
'.MuiDayCalendar-root .MuiPickerDay-root': {
|
|
56
|
+
width: '44px',
|
|
57
|
+
height: '44px',
|
|
58
|
+
margin: 0,
|
|
59
|
+
color: colorTokens['text-default'],
|
|
60
|
+
fontSize: typographyTokens['font-size-body-regular'],
|
|
61
|
+
lineHeight: typographyTokens['line-height-body-regular'],
|
|
62
|
+
borderRadius: borderTokens['radius-8'],
|
|
63
|
+
'&.MuiPickerDay-today': {
|
|
64
|
+
outline: `${borderTokens['stroke-1']} solid ${todayRingColor}`,
|
|
65
|
+
outlineOffset: `calc(-1 * ${borderTokens['stroke-1']})`,
|
|
66
|
+
},
|
|
67
|
+
// MUI paints a primary tint on :focus, including pointer-open autofocus.
|
|
68
|
+
// In DS only selected days have a brand fill; focus is conveyed by a ring.
|
|
69
|
+
'&:focus': { backgroundColor: 'transparent' },
|
|
70
|
+
'&.Mui-focusVisible': {
|
|
71
|
+
boxShadow: effectTokens['focus-ring-default'],
|
|
72
|
+
backgroundColor: colorTokens['surface-base'],
|
|
73
|
+
},
|
|
40
74
|
|
|
41
75
|
'&:hover': {
|
|
42
|
-
backgroundColor:
|
|
76
|
+
backgroundColor: colorTokens['surface-muted'],
|
|
43
77
|
},
|
|
44
78
|
|
|
45
79
|
'&.Mui-selected, &.Mui-selected:hover, &.Mui-selected:focus': {
|
|
46
|
-
backgroundColor:
|
|
80
|
+
backgroundColor: colorTokens['control-selected'],
|
|
47
81
|
// v9 sets the contrast colour in a variant, which loses to the
|
|
48
82
|
// day colour above, so it has to be restated.
|
|
49
|
-
color:
|
|
50
|
-
fontWeight:
|
|
83
|
+
color: colorTokens['text-inverse'],
|
|
84
|
+
fontWeight: typographyTokens['font-weight-body-regular'],
|
|
51
85
|
},
|
|
52
86
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
'&.Mui-disabled': {
|
|
56
|
-
color: palette.grey['400'],
|
|
87
|
+
'&.Mui-selected.Mui-focusVisible': {
|
|
88
|
+
boxShadow: `0 0 0 ${borderTokens['stroke-2']} ${colorTokens['surface-base']}, 0 0 0 ${borderTokens['stroke-4']} ${colorTokens['border-focus']}`,
|
|
57
89
|
},
|
|
58
|
-
},
|
|
59
90
|
|
|
60
|
-
|
|
61
|
-
|
|
91
|
+
'&.MuiPickerDay-dayOutsideMonth:not(.Mui-selected), &.Mui-disabled': {
|
|
92
|
+
color: colorTokens['text-muted'],
|
|
93
|
+
},
|
|
62
94
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
'
|
|
66
|
-
color:
|
|
67
|
-
|
|
68
|
-
'&.MuiPickerDay-dayOutsideMonth': {
|
|
69
|
-
color: palette.error['200'],
|
|
70
|
-
},
|
|
95
|
+
'.MuiDayCalendar-weekContainer .MuiPickerDay-root': {
|
|
96
|
+
// No weekend color roles exist; keep the legacy red distinction using DS primitives.
|
|
97
|
+
'&:nth-of-type(6):not(.Mui-selected), &:nth-of-type(7):not(.Mui-selected)': {
|
|
98
|
+
color: weekendColor,
|
|
99
|
+
'&.MuiPickerDay-dayOutsideMonth': { color: outsideWeekendColor },
|
|
71
100
|
},
|
|
72
101
|
},
|
|
73
102
|
},
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { decomposeColor } from '@mui/material'
|
|
2
1
|
import type { PickerComponents } from '@mui/x-date-pickers/themeAugmentation'
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorTokens } from '../colorTokens'
|
|
5
|
+
import { spacingRoleBasedTokens } from '../spacingRoleBasedTokens'
|
|
6
|
+
import { spacingTokens } from '../spacingTokens'
|
|
7
|
+
import { typographyTokens } from '../typographyTokens'
|
|
8
|
+
import { inputMinHeight } from './MuiInputBase'
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* x-date-pickers 9 gives the picker its own field components, which none of the
|
|
@@ -11,77 +15,73 @@ import palette, { common } from '../palette'
|
|
|
11
15
|
const MuiPickersOutlinedInput: PickerComponents['MuiPickersOutlinedInput'] = {
|
|
12
16
|
styleOverrides: {
|
|
13
17
|
root: {
|
|
14
|
-
backgroundColor:
|
|
15
|
-
borderRadius: '
|
|
18
|
+
backgroundColor: colorTokens['surface-base'],
|
|
19
|
+
borderRadius: borderTokens['radius-input'],
|
|
20
|
+
minHeight: inputMinHeight,
|
|
16
21
|
// The value renders as sections, not an <input>, so the horizontal
|
|
17
22
|
// padding sits here and the vertical padding on the sections.
|
|
18
|
-
padding: '0
|
|
19
|
-
|
|
20
|
-
'.MuiPickersInputBase-sectionsContainer': {
|
|
21
|
-
color: palette.grey['900'],
|
|
22
|
-
fontSize: '.9375rem',
|
|
23
|
-
// The 18px content box MuiInputBase gives a plain input, so the row
|
|
24
|
-
// stays 44px.
|
|
25
|
-
boxSizing: 'content-box',
|
|
26
|
-
height: '1.125rem',
|
|
27
|
-
lineHeight: '1.125rem',
|
|
28
|
-
padding: '.8125rem 0',
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
32
|
-
borderColor: palette.grey['600'],
|
|
33
|
-
borderRadius: '.5rem',
|
|
34
|
-
},
|
|
23
|
+
padding: `${spacingRoleBasedTokens['space-0']} ${spacingRoleBasedTokens['space-12']}`,
|
|
35
24
|
|
|
36
25
|
'&.Mui-error': {
|
|
37
26
|
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
38
|
-
borderColor:
|
|
27
|
+
borderColor: colorTokens['status-error-border'],
|
|
39
28
|
},
|
|
40
29
|
},
|
|
41
30
|
|
|
42
|
-
'
|
|
31
|
+
'&&.Mui-focused': {
|
|
43
32
|
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
44
|
-
borderColor:
|
|
45
|
-
|
|
46
|
-
boxShadow: `0px 0px 0px 3px rgba(${decomposeColor(palette.grey['900']).values}, .2)`,
|
|
33
|
+
borderColor: colorTokens['border-focus'],
|
|
34
|
+
borderWidth: borderTokens['border-focus'],
|
|
47
35
|
},
|
|
48
36
|
|
|
49
37
|
'&.Mui-error': {
|
|
50
38
|
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
51
|
-
borderColor:
|
|
52
|
-
borderWidth: '.125rem',
|
|
53
|
-
borderRadius: '.5rem',
|
|
54
|
-
boxShadow: `0px 0px 0px 3px rgba(${decomposeColor(palette.error['600']).values}, .2)`,
|
|
39
|
+
borderColor: colorTokens['border-focus-error'],
|
|
55
40
|
},
|
|
56
41
|
},
|
|
57
42
|
},
|
|
58
43
|
|
|
59
44
|
'&.Mui-readOnly': {
|
|
60
45
|
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
61
|
-
borderColor:
|
|
62
|
-
borderWidth: '
|
|
63
|
-
boxShadow: 'none !important',
|
|
46
|
+
borderColor: colorTokens['border-strong'],
|
|
47
|
+
borderWidth: borderTokens['stroke-1'],
|
|
64
48
|
},
|
|
65
49
|
},
|
|
66
50
|
|
|
67
51
|
'&.Mui-disabled': {
|
|
68
|
-
backgroundColor:
|
|
52
|
+
backgroundColor: colorTokens['surface-muted'],
|
|
69
53
|
|
|
70
54
|
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
71
|
-
borderColor:
|
|
55
|
+
borderColor: colorTokens['border-subtle'],
|
|
56
|
+
borderWidth: borderTokens['stroke-1'],
|
|
72
57
|
},
|
|
73
58
|
|
|
74
59
|
'.MuiPickersInputBase-sectionsContainer': {
|
|
75
|
-
color:
|
|
60
|
+
color: colorTokens['text-disabled'],
|
|
61
|
+
WebkitTextFillColor: colorTokens['text-disabled'],
|
|
76
62
|
},
|
|
77
63
|
},
|
|
78
64
|
|
|
79
|
-
'&:hover:not(.Mui-disabled):not(.Mui-readOnly)': {
|
|
65
|
+
'&:hover:not(.Mui-disabled):not(.Mui-readOnly):not(.Mui-focused):not(.Mui-error)': {
|
|
80
66
|
'.MuiPickersOutlinedInput-notchedOutline': {
|
|
81
|
-
borderColor:
|
|
67
|
+
borderColor: colorTokens['control-border'],
|
|
82
68
|
},
|
|
83
69
|
},
|
|
84
70
|
},
|
|
71
|
+
sectionsContainer: {
|
|
72
|
+
color: colorTokens['text-default'],
|
|
73
|
+
fontSize: typographyTokens['font-size-body-regular'],
|
|
74
|
+
boxSizing: 'content-box',
|
|
75
|
+
height: typographyTokens['line-height-body-regular'],
|
|
76
|
+
lineHeight: typographyTokens['line-height-body-regular'],
|
|
77
|
+
padding: `${spacingTokens['spacing-aliases-input-padding-y']} ${spacingRoleBasedTokens['space-0']}`,
|
|
78
|
+
},
|
|
79
|
+
notchedOutline: {
|
|
80
|
+
borderColor: colorTokens['border-strong'],
|
|
81
|
+
borderWidth: borderTokens['stroke-1'],
|
|
82
|
+
borderRadius: borderTokens['radius-input'],
|
|
83
|
+
boxShadow: 'none',
|
|
84
|
+
},
|
|
85
85
|
},
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Components } from '@mui/material'
|
|
2
2
|
|
|
3
|
+
import { typographyTokens } from '@/theme/typographyTokens'
|
|
4
|
+
|
|
3
5
|
const MuiPopover: Components['MuiPopover'] = {
|
|
4
6
|
defaultProps: {
|
|
5
7
|
anchorOrigin: {
|
|
@@ -19,7 +21,7 @@ const MuiPopover: Components['MuiPopover'] = {
|
|
|
19
21
|
styleOverrides: {
|
|
20
22
|
paper: {
|
|
21
23
|
fontSize: '.9375rem',
|
|
22
|
-
fontWeight:
|
|
24
|
+
fontWeight: typographyTokens['font-weight-body-regular'],
|
|
23
25
|
lineHeight: '1.25rem',
|
|
24
26
|
maxWidth: '270px',
|
|
25
27
|
},
|
|
@@ -1,64 +1,47 @@
|
|
|
1
1
|
import { Components } from '@mui/material'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import RcSesRadioMark from '@/components/common/RadioMark'
|
|
4
|
+
|
|
5
|
+
import { borderTokens } from '../borderTokens'
|
|
6
|
+
import { colorTokens } from '../colorTokens'
|
|
7
|
+
import { spacingRoleBasedTokens } from '../spacingRoleBasedTokens'
|
|
8
|
+
|
|
9
|
+
// Figma's unbound hover effect is shared by selected and unselected radio marks.
|
|
10
|
+
const hoverHalo =
|
|
11
|
+
'0 0 0 4px color-mix(in srgb, var(--rc-color-cyans-400) 20%, transparent)'
|
|
4
12
|
|
|
5
13
|
const MuiRadio: Components['MuiRadio'] = {
|
|
6
14
|
defaultProps: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
height='24'
|
|
11
|
-
viewBox='0 0 24 24'
|
|
12
|
-
fill='none'
|
|
13
|
-
xmlns='http://www.w3.org/2000/svg'
|
|
14
|
-
>
|
|
15
|
-
<rect
|
|
16
|
-
data-name='outer'
|
|
17
|
-
x='0.5'
|
|
18
|
-
y='0.5'
|
|
19
|
-
width='23'
|
|
20
|
-
height='23'
|
|
21
|
-
rx='11.5'
|
|
22
|
-
fill='#06A0D4'
|
|
23
|
-
stroke='#06A0D4'
|
|
24
|
-
/>
|
|
25
|
-
<circle data-name='inner' cx='12' cy='12' r='5' fill='white' />
|
|
26
|
-
</svg>
|
|
27
|
-
),
|
|
28
|
-
icon: (
|
|
29
|
-
<svg
|
|
30
|
-
width='24'
|
|
31
|
-
height='24'
|
|
32
|
-
viewBox='0 0 24 24'
|
|
33
|
-
fill='none'
|
|
34
|
-
xmlns='http://www.w3.org/2000/svg'
|
|
35
|
-
>
|
|
36
|
-
<rect data-name='inner' x='1' y='1' width='22' height='22' rx='11' fill='white' />
|
|
37
|
-
<rect
|
|
38
|
-
data-name='outer'
|
|
39
|
-
x='1'
|
|
40
|
-
y='1'
|
|
41
|
-
width='22'
|
|
42
|
-
height='22'
|
|
43
|
-
rx='11'
|
|
44
|
-
stroke='#8E959E'
|
|
45
|
-
strokeWidth='2'
|
|
46
|
-
/>
|
|
47
|
-
</svg>
|
|
48
|
-
),
|
|
15
|
+
disableRipple: true,
|
|
16
|
+
checkedIcon: <RcSesRadioMark type='selected' />,
|
|
17
|
+
icon: <RcSesRadioMark />,
|
|
49
18
|
},
|
|
50
19
|
styleOverrides: {
|
|
51
|
-
root: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
20
|
+
root: ({ ownerState }) => ({
|
|
21
|
+
margin: spacingRoleBasedTokens['space-4'],
|
|
22
|
+
padding: spacingRoleBasedTokens['space-4'],
|
|
23
|
+
color: colorTokens['control-border'],
|
|
24
|
+
'--rc-mark-border': 'currentColor',
|
|
25
|
+
'--rc-mark-selected': 'currentColor',
|
|
26
|
+
'--rc-radio-hover-halo': hoverHalo,
|
|
27
|
+
...(ownerState.color === 'primary' && {
|
|
28
|
+
'&.Mui-checked': { color: colorTokens['control-selected'] },
|
|
29
|
+
}),
|
|
56
30
|
'&.Mui-disabled': {
|
|
57
|
-
'
|
|
58
|
-
|
|
59
|
-
|
|
31
|
+
'--rc-mark-border': colorTokens['control-border'],
|
|
32
|
+
'--rc-mark-selected': colorTokens['control-disabled-selected'],
|
|
33
|
+
'--rc-mark-surface': colorTokens['control-disabled'],
|
|
34
|
+
},
|
|
35
|
+
'&.Mui-focusVisible [data-rc-mark-shape]': {
|
|
36
|
+
outline: `${borderTokens['border-focus']} solid ${colorTokens['border-focus']}`,
|
|
37
|
+
outlineOffset: spacingRoleBasedTokens['space-2'],
|
|
38
|
+
boxShadow: 'none',
|
|
39
|
+
},
|
|
40
|
+
'&:hover:not(.Mui-disabled, .Mui-focusVisible)': {
|
|
41
|
+
'--rc-mark-border': colorTokens['control-selected'],
|
|
42
|
+
'[data-rc-mark-shape]': { boxShadow: 'var(--rc-radio-hover-halo)' },
|
|
60
43
|
},
|
|
61
|
-
},
|
|
44
|
+
}),
|
|
62
45
|
},
|
|
63
46
|
}
|
|
64
47
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Components } from '@mui/material'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorTokens } from '../colorTokens'
|
|
5
|
+
import { spacingRoleBasedTokens } from '../spacingRoleBasedTokens'
|
|
6
|
+
import { spacingTokens } from '../spacingTokens'
|
|
7
|
+
import { typographyTokens } from '../typographyTokens'
|
|
4
8
|
|
|
5
9
|
const MuiStepper: Components['MuiStepper'] = {
|
|
6
10
|
defaultProps: {},
|
|
@@ -9,40 +13,40 @@ const MuiStepper: Components['MuiStepper'] = {
|
|
|
9
13
|
vertical: {
|
|
10
14
|
'.MuiStepLabel-root': {
|
|
11
15
|
alignItems: 'center',
|
|
12
|
-
minHeight: '
|
|
16
|
+
minHeight: spacingRoleBasedTokens['space-32'],
|
|
13
17
|
paddingBottom: 0,
|
|
14
18
|
paddingTop: 0,
|
|
15
19
|
},
|
|
16
20
|
|
|
17
21
|
'.MuiStepLabel-iconContainer': {
|
|
18
|
-
paddingRight: '
|
|
22
|
+
paddingRight: spacingTokens['spacing-aliases-stepper-item-gap'],
|
|
19
23
|
},
|
|
20
24
|
|
|
21
25
|
'.MuiStepLabel-labelContainer': {
|
|
22
|
-
color:
|
|
23
|
-
fontSize: '
|
|
24
|
-
fontWeight:
|
|
25
|
-
lineHeight: '
|
|
26
|
+
color: colorTokens['text-secondary'],
|
|
27
|
+
fontSize: typographyTokens['font-size-heading-h4'],
|
|
28
|
+
fontWeight: typographyTokens['font-weight-heading-h4'],
|
|
29
|
+
lineHeight: typographyTokens['line-height-heading-h4'],
|
|
26
30
|
|
|
27
31
|
'.Mui-active': {
|
|
28
|
-
color:
|
|
29
|
-
fontSize: '
|
|
30
|
-
fontWeight:
|
|
31
|
-
lineHeight: '
|
|
32
|
+
color: colorTokens['text-default'],
|
|
33
|
+
fontSize: typographyTokens['font-size-heading-h4'],
|
|
34
|
+
fontWeight: typographyTokens['font-weight-semibold'],
|
|
35
|
+
lineHeight: typographyTokens['line-height-heading-h4'],
|
|
32
36
|
},
|
|
33
37
|
},
|
|
34
38
|
|
|
35
39
|
'.MuiStepConnector-root': {
|
|
36
|
-
height: '
|
|
37
|
-
marginBottom: '-
|
|
40
|
+
height: spacingRoleBasedTokens['space-32'],
|
|
41
|
+
marginBottom: `calc(-1 * ${spacingRoleBasedTokens['space-16']})`,
|
|
38
42
|
marginLeft: '11.5px',
|
|
39
|
-
marginTop: '-
|
|
43
|
+
marginTop: `calc(-1 * ${spacingRoleBasedTokens['space-16']})`,
|
|
40
44
|
zIndex: '-1',
|
|
41
45
|
|
|
42
46
|
'.MuiStepConnector-line': {
|
|
43
|
-
borderColor:
|
|
44
|
-
borderLeftWidth: '
|
|
45
|
-
minHeight: '
|
|
47
|
+
borderColor: colorTokens['surface-muted'],
|
|
48
|
+
borderLeftWidth: borderTokens['stroke-2'],
|
|
49
|
+
minHeight: spacingRoleBasedTokens['space-32'],
|
|
46
50
|
},
|
|
47
51
|
},
|
|
48
52
|
},
|