@registrucentras/rc-ses-react-components 1.7.0 → 1.8.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/CheckCircleFillIcon.d.ts +1 -1
- package/dist/assets/icons/CopyIcon.d.ts +3 -0
- package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
- package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +10 -0
- package/dist/components/common/Button/index.d.ts +1 -1
- package/dist/components/common/Snackbar/config.d.ts +1 -0
- package/dist/components/layout/ServiceHeader.d.ts +2 -2
- package/dist/components/overlays/Dialog/index.d.ts +11 -0
- package/dist/components/overlays/Modal/index.d.ts +16 -0
- package/dist/library/icons.d.ts +2 -1
- package/dist/library/index.d.ts +4 -1
- package/dist/library/types.d.ts +6 -1
- package/dist/registrucentras-rc-ses-react-components.cjs +10 -10
- package/dist/registrucentras-rc-ses-react-components.js +2170 -1929
- package/dist/stories/components/actions/Button.stories.d.ts +26 -0
- package/dist/stories/components/layout/ServiceHeader.stories.d.ts +1 -1
- package/dist/stories/components/overlays/Dialog.stories.d.ts +9 -0
- package/dist/stories/components/overlays/Modal.stories.d.ts +10 -0
- package/dist/stories/components/spinner/LoadingSpinner.stories.d.ts +62 -0
- package/package.json +1 -1
- package/src/assets/icons/CheckCircleFillIcon.tsx +8 -2
- package/src/assets/icons/CopyIcon.tsx +23 -0
- package/src/assets/icons/InfoFillIcon.tsx +8 -2
- package/src/assets/icons/QuestionFillIcon.tsx +8 -2
- package/src/assets/icons/WarningFillIcon.tsx +8 -2
- package/src/components/LoadingSpinner/LoadingSpinner.test.tsx +48 -0
- package/src/components/LoadingSpinner/LoadingSpinner.tsx +70 -0
- package/src/components/common/Button/index.test.tsx +175 -0
- package/src/components/common/Button/index.tsx +48 -4
- package/src/components/common/Snackbar/config.ts +5 -0
- package/src/components/common/Snackbar/index.tsx +25 -10
- package/src/components/layout/ServiceHeader.tsx +5 -7
- package/src/components/overlays/Dialog/index.test.tsx +85 -0
- package/src/components/overlays/Dialog/index.tsx +85 -0
- package/src/components/overlays/Modal/index.test.tsx +94 -0
- package/src/components/overlays/Modal/index.tsx +116 -0
- package/src/i18n/namespaces/common/en.json +3 -0
- package/src/i18n/namespaces/common/lt.json +3 -0
- package/src/i18n/namespaces/input/en.json +18 -0
- package/src/i18n/namespaces/input/lt.json +18 -0
- package/src/library/icons.ts +2 -0
- package/src/library/index.ts +6 -0
- package/src/library/types.ts +10 -0
- package/src/stories/components/actions/Button.stories.tsx +201 -0
- package/src/stories/components/feedback/Snackbar.stories.tsx +1 -1
- package/src/stories/components/icons/Icons.stories.tsx +5 -0
- package/src/stories/components/layout/ServiceHeader.stories.tsx +8 -15
- package/src/stories/components/overlays/Dialog.stories.tsx +271 -0
- package/src/stories/components/overlays/Modal.stories.tsx +98 -0
- package/src/stories/components/spinner/LoadingSpinner.stories.tsx +126 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as IconProps } from '../IconProps';
|
|
2
|
-
declare function CheckCircleIcon({ className, fillColor, size, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function CheckCircleIcon({ className, fillColor, size, weight, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CheckCircleIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as IconProps } from '../IconProps';
|
|
2
|
-
declare function InfoFillIcon({ className, size, fillColor, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function InfoFillIcon({ className, size, fillColor, weight, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default InfoFillIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as IconProps } from '../IconProps';
|
|
2
|
-
declare function QuestionFillIcon({ className, size, fillColor, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function QuestionFillIcon({ className, size, fillColor, weight, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default QuestionFillIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as IconProps } from '../IconProps';
|
|
2
|
-
declare function WarningFillIcon({ className, size, fillColor, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare function WarningFillIcon({ className, size, fillColor, weight, ...rest }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default WarningFillIcon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonOwnProps } from '@mui/material';
|
|
2
|
+
declare const VALID_SPINNER_COLORS: readonly ["primary", "secondary", "error", "warning", "info", "success", "inherit"];
|
|
3
|
+
export type RcSesSpinnerColor = (typeof VALID_SPINNER_COLORS)[number];
|
|
4
|
+
export declare function getSpinnerColor(color: ButtonOwnProps['color']): RcSesSpinnerColor;
|
|
5
|
+
export interface RcSesLoadingSpinnerProps {
|
|
6
|
+
color?: RcSesSpinnerColor;
|
|
7
|
+
size?: 'small' | 'medium' | 'large' | string;
|
|
8
|
+
}
|
|
9
|
+
declare function RcSesLoadingSpinner({ color, size, }: RcSesLoadingSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default RcSesLoadingSpinner;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
2
|
import { default as RcSesBreadcrumbs } from '../common/Breadcrumbs';
|
|
3
3
|
type Props = {
|
|
4
4
|
breadcrumbsProps: React.ComponentProps<typeof RcSesBreadcrumbs>;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
title: string;
|
|
7
|
-
backgroundColor?: '
|
|
7
|
+
backgroundColor?: CSSProperties['backgroundColor'];
|
|
8
8
|
};
|
|
9
9
|
declare function ServiceHeader({ breadcrumbsProps, children, title, backgroundColor, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default ServiceHeader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DialogProps as MuiDialogProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type DialogSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface RcSesDialogProps extends Omit<MuiDialogProps, 'children' | 'title' | 'PaperProps' | 'maxWidth'> {
|
|
5
|
+
dialogTitle: string | ReactNode;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
actions: ReactNode;
|
|
8
|
+
size?: DialogSize;
|
|
9
|
+
}
|
|
10
|
+
declare function RcSesDialog({ dialogTitle, children, actions, onClose, size, ...props }: RcSesDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default RcSesDialog;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RcSesDialogProps } from '../Dialog';
|
|
3
|
+
export type ModalVariant = 'destructive' | 'confirm' | 'success' | 'info';
|
|
4
|
+
export interface RcSesModalProps extends Omit<RcSesDialogProps, 'children' | 'dialogTitle' | 'actions'> {
|
|
5
|
+
title: string;
|
|
6
|
+
message: ReactNode;
|
|
7
|
+
variant?: ModalVariant;
|
|
8
|
+
showIcon?: boolean;
|
|
9
|
+
onPrimaryAction?: () => void;
|
|
10
|
+
onSecondaryAction?: () => void;
|
|
11
|
+
primaryActionLabel?: string;
|
|
12
|
+
secondaryActionLabel?: string;
|
|
13
|
+
actions?: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare function RcSesModal({ title, message, variant, showIcon, onPrimaryAction, onSecondaryAction, primaryActionLabel, secondaryActionLabel, actions: customActions, ...props }: RcSesModalProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default RcSesModal;
|
package/dist/library/icons.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { default as CheckUncheckedBoldIcon } from '../assets/icons/CheckUnchecke
|
|
|
19
19
|
import { default as CircleFilledIcon } from '../assets/icons/CircleFilledIcon';
|
|
20
20
|
import { default as CloseIcon } from '../assets/icons/CloseIcon';
|
|
21
21
|
import { default as CollapseChevronsIcon } from '../assets/icons/CollapseChevronsIcon';
|
|
22
|
+
import { default as CopyIcon } from '../assets/icons/CopyIcon';
|
|
22
23
|
import { default as DotCircleFilledIcon } from '../assets/icons/DotCircleFilledIcon';
|
|
23
24
|
import { default as ExpandChevronsIcon } from '../assets/icons/ExpandChevronsIcon';
|
|
24
25
|
import { default as InfoFillIcon } from '../assets/icons/InfoFillIcon';
|
|
@@ -39,4 +40,4 @@ import { default as WarningCircleIcon } from '../assets/icons/WarningCircleIcon'
|
|
|
39
40
|
import { default as WarningDiamondFillIcon } from '../assets/icons/WarningDiamondFillIcon';
|
|
40
41
|
import { default as WarningFillIcon } from '../assets/icons/WarningFillIcon';
|
|
41
42
|
import { default as XCircleFillIcon } from '../assets/icons/XCircleFillIcon';
|
|
42
|
-
export { RcSesLogo, ArrowLeftIcon, ArrowRightIcon, ArrowsClockwiseIcon, BarcodeIcon, CalendarBlankIcon, CaretDoubleLeftBoldIcon, CaretDoubleRightBoldIcon, CaretDownBoldIcon, CaretDownFill, CaretDownIcon, CaretLeftBoldIcon, CaretLeftIcon, CaretRightBoldIcon, CheckBoldIcon, CheckCircleFillIcon, CheckIcon, CheckUncheckedBoldIcon, CircleFilledIcon, CloseIcon, CollapseChevronsIcon, DotCircleFilledIcon, ExpandChevronsIcon, InfoFillIcon, MagnifyingGlassIcon, MapPinAreaIcon, MinusBoldIcon, PencilSimpleLineIcon, PlusBoldIcon, QuestionFillIcon, QuestionIcon, ScalesIcon, ScrollIcon, SearchHelpIcon, SearchXIcon, SpinnerGapBoldIcon, UploadSimpleIcon, WarningDiamondFillIcon, WarningFillIcon, WarningCircleIcon, XCircleFillIcon, };
|
|
43
|
+
export { RcSesLogo, ArrowLeftIcon, ArrowRightIcon, ArrowsClockwiseIcon, BarcodeIcon, CalendarBlankIcon, CaretDoubleLeftBoldIcon, CaretDoubleRightBoldIcon, CaretDownBoldIcon, CaretDownFill, CaretDownIcon, CaretLeftBoldIcon, CaretLeftIcon, CaretRightBoldIcon, CheckBoldIcon, CheckCircleFillIcon, CheckIcon, CheckUncheckedBoldIcon, CircleFilledIcon, CloseIcon, CollapseChevronsIcon, CopyIcon, DotCircleFilledIcon, ExpandChevronsIcon, InfoFillIcon, MagnifyingGlassIcon, MapPinAreaIcon, MinusBoldIcon, PencilSimpleLineIcon, PlusBoldIcon, QuestionFillIcon, QuestionIcon, ScalesIcon, ScrollIcon, SearchHelpIcon, SearchXIcon, SpinnerGapBoldIcon, UploadSimpleIcon, WarningDiamondFillIcon, WarningFillIcon, WarningCircleIcon, XCircleFillIcon, };
|
package/dist/library/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as RcSesIconProps } from '../assets/IconProps';
|
|
2
|
+
import { default as RcSesLoadingSpinner } from '../components/LoadingSpinner/LoadingSpinner';
|
|
2
3
|
import { default as RcSesAccordion } from '../components/common/Accordion';
|
|
3
4
|
import { default as useAccordionController } from '../components/common/Accordion/hooks/useAccordionController';
|
|
4
5
|
import { default as RcSesAlert } from '../components/common/Alert';
|
|
@@ -39,6 +40,8 @@ import { default as RcSesCardFormContainer } from '../components/layout/ServiceF
|
|
|
39
40
|
import { default as RcSesServiceHeader } from '../components/layout/ServiceHeader';
|
|
40
41
|
import { default as RcSesServicePage } from '../components/layout/ServicePage';
|
|
41
42
|
import { default as ServiceWizardStepper } from '../components/layout/ServiceWizardStepper';
|
|
43
|
+
import { default as RcSesDialog } from '../components/overlays/Dialog';
|
|
44
|
+
import { default as RcSesModal } from '../components/overlays/Modal';
|
|
42
45
|
import { default as RcSesTheme } from '../theme/light';
|
|
43
46
|
import { default as RcSesPalette } from '../theme/palette';
|
|
44
47
|
import { default as SelectableCardList } from '../components/common/SelectableCardList';
|
|
@@ -49,7 +52,7 @@ declare module '@mui/x-date-pickers/models' {
|
|
|
49
52
|
}
|
|
50
53
|
export { RcSesPalette, RcSesTheme };
|
|
51
54
|
export { RcSesAccordion, useAccordionController };
|
|
52
|
-
export { RcSesAlert, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesCard, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, };
|
|
55
|
+
export { RcSesAlert, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover, RcSesLoadingSpinner, RcSesCard, RcSesDialog, RcSesFooter, RcSesImageCard, RcSesSnackbar, RcSesSnackbarProvider, RcSesModal, };
|
|
53
56
|
export { RcSesCheckbox, RcSesCheckboxFormControl, RcSesSimpleCheckbox };
|
|
54
57
|
export { useSnackbar };
|
|
55
58
|
export { RcSesDatepicker };
|
package/dist/library/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RcSesLoadingSpinnerProps, RcSesSpinnerColor } from '../components/LoadingSpinner/LoadingSpinner';
|
|
1
2
|
import { RcSesCardProps } from '../components/common/Card';
|
|
2
3
|
import { ListWithIconsProps } from '../components/common/ListWithIcons';
|
|
3
4
|
import { ListWithIconsItemData } from '../components/common/ListWithIcons/ListWithIcons.types';
|
|
@@ -5,7 +6,11 @@ import { RcSesFormControlLabelProps } from '../components/form/inputs/FormContro
|
|
|
5
6
|
import { SimpleCheckboxProps } from '../components/form/inputs/SimpleCheckbox';
|
|
6
7
|
import { RcSesCardFormContainerProps } from '../components/layout/ServiceFormContainer/CardFormContainer';
|
|
7
8
|
import { ServiceWizardStepperProps } from '../components/layout/ServiceWizardStepper';
|
|
9
|
+
import { DialogSize, RcSesDialogProps } from '../components/overlays/Dialog';
|
|
10
|
+
import { ModalVariant, RcSesModalProps } from '../components/overlays/Modal';
|
|
8
11
|
import { ButtonProps } from '../types/buttons/ButtonProps';
|
|
9
12
|
export type { ListWithIconsProps, ListWithIconsItemData };
|
|
10
13
|
export type { ButtonProps };
|
|
11
|
-
export type { RcSesCardFormContainerProps, RcSesCardProps, ServiceWizardStepperProps, SimpleCheckboxProps, RcSesFormControlLabelProps, };
|
|
14
|
+
export type { RcSesCardFormContainerProps, RcSesCardProps, ServiceWizardStepperProps, SimpleCheckboxProps, RcSesFormControlLabelProps, RcSesLoadingSpinnerProps, RcSesSpinnerColor, };
|
|
15
|
+
export type { RcSesDialogProps, DialogSize };
|
|
16
|
+
export type { RcSesModalProps, ModalVariant };
|