@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
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare const textFieldStyles: {
|
|
2
|
+
readonly minWidth: 0;
|
|
3
|
+
readonly width: "100%";
|
|
4
|
+
readonly '&&[data-multiline="true"] .MuiOutlinedInput-root': {
|
|
5
|
+
readonly height: "auto";
|
|
6
|
+
readonly minHeight: string;
|
|
7
|
+
readonly paddingBlock: "var(--rc-space-input-padding-y)";
|
|
8
|
+
};
|
|
9
|
+
readonly '&&[data-leading-hidden="true"] .MuiOutlinedInput-root .MuiOutlinedInput-input': {
|
|
10
|
+
readonly paddingLeft: 0;
|
|
11
|
+
};
|
|
12
|
+
readonly '&&[data-trailing-hidden="true"] .MuiOutlinedInput-root .MuiOutlinedInput-input': {
|
|
13
|
+
readonly paddingRight: 0;
|
|
14
|
+
};
|
|
15
|
+
readonly '&& .MuiOutlinedInput-root': {
|
|
16
|
+
readonly height: string;
|
|
17
|
+
readonly boxSizing: "border-box";
|
|
18
|
+
readonly borderRadius: "var(--rc-radius-input)";
|
|
19
|
+
readonly backgroundColor: "var(--rc-color-surface-base)";
|
|
20
|
+
readonly padding: "0 var(--rc-space-12)";
|
|
21
|
+
readonly gap: "var(--rc-space-8)";
|
|
22
|
+
readonly '& .MuiOutlinedInput-input': {
|
|
23
|
+
readonly padding: 0;
|
|
24
|
+
readonly paddingLeft: "var(--rc-space-8)";
|
|
25
|
+
readonly paddingRight: "var(--rc-space-8)";
|
|
26
|
+
readonly minWidth: 0;
|
|
27
|
+
readonly height: "auto";
|
|
28
|
+
readonly fontSize: "var(--rc-typography-font-size-body-regular)";
|
|
29
|
+
readonly lineHeight: "var(--rc-typography-line-height-body-regular)";
|
|
30
|
+
readonly color: "var(--rc-color-text-default)";
|
|
31
|
+
readonly '&::placeholder': {
|
|
32
|
+
readonly color: "var(--rc-color-text-muted)";
|
|
33
|
+
readonly opacity: 1;
|
|
34
|
+
};
|
|
35
|
+
readonly '&::-webkit-search-cancel-button': {
|
|
36
|
+
readonly WebkitAppearance: "none";
|
|
37
|
+
};
|
|
38
|
+
readonly '&.Mui-disabled': {
|
|
39
|
+
readonly color: "var(--rc-color-text-muted)";
|
|
40
|
+
readonly WebkitTextFillColor: "var(--rc-color-text-muted)";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
readonly '&.MuiInputBase-adornedStart .MuiOutlinedInput-input': {
|
|
44
|
+
readonly paddingLeft: 0;
|
|
45
|
+
};
|
|
46
|
+
readonly '&.MuiInputBase-adornedEnd .MuiOutlinedInput-input': {
|
|
47
|
+
readonly paddingRight: 0;
|
|
48
|
+
};
|
|
49
|
+
readonly '& .MuiInputAdornment-root': {
|
|
50
|
+
readonly margin: 0;
|
|
51
|
+
readonly color: "var(--rc-color-text-secondary)";
|
|
52
|
+
readonly fontSize: "var(--rc-typography-font-size-body-regular)";
|
|
53
|
+
readonly lineHeight: "var(--rc-typography-line-height-body-regular)";
|
|
54
|
+
};
|
|
55
|
+
readonly '& .MuiOutlinedInput-notchedOutline': {
|
|
56
|
+
readonly borderColor: "var(--rc-color-border-strong)";
|
|
57
|
+
readonly borderWidth: "var(--rc-stroke-1)";
|
|
58
|
+
readonly boxShadow: "none";
|
|
59
|
+
};
|
|
60
|
+
readonly '&:hover:not(.Mui-disabled):not(.Mui-readOnly):not(.Mui-focused) .MuiOutlinedInput-notchedOutline': {
|
|
61
|
+
readonly borderColor: "var(--rc-color-control-border)";
|
|
62
|
+
};
|
|
63
|
+
readonly '&.Mui-error .MuiOutlinedInput-notchedOutline': {
|
|
64
|
+
readonly borderColor: "var(--rc-color-status-error-border)";
|
|
65
|
+
};
|
|
66
|
+
readonly '&.Mui-error:hover:not(.Mui-disabled):not(.Mui-readOnly):not(.Mui-focused)': {
|
|
67
|
+
readonly backgroundColor: "var(--rc-color-status-error-bg)";
|
|
68
|
+
readonly '& .MuiOutlinedInput-notchedOutline': {
|
|
69
|
+
readonly borderColor: "var(--rc-color-status-error-border)";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly '&.Mui-focused, &.Mui-focused.Mui-error': {
|
|
73
|
+
readonly backgroundColor: "var(--rc-color-surface-base)";
|
|
74
|
+
readonly '& .MuiOutlinedInput-notchedOutline': {
|
|
75
|
+
readonly borderColor: "var(--rc-color-border-focus)";
|
|
76
|
+
readonly borderWidth: "var(--rc-border-focus)";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly '&.Mui-disabled': {
|
|
80
|
+
readonly opacity: 0.6;
|
|
81
|
+
readonly backgroundColor: "var(--rc-color-surface-muted)";
|
|
82
|
+
readonly '& .MuiOutlinedInput-notchedOutline': {
|
|
83
|
+
readonly borderColor: "var(--rc-color-border-subtle)";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare const inputActionStyles: {
|
|
89
|
+
readonly width: "20px";
|
|
90
|
+
readonly height: "20px";
|
|
91
|
+
readonly padding: 0;
|
|
92
|
+
readonly color: "var(--rc-color-text-secondary)";
|
|
93
|
+
readonly '&::after': {
|
|
94
|
+
readonly content: "\"\"";
|
|
95
|
+
readonly position: "absolute";
|
|
96
|
+
readonly inset: "-2px";
|
|
97
|
+
};
|
|
98
|
+
readonly '&.Mui-focusVisible': {
|
|
99
|
+
readonly boxShadow: "var(--rc-focus-ring-default)";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { StackProps } from '@mui/material';
|
|
2
2
|
declare const LOADER_SIZE_MAP: {
|
|
3
3
|
readonly small: {
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
4
|
+
readonly spinnerSize: 24;
|
|
5
|
+
readonly strokeWidth: 2.5;
|
|
6
|
+
readonly fontSize: "var(--rc-typography-font-size-body-small)";
|
|
7
|
+
readonly lineHeight: "var(--rc-typography-line-height-body-small)";
|
|
7
8
|
};
|
|
8
9
|
readonly medium: {
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
10
|
+
readonly spinnerSize: 40;
|
|
11
|
+
readonly strokeWidth: 3;
|
|
12
|
+
readonly fontSize: "var(--rc-typography-font-size-body-regular)";
|
|
13
|
+
readonly lineHeight: "var(--rc-typography-line-height-body-regular)";
|
|
12
14
|
};
|
|
13
15
|
readonly large: {
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
16
|
+
readonly spinnerSize: 64;
|
|
17
|
+
readonly strokeWidth: 4;
|
|
18
|
+
readonly fontSize: "var(--rc-typography-font-size-body-regular)";
|
|
19
|
+
readonly lineHeight: "var(--rc-typography-line-height-body-regular)";
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
22
|
export type RcSesLoaderSize = keyof typeof LOADER_SIZE_MAP;
|
|
@@ -4,6 +4,7 @@ export interface RcSesBottomSheetProps extends Omit<MuiDialogProps, 'children' |
|
|
|
4
4
|
title?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
showBack?: boolean;
|
|
7
|
+
showClose?: boolean;
|
|
7
8
|
onBack?: () => void;
|
|
8
9
|
primaryActionLabel?: string;
|
|
9
10
|
onPrimaryAction?: () => void;
|
|
@@ -13,7 +14,7 @@ export interface RcSesBottomSheetProps extends Omit<MuiDialogProps, 'children' |
|
|
|
13
14
|
secondaryActionDisabled?: boolean;
|
|
14
15
|
disableBackdropClose?: boolean;
|
|
15
16
|
size?: 'sm' | 'md';
|
|
16
|
-
onClose?: (event: unknown, reason: 'backdropClick' | 'escapeKeyDown' | 'swipeDown') => void;
|
|
17
|
+
onClose?: (event: unknown, reason: 'backdropClick' | 'escapeKeyDown' | 'swipeDown' | 'closeButtonClick') => void;
|
|
17
18
|
}
|
|
18
|
-
declare function RcSesBottomSheet({ title, children, showBack, onBack, primaryActionLabel, onPrimaryAction, primaryActionDisabled, secondaryActionLabel, onSecondaryAction, secondaryActionDisabled, onClose, disableBackdropClose, size, open, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, scroll, transitionDuration, ...props }: RcSesBottomSheetProps): import("react").JSX.Element;
|
|
19
|
+
declare function RcSesBottomSheet({ title, children, showBack, showClose, onBack, primaryActionLabel, onPrimaryAction, primaryActionDisabled, secondaryActionLabel, onSecondaryAction, secondaryActionDisabled, onClose, disableBackdropClose, size, open, 'aria-labelledby': ariaLabelledByProp, 'aria-describedby': ariaDescribedByProp, scroll, transitionDuration, ...props }: RcSesBottomSheetProps): import("react").JSX.Element;
|
|
19
20
|
export default RcSesBottomSheet;
|
|
@@ -7,5 +7,5 @@ export interface RcSesDialogProps extends Omit<MuiDialogProps, 'children' | 'tit
|
|
|
7
7
|
actions: ReactNode;
|
|
8
8
|
size?: DialogSize;
|
|
9
9
|
}
|
|
10
|
-
declare function RcSesDialog({ dialogTitle, children, actions, onClose, size, ...props }: RcSesDialogProps): import("react").JSX.Element;
|
|
10
|
+
declare function RcSesDialog({ dialogTitle, children, actions, onClose, size, className, ...props }: RcSesDialogProps): import("react").JSX.Element;
|
|
11
11
|
export default RcSesDialog;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const breakpoints: readonly [{
|
|
3
|
+
readonly key: "xs";
|
|
4
|
+
readonly min: 0;
|
|
5
|
+
}, {
|
|
6
|
+
readonly key: "sm";
|
|
7
|
+
readonly min: 600;
|
|
8
|
+
}, {
|
|
9
|
+
readonly key: "md";
|
|
10
|
+
readonly min: 900;
|
|
11
|
+
}, {
|
|
12
|
+
readonly key: "lg";
|
|
13
|
+
readonly min: 1200;
|
|
14
|
+
}];
|
|
15
|
+
export type Breakpoint = (typeof breakpoints)[number]['key'];
|
|
16
|
+
/** Strips the `var(--rc-…)` wrapper from a token map value. */
|
|
17
|
+
export declare const cssName: (ref: string) => string;
|
|
18
|
+
export declare function rawAt(name: string, bp?: Breakpoint): string | undefined;
|
|
19
|
+
/** Token names a role passes through, excluding itself. */
|
|
20
|
+
export declare function chainOf(name: string, bp?: Breakpoint): string[];
|
|
21
|
+
export declare function literalOf(name: string, bp?: Breakpoint): string;
|
|
22
|
+
export declare const isResponsive: (name: string) => boolean;
|
|
23
|
+
export declare function toPx(value: string): string;
|
|
24
|
+
export declare function parseHex(value: string): {
|
|
25
|
+
hex: string;
|
|
26
|
+
alpha: number;
|
|
27
|
+
dark: boolean;
|
|
28
|
+
} | undefined;
|
|
29
|
+
export declare function useBreakpoint(): Breakpoint;
|
|
30
|
+
export declare const mono = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
31
|
+
export declare const hairline: string;
|
|
32
|
+
export declare function Code({ children, muted }: {
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
muted?: boolean;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
36
|
+
export declare function Pill({ children }: {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
/** `role → primitive` path, the part designers map back to Figma variables. */
|
|
40
|
+
export declare function Chain({ name, bp }: {
|
|
41
|
+
name: string;
|
|
42
|
+
bp?: Breakpoint;
|
|
43
|
+
}): import("react").JSX.Element;
|
|
44
|
+
export declare function DocPage({ title, lead, children, }: {
|
|
45
|
+
title: string;
|
|
46
|
+
lead: string;
|
|
47
|
+
children: ReactNode;
|
|
48
|
+
}): import("react").JSX.Element;
|
|
49
|
+
export declare function Section({ title, lead, children, }: {
|
|
50
|
+
title: string;
|
|
51
|
+
lead?: string;
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
}): import("react").JSX.Element;
|
|
54
|
+
/** Bordered list; each child row shares the grid template. */
|
|
55
|
+
export declare function Table({ columns, head, children, }: {
|
|
56
|
+
columns: string;
|
|
57
|
+
head?: ReactNode[];
|
|
58
|
+
children: ReactNode;
|
|
59
|
+
}): import("react").JSX.Element;
|
|
60
|
+
export declare function Row({ children }: {
|
|
61
|
+
children: ReactNode;
|
|
62
|
+
}): import("react").JSX.Element;
|
|
63
|
+
/** Values per breakpoint; repeats are dimmed so the change points stand out. */
|
|
64
|
+
export declare function ResponsiveValues({ name, format, }: {
|
|
65
|
+
name: string;
|
|
66
|
+
format?: (value: string) => string;
|
|
67
|
+
}): import("react").JSX.Element;
|
|
68
|
+
/** Dotted stage the specimens sit on. */
|
|
69
|
+
export declare function Stage({ children, height, width, }: {
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
height?: number;
|
|
72
|
+
width?: number | string;
|
|
73
|
+
}): import("react").JSX.Element;
|
|
74
|
+
export declare const numericSuffix: (name: string) => number;
|
package/dist/library/index.d.ts
CHANGED
|
@@ -13,10 +13,13 @@ import { default as RcSesCard } from '../components/common/Card';
|
|
|
13
13
|
import { default as RcSesCardShell } from '../components/common/CardShell';
|
|
14
14
|
import { default as RcSesCardFooter } from '../components/common/CardShell/CardFooter';
|
|
15
15
|
import { default as DataPagination } from '../components/common/DataPagination';
|
|
16
|
+
import { default as RcSesDivider } from '../components/common/Divider';
|
|
17
|
+
import { default as RcSesEmptyState } from '../components/common/EmptyState';
|
|
16
18
|
import { default as RcSesFilterChip } from '../components/common/FilterChip';
|
|
17
19
|
import { default as RcSesIconWithCircularBackground } from '../components/common/IconWithCircularBackground';
|
|
18
20
|
import { default as RcSesIconWithSquareBackground } from '../components/common/IconWithSquareBackground';
|
|
19
21
|
import { default as RcSesImageCard } from '../components/common/ImageCard';
|
|
22
|
+
import { default as RcSesLinkTile } from '../components/common/LinkTile';
|
|
20
23
|
import { default as ListWithIcons } from '../components/common/ListWithIcons';
|
|
21
24
|
import { default as RcSesSegmentedControl } from '../components/common/SegmentedControl';
|
|
22
25
|
import { default as RcSesServiceLinks } from '../components/common/ServiceLinks';
|
|
@@ -70,14 +73,27 @@ declare module '@mui/x-date-pickers/models' {
|
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
export { RcSesPalette, RcSesTheme };
|
|
76
|
+
export { createRcSesTokenTheme } from '../theme/tokenTheme';
|
|
77
|
+
export type { RcSesTokenThemeOptions, RcSesNativeTheme } from '../theme/tokenTheme';
|
|
73
78
|
export { RcSesAccordion, useAccordionController };
|
|
79
|
+
export type { AccordionProps, AccordionMenuItem } from '../components/common/Accordion';
|
|
80
|
+
export { RcSesLinkTile };
|
|
81
|
+
export type { LinkTileProps } from '../components/common/LinkTile';
|
|
82
|
+
export { RcSesDivider };
|
|
83
|
+
export type { DividerProps } from '../components/common/Divider';
|
|
74
84
|
export { RcSesAdvancedList, RcSesAdvancedListItem, RcSesAdvancedListItemShell };
|
|
75
|
-
export { RcSesAlert, RcSesBadge, RcSesFilterChip, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesCardShell, RcSesTitleBlock, RcSesCardFooter, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesStepCard, RcSesSwitch, RcSesModal, RcSesBottomSheet, RcSesDrawer, };
|
|
85
|
+
export { RcSesAlert, RcSesEmptyState, RcSesBadge, RcSesFilterChip, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesCardShell, RcSesTitleBlock, RcSesCardFooter, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesStepCard, RcSesSwitch, RcSesModal, RcSesBottomSheet, RcSesDrawer, };
|
|
76
86
|
export { RcSesSegmentedControl };
|
|
77
87
|
export { RcSesSideNavLayout };
|
|
78
88
|
export { RcSesCheckbox, RcSesCheckboxFormControl, RcSesSimpleCheckbox };
|
|
89
|
+
export { default as RcSesCheckboxMark } from '../components/common/CheckboxMark';
|
|
90
|
+
export type { EmptyStateProps, EmptyStateType, EmptyStateSize, } from '../components/common/EmptyState';
|
|
91
|
+
export type { CheckboxMarkProps } from '../components/common/CheckboxMark';
|
|
92
|
+
export { default as RcSesRadioMark } from '../components/common/RadioMark';
|
|
93
|
+
export type { RadioMarkProps } from '../components/common/RadioMark';
|
|
79
94
|
export { useSnackbar };
|
|
80
95
|
export { RcSesDatepicker };
|
|
96
|
+
export type { DatepickerProps, DateRangeValue, RangeDatepickerProps, } from '../components/form/inputs/Datepicker';
|
|
81
97
|
export { RcSesFileUpload };
|
|
82
98
|
export { RcSesFileDropzone };
|
|
83
99
|
export { RcSesNumberStepper };
|
|
@@ -89,7 +105,11 @@ export { RcSesSelect };
|
|
|
89
105
|
export { RcSesTab, RcSesTabPanel, RcSesTabs, RcSesTabsWrapper };
|
|
90
106
|
export { RcSesTooltip };
|
|
91
107
|
export { RcSesTextField };
|
|
108
|
+
export type { TextFieldProps, TextFieldPreset } from '../components/form/inputs/TextField';
|
|
92
109
|
export { DataPagination };
|
|
110
|
+
export type { DataPaginationProps } from '../components/common/DataPagination';
|
|
111
|
+
export { default as ExpandButton } from '../components/common/DataPagination/components/ExpandButton';
|
|
112
|
+
export type { ExpandButtonProps } from '../components/common/DataPagination/components/ExpandButton';
|
|
93
113
|
export { ListWithIcons };
|
|
94
114
|
export { RcSesServiceLinks };
|
|
95
115
|
export { ServiceWizardStepper };
|
|
@@ -102,3 +122,12 @@ export type { RcSesIconProps };
|
|
|
102
122
|
export { RcSesIconWithCircularBackground };
|
|
103
123
|
export { RcSesIconWithSquareBackground };
|
|
104
124
|
export * from './icons';
|
|
125
|
+
export { colorPrimitives, colorTokens } from '../theme/colorTokens';
|
|
126
|
+
export { typographyTokens, typographyRoleVariants } from '../theme/typographyTokens';
|
|
127
|
+
export type { RcSesTypographyRole, RcSesNamedTypographyVariant, } from '../theme/typographyTokens';
|
|
128
|
+
export { spacingRoleBasedTokens } from '../theme/spacingRoleBasedTokens';
|
|
129
|
+
export { layoutTokens } from '../theme/layoutTokens';
|
|
130
|
+
export { borderTokens } from '../theme/borderTokens';
|
|
131
|
+
export { sizeTokens } from '../theme/sizeTokens';
|
|
132
|
+
export { effectTokens } from '../theme/effectTokens';
|
|
133
|
+
export { backdropTokens } from '../theme/backdropTokens';
|