@registrucentras/rc-ses-react-components 2.7.3 → 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 +4 -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 +11143 -8378
- 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 +1 -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,7 +1,23 @@
|
|
|
1
1
|
import { Components } from '@mui/material'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { borderTokens } from '../borderTokens'
|
|
4
|
+
import { colorPrimitives, colorTokens } from '../colorTokens'
|
|
5
|
+
import { effectTokens } from '../effectTokens'
|
|
6
|
+
import { sizeTokens } from '../sizeTokens'
|
|
7
|
+
import { spacingRoleBasedTokens } from '../spacingRoleBasedTokens'
|
|
8
|
+
import { spacingTokens } from '../spacingTokens'
|
|
9
|
+
import { typographyTokens } from '../typographyTokens'
|
|
10
|
+
|
|
11
|
+
// Internal to the theme and wrapper; these do not add foundation tokens or props.
|
|
12
|
+
export const buttonDimensions = {
|
|
13
|
+
small: `calc(${typographyTokens['line-height-button-compact']} + ${spacingTokens['spacing-aliases-button-padding-y-small']} * 2)`,
|
|
14
|
+
medium: `calc(${typographyTokens['line-height-button-regular']} + ${spacingTokens['spacing-aliases-button-padding-y-regular']} * 2)`,
|
|
15
|
+
large: spacingRoleBasedTokens['space-48'],
|
|
16
|
+
iconPaddingSmall: spacingTokens['spacing-aliases-button-padding-icon-only-small'],
|
|
17
|
+
iconPaddingRegular: spacingTokens['spacing-aliases-button-padding-icon-only-regular'],
|
|
18
|
+
}
|
|
4
19
|
|
|
20
|
+
// Extra legacy colors have no DS action roles. Their existing primitives are retained.
|
|
5
21
|
const MuiButton: Components['MuiButton'] = {
|
|
6
22
|
variants: [
|
|
7
23
|
{
|
|
@@ -9,7 +25,7 @@ const MuiButton: Components['MuiButton'] = {
|
|
|
9
25
|
variant: 'text',
|
|
10
26
|
},
|
|
11
27
|
style: {
|
|
12
|
-
color:
|
|
28
|
+
color: colorPrimitives.cyans[600],
|
|
13
29
|
},
|
|
14
30
|
},
|
|
15
31
|
{
|
|
@@ -17,95 +33,85 @@ const MuiButton: Components['MuiButton'] = {
|
|
|
17
33
|
variant: 'link',
|
|
18
34
|
},
|
|
19
35
|
style: {
|
|
20
|
-
color:
|
|
21
|
-
fontSize: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// padding; the default (medium) needs the same treatment so a
|
|
28
|
-
// any link lines up under a heading, not 20px indented.
|
|
29
|
-
padding: '.8125rem 0',
|
|
36
|
+
color: colorTokens['action-link-text'],
|
|
37
|
+
fontSize: typographyTokens['font-size-button-regular'],
|
|
38
|
+
lineHeight: typographyTokens['line-height-button-regular'],
|
|
39
|
+
fontWeight: typographyTokens['font-weight-button-regular'],
|
|
40
|
+
minWidth: 0,
|
|
41
|
+
height: buttonDimensions.medium,
|
|
42
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-regular']} ${spacingTokens['spacing-aliases-button-padding-x-link']}`,
|
|
30
43
|
|
|
31
44
|
'&.Mui-disabled': {
|
|
32
|
-
opacity:
|
|
45
|
+
opacity: 1,
|
|
33
46
|
|
|
34
47
|
'&.MuiButton-colorPrimary': {
|
|
35
|
-
color:
|
|
48
|
+
color: colorTokens['text-disabled'],
|
|
36
49
|
},
|
|
37
50
|
},
|
|
38
51
|
|
|
39
52
|
'&:not(.Mui-disabled)': {
|
|
40
53
|
'svg path': {
|
|
41
|
-
fill:
|
|
54
|
+
fill: 'currentColor',
|
|
42
55
|
},
|
|
43
56
|
|
|
44
57
|
'&:hover': {
|
|
45
58
|
backgroundColor: 'transparent',
|
|
46
|
-
color:
|
|
59
|
+
color: colorTokens['action-link-text-hover'],
|
|
47
60
|
|
|
48
61
|
'svg path': {
|
|
49
|
-
fill:
|
|
62
|
+
fill: 'currentColor',
|
|
50
63
|
},
|
|
51
64
|
},
|
|
52
65
|
|
|
53
|
-
'&:active
|
|
66
|
+
'&:active': {
|
|
54
67
|
backgroundColor: 'transparent',
|
|
55
|
-
color:
|
|
68
|
+
color: colorTokens['action-link-text-hover'],
|
|
56
69
|
|
|
57
70
|
'svg path': {
|
|
58
|
-
fill:
|
|
71
|
+
fill: 'currentColor',
|
|
59
72
|
},
|
|
60
73
|
},
|
|
61
74
|
|
|
62
|
-
'&:focus-visible:not(:active)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
background: 'transparent',
|
|
66
|
-
border: '2px solid',
|
|
67
|
-
borderColor: grey[950],
|
|
68
|
-
borderRadius: '0.75rem',
|
|
69
|
-
height: 'calc(100% + 8px)',
|
|
70
|
-
left: '-4px',
|
|
71
|
-
position: 'absolute',
|
|
72
|
-
top: '-4px',
|
|
73
|
-
width: 'calc(100% + 8px)',
|
|
74
|
-
zIndex: 1,
|
|
75
|
-
},
|
|
75
|
+
'&:focus-visible:not(:active)': {
|
|
76
|
+
boxShadow: effectTokens['focus-ring-default'],
|
|
77
|
+
},
|
|
76
78
|
},
|
|
77
79
|
|
|
78
80
|
'&.MuiButton-sizeSmall': {
|
|
79
|
-
fontWeight:
|
|
80
|
-
height:
|
|
81
|
-
|
|
81
|
+
fontWeight: typographyTokens['font-weight-button-compact'],
|
|
82
|
+
height: buttonDimensions.small,
|
|
83
|
+
fontSize: typographyTokens['font-size-button-compact'],
|
|
84
|
+
lineHeight: typographyTokens['line-height-button-compact'],
|
|
85
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-small']} ${spacingTokens['spacing-aliases-button-padding-x-link']}`,
|
|
86
|
+
'.MuiButton-startIcon': {
|
|
87
|
+
marginRight: spacingTokens['spacing-aliases-button-icon-text-gap-small'],
|
|
88
|
+
},
|
|
89
|
+
'.MuiButton-endIcon': {
|
|
90
|
+
marginLeft: spacingTokens['spacing-aliases-button-icon-text-gap-small'],
|
|
91
|
+
},
|
|
82
92
|
},
|
|
83
93
|
|
|
84
94
|
'&.MuiButton-sizeLarge': {
|
|
85
|
-
fontSize: '
|
|
86
|
-
padding: '
|
|
95
|
+
fontSize: typographyTokens['font-size-button-regular'],
|
|
96
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-regular']} 0`,
|
|
87
97
|
},
|
|
88
98
|
|
|
89
99
|
'.MuiButton-startIcon': {
|
|
90
100
|
marginLeft: 0,
|
|
91
|
-
marginRight: '
|
|
101
|
+
marginRight: spacingTokens['spacing-aliases-button-icon-text-gap-regular'],
|
|
92
102
|
},
|
|
93
103
|
|
|
94
104
|
'.MuiButton-endIcon': {
|
|
95
|
-
marginLeft: '
|
|
105
|
+
marginLeft: spacingTokens['spacing-aliases-button-icon-text-gap-regular'],
|
|
96
106
|
},
|
|
97
107
|
|
|
98
|
-
//
|
|
99
|
-
// `left/right: 14px` to sit inside the root's default horizontal
|
|
100
|
-
// padding. Link variant has zero horizontal padding, so 14px lands
|
|
101
|
-
// on top of the label. Reserve room on the loading side and pin the
|
|
102
|
-
// indicator to the edge so spinner and label sit side by side.
|
|
108
|
+
// Preserve the existing Link loading layout, using the spacing primitive.
|
|
103
109
|
'&.MuiButton-loadingPositionStart.MuiButton-loading': {
|
|
104
|
-
paddingLeft: '
|
|
110
|
+
paddingLeft: spacingRoleBasedTokens['space-24'],
|
|
105
111
|
'.MuiButton-loadingIndicatorStart': { left: 0 },
|
|
106
112
|
},
|
|
107
113
|
'&.MuiButton-loadingPositionEnd.MuiButton-loading': {
|
|
108
|
-
paddingRight: '
|
|
114
|
+
paddingRight: spacingRoleBasedTokens['space-24'],
|
|
109
115
|
'.MuiButton-loadingIndicatorEnd': { right: 0 },
|
|
110
116
|
},
|
|
111
117
|
},
|
|
@@ -116,20 +122,20 @@ const MuiButton: Components['MuiButton'] = {
|
|
|
116
122
|
variant: 'link',
|
|
117
123
|
},
|
|
118
124
|
style: {
|
|
119
|
-
color:
|
|
120
|
-
fontSize: '
|
|
121
|
-
lineHeight: '
|
|
122
|
-
padding: '
|
|
125
|
+
color: colorTokens['text-secondary'],
|
|
126
|
+
fontSize: typographyTokens['font-size-button-compact'],
|
|
127
|
+
lineHeight: typographyTokens['line-height-button-compact'],
|
|
128
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-regular']} ${spacingTokens['spacing-aliases-button-padding-x-link']}`,
|
|
123
129
|
|
|
124
130
|
'&:not(.Mui-disabled)': {
|
|
125
131
|
'&:hover': {
|
|
126
132
|
backgroundColor: 'transparent',
|
|
127
|
-
color:
|
|
133
|
+
color: colorPrimitives.neutrals[700],
|
|
128
134
|
},
|
|
129
135
|
|
|
130
136
|
'&:active': {
|
|
131
137
|
backgroundColor: 'transparent',
|
|
132
|
-
color:
|
|
138
|
+
color: colorPrimitives.neutrals[900],
|
|
133
139
|
},
|
|
134
140
|
},
|
|
135
141
|
},
|
|
@@ -140,7 +146,7 @@ const MuiButton: Components['MuiButton'] = {
|
|
|
140
146
|
variant: 'link',
|
|
141
147
|
},
|
|
142
148
|
style: {
|
|
143
|
-
color:
|
|
149
|
+
color: colorPrimitives.neutrals[700],
|
|
144
150
|
textDecoration: 'underline',
|
|
145
151
|
},
|
|
146
152
|
},
|
|
@@ -152,53 +158,47 @@ const MuiButton: Components['MuiButton'] = {
|
|
|
152
158
|
},
|
|
153
159
|
styleOverrides: {
|
|
154
160
|
root: {
|
|
155
|
-
borderRadius: '
|
|
156
|
-
fontSize: '
|
|
157
|
-
height:
|
|
161
|
+
borderRadius: borderTokens['radius-button'],
|
|
162
|
+
fontSize: typographyTokens['font-size-button-regular'],
|
|
163
|
+
height: buttonDimensions.medium,
|
|
158
164
|
letterSpacing: 0,
|
|
159
|
-
lineHeight: '
|
|
160
|
-
|
|
165
|
+
lineHeight: typographyTokens['line-height-button-regular'],
|
|
166
|
+
// Private layout alias; the loading indicators read it too.
|
|
167
|
+
'--_rc-button-padding-x': spacingTokens['spacing-aliases-button-padding-x-regular'],
|
|
168
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-regular']} var(--_rc-button-padding-x)`,
|
|
161
169
|
position: 'relative',
|
|
162
170
|
textTransform: 'none',
|
|
171
|
+
'.MuiButton-startIcon': {
|
|
172
|
+
marginLeft: 0,
|
|
173
|
+
marginRight: spacingTokens['spacing-aliases-button-icon-text-gap-regular'],
|
|
174
|
+
},
|
|
175
|
+
'.MuiButton-endIcon': {
|
|
176
|
+
marginRight: 0,
|
|
177
|
+
marginLeft: spacingTokens['spacing-aliases-button-icon-text-gap-regular'],
|
|
178
|
+
},
|
|
179
|
+
'.MuiButton-startIcon > svg, .MuiButton-endIcon > svg, & > svg': {
|
|
180
|
+
width: sizeTokens['icon-size-button-regular'],
|
|
181
|
+
height: sizeTokens['icon-size-button-regular'],
|
|
182
|
+
flexShrink: 0,
|
|
183
|
+
},
|
|
184
|
+
'.MuiButton-loadingIndicatorStart': {
|
|
185
|
+
left: 'var(--_rc-button-padding-x)',
|
|
186
|
+
},
|
|
187
|
+
'.MuiButton-loadingIndicatorEnd': {
|
|
188
|
+
right: 'var(--_rc-button-padding-x)',
|
|
189
|
+
},
|
|
163
190
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
// on every light-surface variant (~1.85:1). Override to grey[600] here —
|
|
167
|
-
// (0,3,0) specificity beats MUI's single-class rule, while the more
|
|
168
|
-
// specific colorLight / colorGhost blocks below still win on dark
|
|
169
|
-
// surfaces. The `.Mui-disabled` half is dropped: `loadingPositionCenter`
|
|
170
|
-
// is only applied while `loading` is truthy.
|
|
171
|
-
'&.MuiButton-loadingPositionCenter.MuiButton-loading': {
|
|
172
|
-
color: 'transparent !important',
|
|
191
|
+
'&.MuiButton-loadingPositionCenter.MuiButton-loading.Mui-disabled': {
|
|
192
|
+
color: 'transparent',
|
|
173
193
|
'& .MuiButton-startIcon, & .MuiButton-endIcon': {
|
|
174
194
|
visibility: 'hidden',
|
|
175
195
|
},
|
|
176
196
|
'& .MuiButton-loadingIndicator': {
|
|
177
|
-
color:
|
|
197
|
+
color: colorTokens['text-disabled'],
|
|
178
198
|
},
|
|
179
199
|
},
|
|
180
|
-
'&.MuiButton-contained:focus-visible:not(:active)
|
|
181
|
-
{
|
|
182
|
-
background: 'transparent',
|
|
183
|
-
border: '2px solid',
|
|
184
|
-
borderColor: grey[950],
|
|
185
|
-
borderRadius: '0.75rem',
|
|
186
|
-
content: '""',
|
|
187
|
-
height: 'calc(100% + 8px)',
|
|
188
|
-
left: '-4px',
|
|
189
|
-
position: 'absolute',
|
|
190
|
-
top: '-4px',
|
|
191
|
-
width: 'calc(100% + 8px)',
|
|
192
|
-
zIndex: 1,
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
'&.MuiButton-outlined:focus-visible:not(:active)::before': {
|
|
196
|
-
borderRadius: '0.75rem',
|
|
197
|
-
height: 'calc(100% + 8px)',
|
|
198
|
-
left: '-4px',
|
|
199
|
-
top: '-4px',
|
|
200
|
-
width: 'calc(100% + 8px)',
|
|
201
|
-
},
|
|
200
|
+
'&.MuiButton-contained:focus-visible:not(:active), &.MuiButton-outlined:focus-visible:not(:active)':
|
|
201
|
+
{ boxShadow: effectTokens['focus-ring-default'] },
|
|
202
202
|
|
|
203
203
|
'.MuiButton-startIcon, .MuiButton-endIcon, & > svg': {
|
|
204
204
|
color: 'inherit',
|
|
@@ -222,288 +222,297 @@ const MuiButton: Components['MuiButton'] = {
|
|
|
222
222
|
},
|
|
223
223
|
|
|
224
224
|
sizeSmall: {
|
|
225
|
-
height:
|
|
226
|
-
|
|
225
|
+
height: buttonDimensions.small,
|
|
226
|
+
fontSize: typographyTokens['font-size-button-compact'],
|
|
227
|
+
lineHeight: typographyTokens['line-height-button-compact'],
|
|
228
|
+
'--_rc-button-padding-x': spacingTokens['spacing-aliases-button-padding-x-small'],
|
|
229
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-small']} var(--_rc-button-padding-x)`,
|
|
230
|
+
'.MuiButton-startIcon > svg, .MuiButton-endIcon > svg, & > svg': {
|
|
231
|
+
width: sizeTokens['icon-size-button-small'],
|
|
232
|
+
height: sizeTokens['icon-size-button-small'],
|
|
233
|
+
flexShrink: 0,
|
|
234
|
+
},
|
|
235
|
+
'.MuiButton-startIcon': {
|
|
236
|
+
marginRight: spacingTokens['spacing-aliases-button-icon-text-gap-small'],
|
|
237
|
+
},
|
|
238
|
+
'.MuiButton-endIcon': {
|
|
239
|
+
marginLeft: spacingTokens['spacing-aliases-button-icon-text-gap-small'],
|
|
240
|
+
},
|
|
241
|
+
'.MuiButton-loadingIndicatorStart': {
|
|
242
|
+
left: 'var(--_rc-button-padding-x)',
|
|
243
|
+
},
|
|
244
|
+
'.MuiButton-loadingIndicatorEnd': {
|
|
245
|
+
right: 'var(--_rc-button-padding-x)',
|
|
246
|
+
},
|
|
227
247
|
},
|
|
228
248
|
|
|
229
249
|
sizeLarge: {
|
|
230
|
-
|
|
250
|
+
// No DS Large role exists; retain its horizontal primitive.
|
|
251
|
+
padding: `${spacingTokens['spacing-aliases-button-padding-y-regular']} ${spacingRoleBasedTokens['space-36']}`,
|
|
231
252
|
},
|
|
232
253
|
|
|
233
254
|
contained: {
|
|
234
|
-
'&.Mui-disabled': {
|
|
235
|
-
backgroundColor: `${grey[100]} !important`,
|
|
236
|
-
color: `${grey[600]} !important`,
|
|
237
|
-
opacity: 1,
|
|
238
|
-
},
|
|
239
|
-
|
|
240
255
|
'&.MuiButton-colorPrimary': {
|
|
241
|
-
color:
|
|
242
|
-
backgroundColor: primary
|
|
256
|
+
color: colorTokens['action-primary-text'],
|
|
257
|
+
backgroundColor: colorTokens['action-primary-bg'],
|
|
243
258
|
|
|
244
259
|
'&:hover': {
|
|
245
|
-
backgroundColor: primary
|
|
260
|
+
backgroundColor: colorTokens['action-primary-bg-hover'],
|
|
246
261
|
},
|
|
247
262
|
'&:active': {
|
|
248
|
-
backgroundColor: primary
|
|
263
|
+
backgroundColor: colorTokens['action-primary-bg-pressed'],
|
|
249
264
|
},
|
|
250
265
|
},
|
|
251
266
|
|
|
252
267
|
'&.MuiButton-colorGrey': {
|
|
253
|
-
color:
|
|
254
|
-
backgroundColor:
|
|
268
|
+
color: colorTokens['text-default'],
|
|
269
|
+
backgroundColor: colorTokens['surface-muted'],
|
|
255
270
|
|
|
256
271
|
'&:hover': {
|
|
257
|
-
backgroundColor:
|
|
272
|
+
backgroundColor: colorPrimitives.neutrals[200],
|
|
258
273
|
},
|
|
259
274
|
'&:active': {
|
|
260
|
-
backgroundColor:
|
|
275
|
+
backgroundColor: colorPrimitives.neutrals[300],
|
|
261
276
|
},
|
|
262
277
|
},
|
|
263
278
|
|
|
264
279
|
'&.MuiButton-colorDark': {
|
|
265
|
-
color: '
|
|
266
|
-
backgroundColor:
|
|
280
|
+
color: colorTokens['text-inverse'],
|
|
281
|
+
backgroundColor: colorPrimitives.neutrals[900],
|
|
267
282
|
|
|
268
283
|
'&:hover': {
|
|
269
|
-
backgroundColor:
|
|
284
|
+
backgroundColor: colorPrimitives.neutrals[800],
|
|
270
285
|
},
|
|
271
286
|
'&:active': {
|
|
272
|
-
backgroundColor:
|
|
287
|
+
backgroundColor: colorPrimitives.neutrals[700],
|
|
273
288
|
},
|
|
274
289
|
},
|
|
275
290
|
|
|
276
291
|
'&.MuiButton-colorSecondary': {
|
|
277
|
-
color:
|
|
278
|
-
backgroundColor:
|
|
292
|
+
color: colorPrimitives.greens[950],
|
|
293
|
+
backgroundColor: colorPrimitives.greens[200],
|
|
279
294
|
|
|
280
295
|
'&:hover': {
|
|
281
|
-
backgroundColor:
|
|
296
|
+
backgroundColor: colorPrimitives.greens[300],
|
|
282
297
|
},
|
|
283
298
|
'&:active': {
|
|
284
|
-
backgroundColor:
|
|
299
|
+
backgroundColor: colorPrimitives.greens[400],
|
|
285
300
|
},
|
|
286
301
|
},
|
|
287
302
|
|
|
288
303
|
'&.MuiButton-colorWarning': {
|
|
289
|
-
color:
|
|
290
|
-
backgroundColor:
|
|
304
|
+
color: colorPrimitives.yellows[950],
|
|
305
|
+
backgroundColor: colorPrimitives.yellows[200],
|
|
291
306
|
|
|
292
307
|
'&:hover': {
|
|
293
|
-
backgroundColor:
|
|
308
|
+
backgroundColor: colorPrimitives.yellows[300],
|
|
294
309
|
},
|
|
295
310
|
'&:active': {
|
|
296
|
-
backgroundColor:
|
|
311
|
+
backgroundColor: colorPrimitives.yellows[400],
|
|
297
312
|
},
|
|
298
313
|
},
|
|
299
314
|
|
|
300
315
|
'&.MuiButton-colorError': {
|
|
301
|
-
color:
|
|
302
|
-
backgroundColor:
|
|
316
|
+
color: colorTokens['action-destructive-text'],
|
|
317
|
+
backgroundColor: colorTokens['action-destructive-bg'],
|
|
303
318
|
|
|
304
319
|
'&:hover': {
|
|
305
|
-
backgroundColor:
|
|
320
|
+
backgroundColor: colorTokens['action-destructive-bg-hover'],
|
|
306
321
|
},
|
|
307
322
|
'&:active': {
|
|
308
|
-
backgroundColor:
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
'&:not(.Mui-disabled)': {
|
|
312
|
-
'&:focus-visible:not(:active)::before, &.MuiButton-outlined:focus-visible:not(:active)::before':
|
|
313
|
-
{
|
|
314
|
-
borderColor: error[700],
|
|
315
|
-
borderRadius: '0.75rem',
|
|
316
|
-
},
|
|
323
|
+
backgroundColor: colorTokens['action-destructive-bg-pressed'],
|
|
317
324
|
},
|
|
318
325
|
},
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
outlined: {
|
|
322
|
-
borderColor: grey[300],
|
|
323
|
-
borderWidth: '1px',
|
|
324
|
-
|
|
325
326
|
'&.Mui-disabled': {
|
|
326
|
-
backgroundColor:
|
|
327
|
-
|
|
328
|
-
color: `${grey[600]} !important`,
|
|
327
|
+
backgroundColor: colorTokens['action-primary-bg-disabled'],
|
|
328
|
+
color: colorTokens['action-primary-text-disabled'],
|
|
329
329
|
opacity: 1,
|
|
330
330
|
},
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
outlined: {
|
|
334
|
+
borderColor: colorTokens['action-secondary-border'],
|
|
335
|
+
borderWidth: borderTokens['border-default'],
|
|
331
336
|
|
|
332
337
|
'&.MuiButton-colorPrimary': {
|
|
333
|
-
borderColor:
|
|
334
|
-
color:
|
|
338
|
+
borderColor: colorPrimitives.cyans[600],
|
|
339
|
+
color: colorPrimitives.cyans[600],
|
|
335
340
|
backgroundColor: 'transparent',
|
|
336
341
|
|
|
337
342
|
'&:hover': {
|
|
338
|
-
backgroundColor:
|
|
343
|
+
backgroundColor: colorTokens['surface-brand-subtle'],
|
|
339
344
|
},
|
|
340
345
|
'&:active': {
|
|
341
|
-
backgroundColor:
|
|
346
|
+
backgroundColor: colorPrimitives.cyans[100],
|
|
342
347
|
},
|
|
343
348
|
},
|
|
344
349
|
|
|
345
350
|
'&.MuiButton-colorGrey': {
|
|
346
|
-
borderColor:
|
|
347
|
-
color:
|
|
348
|
-
backgroundColor: '
|
|
351
|
+
borderColor: colorTokens['action-secondary-border'],
|
|
352
|
+
color: colorTokens['action-secondary-text'],
|
|
353
|
+
backgroundColor: colorTokens['action-secondary-bg'],
|
|
349
354
|
|
|
350
355
|
'&:hover': {
|
|
351
|
-
backgroundColor:
|
|
356
|
+
backgroundColor: colorTokens['action-secondary-bg-hover'],
|
|
357
|
+
borderColor: colorTokens['action-secondary-border-hover'],
|
|
352
358
|
},
|
|
353
359
|
'&:active': {
|
|
354
|
-
backgroundColor:
|
|
360
|
+
backgroundColor: colorTokens['surface-muted'],
|
|
361
|
+
},
|
|
362
|
+
'&.Mui-disabled.MuiButton-loading': {
|
|
363
|
+
borderColor: colorTokens['action-secondary-border'],
|
|
355
364
|
},
|
|
356
365
|
},
|
|
357
366
|
|
|
358
367
|
'&.MuiButton-colorSecondary': {
|
|
359
|
-
borderColor:
|
|
360
|
-
color:
|
|
368
|
+
borderColor: colorPrimitives.greens[600],
|
|
369
|
+
color: colorPrimitives.greens[600],
|
|
361
370
|
backgroundColor: 'transparent',
|
|
362
371
|
|
|
363
372
|
'&:hover': {
|
|
364
|
-
backgroundColor:
|
|
373
|
+
backgroundColor: colorPrimitives.greens[50],
|
|
365
374
|
},
|
|
366
375
|
'&:active': {
|
|
367
|
-
backgroundColor:
|
|
376
|
+
backgroundColor: colorPrimitives.greens[100],
|
|
368
377
|
},
|
|
369
378
|
},
|
|
370
379
|
|
|
371
380
|
'&.MuiButton-colorWarning': {
|
|
372
|
-
borderColor:
|
|
373
|
-
color:
|
|
381
|
+
borderColor: colorPrimitives.yellows[600],
|
|
382
|
+
color: colorPrimitives.yellows[600],
|
|
374
383
|
backgroundColor: 'transparent',
|
|
375
384
|
|
|
376
385
|
'&:hover': {
|
|
377
|
-
backgroundColor:
|
|
386
|
+
backgroundColor: colorPrimitives.yellows[50],
|
|
378
387
|
},
|
|
379
388
|
'&:active': {
|
|
380
|
-
backgroundColor:
|
|
389
|
+
backgroundColor: colorPrimitives.yellows[100],
|
|
381
390
|
},
|
|
382
391
|
},
|
|
383
392
|
|
|
384
393
|
'&.MuiButton-colorError': {
|
|
385
|
-
borderColor:
|
|
386
|
-
color:
|
|
394
|
+
borderColor: colorPrimitives.red[600],
|
|
395
|
+
color: colorPrimitives.red[600],
|
|
387
396
|
backgroundColor: 'transparent',
|
|
388
397
|
|
|
389
398
|
'&:hover': {
|
|
390
|
-
backgroundColor:
|
|
399
|
+
backgroundColor: colorPrimitives.red[50],
|
|
391
400
|
},
|
|
392
401
|
'&:active': {
|
|
393
|
-
backgroundColor:
|
|
402
|
+
backgroundColor: colorPrimitives.red[100],
|
|
394
403
|
},
|
|
395
404
|
},
|
|
396
405
|
|
|
397
406
|
'&.MuiButton-colorLight': {
|
|
398
|
-
borderColor:
|
|
399
|
-
color:
|
|
407
|
+
borderColor: colorPrimitives.neutrals[50],
|
|
408
|
+
color: colorTokens['text-inverse'],
|
|
400
409
|
backgroundColor: 'transparent',
|
|
401
410
|
|
|
402
411
|
'&:hover': {
|
|
403
|
-
backgroundColor: overlays[
|
|
412
|
+
backgroundColor: colorPrimitives.overlays.white[8],
|
|
404
413
|
},
|
|
405
414
|
'&:active': {
|
|
406
|
-
backgroundColor: overlays[
|
|
415
|
+
backgroundColor: colorPrimitives.overlays.white[16],
|
|
407
416
|
},
|
|
408
417
|
'&.Mui-disabled': {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
418
|
+
backgroundColor: 'transparent',
|
|
419
|
+
borderColor: colorTokens['text-disabled'],
|
|
420
|
+
color: colorTokens['text-disabled'],
|
|
421
|
+
|
|
413
422
|
'& .MuiButton-loadingIndicator': {
|
|
414
|
-
color:
|
|
423
|
+
color: colorTokens['text-disabled'],
|
|
415
424
|
},
|
|
416
425
|
'&.MuiButton-loadingPositionCenter': {
|
|
417
|
-
color: 'transparent
|
|
426
|
+
color: 'transparent',
|
|
418
427
|
},
|
|
419
428
|
},
|
|
420
429
|
},
|
|
421
430
|
|
|
422
431
|
'&.MuiButton-colorGhost': {
|
|
423
432
|
borderColor: 'transparent',
|
|
424
|
-
color:
|
|
433
|
+
color: colorTokens['text-inverse'],
|
|
425
434
|
backgroundColor: 'transparent',
|
|
426
435
|
|
|
427
436
|
'&:hover': {
|
|
428
|
-
backgroundColor: overlays[
|
|
437
|
+
backgroundColor: colorPrimitives.overlays.white[8],
|
|
429
438
|
},
|
|
430
439
|
'&:active': {
|
|
431
|
-
backgroundColor: overlays[
|
|
440
|
+
backgroundColor: colorPrimitives.overlays.white[16],
|
|
432
441
|
},
|
|
433
442
|
'&.Mui-disabled': {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
// override MUI's `.MuiButton-loadingIndicator { color: action.disabled }`
|
|
439
|
-
// (dark grey ~ #0000000042) so the spinner stays visible while loading.
|
|
440
|
-
color: `${grey[300]} !important`,
|
|
443
|
+
backgroundColor: 'transparent',
|
|
444
|
+
borderColor: `transparent`,
|
|
445
|
+
|
|
446
|
+
color: colorPrimitives.neutrals[300],
|
|
441
447
|
'& .MuiButton-loadingIndicator': {
|
|
442
|
-
color:
|
|
448
|
+
color: colorPrimitives.neutrals[300],
|
|
443
449
|
},
|
|
444
|
-
|
|
445
|
-
// the specificity fight against the color override above (nested
|
|
446
|
-
// inside `.MuiButton-colorGhost`), so re-apply it here to hide the
|
|
447
|
-
// label/icon while the centered spinner shows.
|
|
450
|
+
|
|
448
451
|
'&.MuiButton-loadingPositionCenter': {
|
|
449
|
-
color: 'transparent
|
|
452
|
+
color: 'transparent',
|
|
450
453
|
},
|
|
451
454
|
},
|
|
452
455
|
},
|
|
456
|
+
'&.Mui-disabled': {
|
|
457
|
+
backgroundColor: colorTokens['action-primary-bg-disabled'],
|
|
458
|
+
borderColor: colorTokens['border-subtle'],
|
|
459
|
+
color: colorTokens['text-disabled'],
|
|
460
|
+
opacity: 1,
|
|
461
|
+
},
|
|
453
462
|
},
|
|
454
463
|
text: {
|
|
455
464
|
'&.MuiButton-colorGrey': {
|
|
456
|
-
color:
|
|
465
|
+
color: colorTokens['text-secondary'],
|
|
457
466
|
|
|
458
467
|
'&:hover': {
|
|
459
|
-
color:
|
|
468
|
+
color: colorPrimitives.neutrals[700],
|
|
460
469
|
},
|
|
461
470
|
'&:active': {
|
|
462
|
-
color:
|
|
471
|
+
color: colorPrimitives.neutrals[900],
|
|
463
472
|
},
|
|
464
473
|
},
|
|
465
474
|
|
|
466
475
|
'&.MuiButton-colorDark': {
|
|
467
|
-
color:
|
|
476
|
+
color: colorTokens['text-default'],
|
|
468
477
|
|
|
469
478
|
'&:hover': {
|
|
470
|
-
color:
|
|
479
|
+
color: colorPrimitives.neutrals[800],
|
|
471
480
|
},
|
|
472
481
|
'&:active': {
|
|
473
|
-
color:
|
|
482
|
+
color: colorPrimitives.neutrals[700],
|
|
474
483
|
},
|
|
475
484
|
},
|
|
476
485
|
|
|
477
486
|
'&.MuiButton-colorSecondary': {
|
|
478
|
-
color:
|
|
487
|
+
color: colorPrimitives.greens[600],
|
|
479
488
|
|
|
480
489
|
'&:hover': {
|
|
481
|
-
color:
|
|
490
|
+
color: colorPrimitives.greens[700],
|
|
482
491
|
},
|
|
483
492
|
'&:active': {
|
|
484
|
-
color:
|
|
493
|
+
color: colorPrimitives.greens[900],
|
|
485
494
|
},
|
|
486
495
|
},
|
|
487
496
|
|
|
488
497
|
'&.MuiButton-colorWarning': {
|
|
489
|
-
color:
|
|
498
|
+
color: colorPrimitives.yellows[600],
|
|
490
499
|
|
|
491
500
|
'&:hover': {
|
|
492
|
-
color:
|
|
501
|
+
color: colorPrimitives.yellows[700],
|
|
493
502
|
},
|
|
494
503
|
'&:active': {
|
|
495
|
-
color:
|
|
504
|
+
color: colorPrimitives.yellows[900],
|
|
496
505
|
},
|
|
497
506
|
},
|
|
498
507
|
|
|
499
508
|
'&.MuiButton-colorError': {
|
|
500
|
-
color:
|
|
509
|
+
color: colorPrimitives.red[600],
|
|
501
510
|
|
|
502
511
|
'&:hover': {
|
|
503
|
-
color:
|
|
512
|
+
color: colorPrimitives.red[700],
|
|
504
513
|
},
|
|
505
514
|
'&:active': {
|
|
506
|
-
color:
|
|
515
|
+
color: colorPrimitives.red[900],
|
|
507
516
|
},
|
|
508
517
|
},
|
|
509
518
|
},
|