@registrucentras/rc-ses-react-components 1.10.0 → 1.11.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/components/common/Badge/index.d.ts +10 -0
- package/dist/components/common/Switch/index.d.ts +10 -0
- package/dist/library/index.d.ts +3 -1
- package/dist/registrucentras-rc-ses-react-components.cjs +10 -10
- package/dist/registrucentras-rc-ses-react-components.js +2016 -1789
- package/dist/stories/components/display/Badge.stories.d.ts +9 -0
- package/dist/stories/components/inputs/Switch.stories.d.ts +17 -0
- package/dist/theme/light/MuiSwitch.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/common/Badge/index.test.tsx +129 -0
- package/src/components/common/Badge/index.tsx +162 -0
- package/src/components/common/Switch/index.test.tsx +214 -0
- package/src/components/common/Switch/index.tsx +49 -0
- package/src/i18n/namespaces/input/en.json +6 -0
- package/src/i18n/namespaces/input/lt.json +6 -0
- package/src/library/index.ts +4 -0
- package/src/stories/components/display/Badge.stories.tsx +165 -0
- package/src/stories/components/inputs/Switch.stories.tsx +70 -0
- package/src/theme/light/MuiSwitch.tsx +77 -0
- package/src/theme/light/index.tsx +2 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type RcSesBadgeProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
variant: 'neutral' | 'success' | 'warning' | 'error' | 'info' | 'brand';
|
|
4
|
+
size: 'small' | 'regular';
|
|
5
|
+
showIcon?: boolean;
|
|
6
|
+
showClose?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
};
|
|
9
|
+
declare function RcSesBadge(props: RcSesBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default RcSesBadge;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SwitchProps } from '@mui/material';
|
|
2
|
+
export type RcSesSwitchProps = SwitchProps & ({
|
|
3
|
+
label: string;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
} | {
|
|
6
|
+
label?: undefined;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
});
|
|
9
|
+
declare function RcSesSwitch(props: RcSesSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default RcSesSwitch;
|
package/dist/library/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { default as RcSesIconProps } from '../assets/IconProps';
|
|
|
2
2
|
import { default as RcSesAccordion } from '../components/common/Accordion';
|
|
3
3
|
import { default as useAccordionController } from '../components/common/Accordion/hooks/useAccordionController';
|
|
4
4
|
import { default as RcSesAlert } from '../components/common/Alert';
|
|
5
|
+
import { default as RcSesBadge } from '../components/common/Badge';
|
|
5
6
|
import { default as RcSesBreadcrumbs } from '../components/common/Breadcrumbs';
|
|
6
7
|
import { default as RcSesButton } from '../components/common/Button';
|
|
7
8
|
import { default as RcSesButtonWithPopover } from '../components/common/Button/ButtonWithPopover';
|
|
@@ -13,6 +14,7 @@ import { default as ListWithIcons } from '../components/common/ListWithIcons';
|
|
|
13
14
|
import { default as RcSesSegmentedControl } from '../components/common/SegmentedControl';
|
|
14
15
|
import { default as RcSesSnackbar } from '../components/common/Snackbar';
|
|
15
16
|
import { RcSesSnackbarProvider, useSnackbar } from '../components/common/Snackbar/SnackbarProvider';
|
|
17
|
+
import { default as RcSesSwitch } from '../components/common/Switch';
|
|
16
18
|
import { default as RcSesTab } from '../components/common/Tabs/Tab';
|
|
17
19
|
import { default as RcSesTabPanel } from '../components/common/Tabs/TabPanel';
|
|
18
20
|
import { default as RcSesTabs } from '../components/common/Tabs/Tabs';
|
|
@@ -55,7 +57,7 @@ declare module '@mui/x-date-pickers/models' {
|
|
|
55
57
|
}
|
|
56
58
|
export { RcSesPalette, RcSesTheme };
|
|
57
59
|
export { RcSesAccordion, useAccordionController };
|
|
58
|
-
export { RcSesAlert, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesModal, };
|
|
60
|
+
export { RcSesAlert, RcSesBadge, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesFullPageLoader, RcSesLoader, RcSesLoadingSpinner, RcSesCard, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesModal, RcSesSwitch, };
|
|
59
61
|
export { RcSesSegmentedControl };
|
|
60
62
|
export { RcSesCheckbox, RcSesCheckboxFormControl, RcSesSimpleCheckbox };
|
|
61
63
|
export { useSnackbar };
|