@registrucentras/rc-ses-react-components 1.2.0 → 1.2.2
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/README.md +34 -37
- package/dist/assets/IconProps.d.ts +4 -0
- package/dist/assets/Logo.d.ts +3 -0
- package/dist/assets/ThemeColors.d.ts +6 -0
- package/dist/assets/icons/ArrowRightIcon.d.ts +3 -0
- package/dist/assets/icons/CalendarBlankIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretDownFill.d.ts +3 -0
- package/dist/assets/icons/CaretDownIcon.d.ts +3 -0
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretLeftIcon.d.ts +3 -0
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CheckBoldDisabledIcon.d.ts +3 -0
- package/dist/assets/icons/CheckBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +3 -0
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CloseIcon.d.ts +3 -0
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +3 -0
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +3 -0
- package/dist/assets/icons/InfoFillIcon.d.ts +3 -0
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +3 -0
- package/dist/assets/icons/MinusBoldIcon.d.ts +3 -0
- package/dist/assets/icons/PlusBoldIcon.d.ts +3 -0
- package/dist/assets/icons/QuestionFillIcon.d.ts +3 -0
- package/dist/assets/icons/QuestionIcon.d.ts +3 -0
- package/dist/assets/icons/ScrollIcon.d.ts +3 -0
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +3 -0
- package/dist/assets/icons/UploadSimpleIcon.d.ts +3 -0
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +3 -0
- package/dist/assets/icons/WarningFillIcon.d.ts +3 -0
- package/dist/assets/icons/XCircleFillIcon.d.ts +3 -0
- package/dist/assets/resolvePaletteColorPath.d.ts +3 -0
- package/dist/components/common/Accordion/hooks/useAccordionController.d.ts +11 -0
- package/dist/components/common/Accordion/index.d.ts +9 -0
- package/dist/components/common/Accordion/types/AccordionControllerState.d.ts +8 -0
- package/dist/components/common/Alert/index.d.ts +3 -0
- package/dist/components/common/Breadcrumbs/index.d.ts +9 -0
- package/dist/components/common/Button/ButtonWithPopover.d.ts +12 -0
- package/dist/components/common/Button/index.d.ts +6 -0
- package/dist/components/common/IconWithCircularBackground.d.ts +14 -0
- package/dist/components/common/Popover/index.d.ts +6 -0
- package/dist/components/common/Tabs/Tab.d.ts +3 -0
- package/dist/components/common/Tabs/TabPanel.d.ts +8 -0
- package/dist/components/common/Tabs/Tabs.d.ts +3 -0
- package/dist/components/common/Tabs/TabsWrapper.d.ts +7 -0
- package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +7 -0
- package/dist/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.d.ts +2 -0
- package/dist/components/form/components/FormControlWrapper/index.d.ts +17 -0
- package/dist/components/form/inputs/Checkbox.d.ts +23 -0
- package/dist/components/form/inputs/CheckboxFormControl.d.ts +23 -0
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +3 -0
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +3 -0
- package/dist/components/form/inputs/Datepicker/index.d.ts +16 -0
- package/dist/components/form/inputs/FileDropzone.d.ts +21 -0
- package/dist/components/form/inputs/FileUpload.d.ts +19 -0
- package/dist/components/form/inputs/NumberStepper.d.ts +23 -0
- package/dist/components/form/inputs/PhoneInput.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +5 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +7 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +3 -0
- package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +4 -0
- package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +22 -0
- package/dist/components/form/inputs/PhoneInputFormControl/types/Country.d.ts +7 -0
- package/dist/components/form/inputs/RadioButtonGroup.d.ts +25 -0
- package/dist/components/form/inputs/SearchableField.d.ts +23 -0
- package/dist/components/form/inputs/Select.d.ts +27 -0
- package/dist/components/form/inputs/TextField.d.ts +16 -0
- package/dist/components/layout/ServiceFormActions.d.ts +9 -0
- package/dist/components/layout/ServiceFormContainer/components/AccordionCollapseControls.d.ts +6 -0
- package/dist/components/layout/ServiceFormContainer/index.d.ts +14 -0
- package/dist/components/layout/ServiceHeader.d.ts +9 -0
- package/dist/components/layout/ServicePage.d.ts +5 -0
- package/dist/components/layout/ServiceWizardStepper/components/ActiveStepIcon.d.ts +2 -0
- package/dist/components/layout/ServiceWizardStepper/components/CompletedStepIcon.d.ts +2 -0
- package/dist/components/layout/ServiceWizardStepper/components/PendingStepIcon.d.ts +2 -0
- package/dist/components/layout/ServiceWizardStepper/index.d.ts +6 -0
- package/dist/components/shared/storage/CookieStorage.d.ts +9 -0
- package/dist/components/storybook/FieldPreview.d.ts +8 -0
- package/dist/components/storybook/FieldPreviewRow.d.ts +8 -0
- package/dist/components/storybook/FieldView.d.ts +8 -0
- package/dist/components/storybook/Fields.d.ts +8 -0
- package/dist/components/storybook/PreviewTitle.d.ts +8 -0
- package/dist/env.d.ts +3 -0
- package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +133 -0
- package/dist/i18n/i18n.d.ts +6 -0
- package/dist/library/icons.d.ts +14 -0
- package/dist/library/index.d.ts +65 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +48 -0
- package/dist/registrucentras-rc-ses-react-components.js +7288 -0
- package/dist/stories/components/Accordion.stories.d.ts +30 -0
- package/dist/stories/components/Alert.stories.d.ts +7 -0
- package/dist/stories/components/Breadcrumbs.stories.d.ts +8 -0
- package/dist/stories/components/buttons/Button.stories.d.ts +65 -0
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +26 -0
- package/dist/stories/components/form/ServiceFormActions.stories.d.ts +12 -0
- package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +16 -0
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +26 -0
- package/dist/stories/components/inputs/DatePicker.stories.d.ts +24 -0
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +30 -0
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +34 -0
- package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +34 -0
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +335 -0
- package/dist/stories/components/inputs/Select.stories.d.ts +874 -0
- package/dist/stories/components/inputs/TextField.stories.d.ts +613 -0
- package/dist/theme/light/MuiAccordion.d.ts +3 -0
- package/dist/theme/light/MuiAccordionDetails.d.ts +3 -0
- package/dist/theme/light/MuiAccordionSummary.d.ts +3 -0
- package/dist/theme/light/MuiAlert.d.ts +3 -0
- package/dist/theme/light/MuiAutocomplete.d.ts +3 -0
- package/dist/theme/light/MuiBreadcrumbs.d.ts +3 -0
- package/dist/theme/light/MuiButton.d.ts +3 -0
- package/dist/theme/light/MuiButtonBase.d.ts +3 -0
- package/dist/theme/light/MuiCard.d.ts +3 -0
- package/dist/theme/light/MuiCardContent.d.ts +3 -0
- package/dist/theme/light/MuiCardHeader.d.ts +3 -0
- package/dist/theme/light/MuiCheckbox.d.ts +3 -0
- package/dist/theme/light/MuiChip.d.ts +3 -0
- package/dist/theme/light/MuiDialog.d.ts +3 -0
- package/dist/theme/light/MuiDivider.d.ts +3 -0
- package/dist/theme/light/MuiFormControl.d.ts +3 -0
- package/dist/theme/light/MuiFormControlLabel.d.ts +3 -0
- package/dist/theme/light/MuiFormGroup.d.ts +3 -0
- package/dist/theme/light/MuiFormHelperText.d.ts +3 -0
- package/dist/theme/light/MuiFormLabel.d.ts +3 -0
- package/dist/theme/light/MuiIconButton.d.ts +3 -0
- package/dist/theme/light/MuiInputBase.d.ts +3 -0
- package/dist/theme/light/MuiLinearProgress.d.ts +3 -0
- package/dist/theme/light/MuiPagination.d.ts +3 -0
- package/dist/theme/light/MuiPickersLayout.d.ts +3 -0
- package/dist/theme/light/MuiPopover.d.ts +3 -0
- package/dist/theme/light/MuiRadio.d.ts +3 -0
- package/dist/theme/light/MuiSelect.d.ts +3 -0
- package/dist/theme/light/MuiStepper.d.ts +3 -0
- package/dist/theme/light/MuiSvgIcon.d.ts +3 -0
- package/dist/theme/light/MuiTab.d.ts +3 -0
- package/dist/theme/light/MuiTable.d.ts +3 -0
- package/dist/theme/light/MuiTableCell.d.ts +3 -0
- package/dist/theme/light/MuiTabs.d.ts +3 -0
- package/dist/theme/light/MuiTextField.d.ts +3 -0
- package/dist/theme/light/MuiTypography.d.ts +3 -0
- package/dist/theme/light/index.d.ts +36 -0
- package/dist/theme/light/themePalette.d.ts +3 -0
- package/dist/theme/palette.d.ts +144 -0
- package/package.json +1 -1
- package/src/components/form/inputs/PhoneInputFormControl/styles/styles.css +253 -253
- package/src/i18n/namespaces/common/en.json +9 -9
- package/src/i18n/namespaces/common/lt.json +9 -9
- package/src/i18n/namespaces/input/en.json +53 -53
- package/src/i18n/namespaces/input/lt.json +53 -53
- package/src/styles/index.css +12 -12
- package/src/vite-env.d.ts +79 -79
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormControlLabelProps } from '@mui/material';
|
|
2
|
+
import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material/Autocomplete';
|
|
3
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
4
|
+
import { RcSesFormControlWrapperProps } from '../../components/FormControlWrapper';
|
|
5
|
+
import { default as Country } from './types/Country';
|
|
6
|
+
type TControllerProps = UseControllerProps<any, any>;
|
|
7
|
+
type ImmediateControllerProps = 'control' | 'disabled' | 'name' | 'rules';
|
|
8
|
+
type TAutocompleteProps = MuiAutocompleteProps<Country, false, true, false, any>;
|
|
9
|
+
type ImmediateAutocompleteProps = never;
|
|
10
|
+
type TWrapperProps = RcSesFormControlWrapperProps;
|
|
11
|
+
type ImmediateWrapperProps = 'errors' | 'label';
|
|
12
|
+
type Props = Pick<TControllerProps, ImmediateControllerProps> & Pick<TAutocompleteProps, ImmediateAutocompleteProps> & Pick<TWrapperProps, ImmediateWrapperProps> & {
|
|
13
|
+
id?: string;
|
|
14
|
+
slotProps?: {
|
|
15
|
+
autocomplete?: Partial<Omit<TAutocompleteProps, ImmediateAutocompleteProps>>;
|
|
16
|
+
label?: Partial<FormControlLabelProps>;
|
|
17
|
+
wrapper?: Partial<Omit<TWrapperProps, ImmediateWrapperProps>>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
declare function RcSesPhoneInputFormControl(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export type { Props as RcSesPhoneInputFormControlProps };
|
|
22
|
+
export default RcSesPhoneInputFormControl;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { RadioGroupProps, Theme } from '@mui/material';
|
|
2
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
3
|
+
import { RcSesFormControlWrapperProps } from '../components/FormControlWrapper';
|
|
4
|
+
import { StyledComponent } from '@emotion/styled';
|
|
5
|
+
import { MUIStyledCommonProps } from '@mui/system';
|
|
6
|
+
export type RadioOption = {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
type TControllerProps = UseControllerProps<any, any>;
|
|
11
|
+
type ImmediateControllerProps = 'control' | 'rules' | 'name';
|
|
12
|
+
type TWrapperProps = RcSesFormControlWrapperProps;
|
|
13
|
+
type ImmediateWrapperProps = 'label' | 'errors';
|
|
14
|
+
declare const RcSesRadioButtonGroup: StyledComponent<Pick<TControllerProps, ImmediateControllerProps> & Pick<RadioGroupProps, "name"> & Pick<RcSesFormControlWrapperProps, ImmediateWrapperProps> & {
|
|
15
|
+
id?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
hideNativeRadio?: boolean;
|
|
18
|
+
options: Array<RadioOption>;
|
|
19
|
+
variant?: "flat" | "outlined" | "filled";
|
|
20
|
+
slotProps?: {
|
|
21
|
+
controller?: Partial<Omit<TControllerProps, ImmediateControllerProps>>;
|
|
22
|
+
wrapper?: Partial<Omit<TWrapperProps, ImmediateWrapperProps>>;
|
|
23
|
+
};
|
|
24
|
+
} & MUIStyledCommonProps<Theme>, {}, {}>;
|
|
25
|
+
export default RcSesRadioButtonGroup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OutlinedTextFieldProps } from '@mui/material/TextField';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
4
|
+
import { RcSesFormControlWrapperProps } from '../components/FormControlWrapper';
|
|
5
|
+
type ModalComponentProps = {
|
|
6
|
+
open: boolean;
|
|
7
|
+
onSubmit: (value: string) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
type TControllerProps = UseControllerProps<any, any>;
|
|
11
|
+
type ImmediateControllerProps = 'control' | 'rules' | 'disabled' | 'name';
|
|
12
|
+
type TFieldProps = Omit<OutlinedTextFieldProps, 'variant'>;
|
|
13
|
+
type TWrapperProps = RcSesFormControlWrapperProps;
|
|
14
|
+
type ImmediateWrapperProps = 'id' | 'label' | 'errors';
|
|
15
|
+
declare const RcSesSearchableField: React.ForwardRefExoticComponent<Pick<TControllerProps, ImmediateControllerProps> & Pick<RcSesFormControlWrapperProps, ImmediateWrapperProps> & {
|
|
16
|
+
ModalComponent: React.JSXElementConstructor<ModalComponentProps>;
|
|
17
|
+
slotProps?: {
|
|
18
|
+
controller?: Partial<Omit<TControllerProps, ImmediateControllerProps>>;
|
|
19
|
+
field?: Partial<TFieldProps>;
|
|
20
|
+
wrapper?: Partial<Omit<TWrapperProps, ImmediateWrapperProps>>;
|
|
21
|
+
};
|
|
22
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
23
|
+
export default RcSesSearchableField;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
2
|
+
import { UseControllerProps } from 'react-hook-form';
|
|
3
|
+
import { RcSesFormControlWrapperProps } from '../components/FormControlWrapper';
|
|
4
|
+
type Option = {
|
|
5
|
+
description?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
type TControllerProps = UseControllerProps<any, any>;
|
|
10
|
+
type ImmediateControllerProps = 'control' | 'rules' | 'name' | 'disabled';
|
|
11
|
+
type TFieldProps = Omit<AutocompleteProps<Option | '', false, boolean, false>, 'value' | 'disableClearable'>;
|
|
12
|
+
type ImmediateFieldProps = 'onInputChange';
|
|
13
|
+
type TWrapperProps = RcSesFormControlWrapperProps;
|
|
14
|
+
type ImmediateWrapperProps = 'id' | 'label' | 'errors';
|
|
15
|
+
type Props = Pick<TControllerProps, ImmediateControllerProps> & Pick<TFieldProps, ImmediateFieldProps> & Pick<TWrapperProps, ImmediateWrapperProps> & {
|
|
16
|
+
clearable?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
options: (Option | '')[];
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
slotProps?: {
|
|
21
|
+
controller?: Partial<Omit<TControllerProps, ImmediateControllerProps>>;
|
|
22
|
+
field?: Partial<Omit<TFieldProps, ImmediateFieldProps>>;
|
|
23
|
+
wrapper?: Partial<Omit<TWrapperProps, ImmediateWrapperProps>>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
declare function RcSesSelect(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default RcSesSelect;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OutlinedTextFieldProps as MuiOutlinedTextFieldProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { RcSesFormControlWrapperProps } from '../components/FormControlWrapper';
|
|
4
|
+
type TFieldProps = Omit<MuiOutlinedTextFieldProps, 'variant'>;
|
|
5
|
+
type ImmediateFieldProps = 'onChange' | 'onBlur' | 'disabled' | 'name' | 'ref' | 'required' | 'multiline';
|
|
6
|
+
type TWrapperProps = RcSesFormControlWrapperProps;
|
|
7
|
+
type ImmediateWrapperProps = 'label' | 'errors';
|
|
8
|
+
type Props = Pick<TFieldProps, ImmediateFieldProps> & Pick<TWrapperProps, ImmediateWrapperProps> & {
|
|
9
|
+
id?: string;
|
|
10
|
+
slotProps?: {
|
|
11
|
+
field?: Partial<Omit<TFieldProps, ImmediateFieldProps>>;
|
|
12
|
+
wrapper?: Partial<Omit<TWrapperProps, ImmediateWrapperProps>>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const RcSesTextField: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
16
|
+
export default RcSesTextField;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
onDiscard: () => void;
|
|
3
|
+
onSaveDraft: () => void;
|
|
4
|
+
onSubmit: () => void;
|
|
5
|
+
draftDisabled?: boolean;
|
|
6
|
+
submitDisabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare function ServiceFormActions({ onDiscard, onSaveDraft, onSubmit, draftDisabled, submitDisabled, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ServiceFormActions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as useAccordionController } from '../../../common/Accordion/hooks/useAccordionController';
|
|
2
|
+
type Props = {
|
|
3
|
+
controller: ReturnType<typeof useAccordionController>;
|
|
4
|
+
};
|
|
5
|
+
declare function AccordionCollapseControls({ controller }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default AccordionCollapseControls;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ContainerProps } from '@mui/system';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { default as useAccordionController } from '../../common/Accordion/hooks/useAccordionController';
|
|
4
|
+
type Props = {
|
|
5
|
+
accordionController: ReturnType<typeof useAccordionController>;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
showAccordionCollapseControls?: boolean;
|
|
8
|
+
showProgressStepper?: boolean;
|
|
9
|
+
slotProps?: {
|
|
10
|
+
container: Partial<ContainerProps>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare function RcSesServiceFormContainer({ accordionController, children, showAccordionCollapseControls, showProgressStepper, slotProps, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default RcSesServiceFormContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { default as RcSesBreadcrumbs } from '../common/Breadcrumbs';
|
|
3
|
+
type Props = {
|
|
4
|
+
breadcrumbsProps: React.ComponentProps<typeof RcSesBreadcrumbs>;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
declare function ServiceHeader({ breadcrumbsProps, children, title }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ServiceHeader;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AccordionControllerState } from '../../common/Accordion/types/AccordionControllerState';
|
|
2
|
+
type Props = {
|
|
3
|
+
steps: AccordionControllerState;
|
|
4
|
+
};
|
|
5
|
+
declare function ServiceWizardStepper({ steps }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ServiceWizardStepper;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
4
|
+
declare const FieldPreview: StyledComponent<{
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default FieldPreview;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
4
|
+
declare const FieldPreviewRow: StyledComponent<{
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default FieldPreviewRow;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
4
|
+
declare const FieldView: StyledComponent<{
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default FieldView;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
4
|
+
declare const Fields: StyledComponent<{
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default Fields;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyledComponent } from '@emotion/styled';
|
|
2
|
+
import { Theme } from '@emotion/react';
|
|
3
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
4
|
+
declare const PreviewTitle: StyledComponent<{
|
|
5
|
+
theme?: Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default PreviewTitle;
|
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { DateView, TimeView, MuiPickersAdapter, FieldSectionContentType } from '@mui/x-date-pickers';
|
|
2
|
+
import { TimeViewWithMeridiem } from '@mui/x-date-pickers/internals';
|
|
3
|
+
export declare const DEFAULT_LOCALE: {
|
|
4
|
+
previousMonth: string;
|
|
5
|
+
nextMonth: string;
|
|
6
|
+
openPreviousView: string;
|
|
7
|
+
openNextView: string;
|
|
8
|
+
calendarViewSwitchingButtonAriaLabel: (view: any) => "metų pasirinkimas, pereiti į dienos pasirinkimą" | "dienos pasirinkimas, pereiti į metų pasirinkimą";
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
startDate: string;
|
|
12
|
+
startTime: string;
|
|
13
|
+
endDate: string;
|
|
14
|
+
endTime: string;
|
|
15
|
+
cancelButtonLabel: string;
|
|
16
|
+
clearButtonLabel: string;
|
|
17
|
+
okButtonLabel: string;
|
|
18
|
+
todayButtonLabel: string;
|
|
19
|
+
datePickerToolbarTitle: string;
|
|
20
|
+
dateTimePickerToolbarTitle: string;
|
|
21
|
+
timePickerToolbarTitle: string;
|
|
22
|
+
dateRangePickerToolbarTitle: string;
|
|
23
|
+
clockLabelText: (view: any, time: any, adapter: any) => string;
|
|
24
|
+
hoursClockNumberText: (hours: any) => string;
|
|
25
|
+
minutesClockNumberText: (minutes: any) => string;
|
|
26
|
+
secondsClockNumberText: (seconds: any) => string;
|
|
27
|
+
selectViewText: (view: any) => string;
|
|
28
|
+
calendarWeekNumberHeaderLabel: string;
|
|
29
|
+
calendarWeekNumberHeaderText: string;
|
|
30
|
+
calendarWeekNumberAriaLabelText: (weekNumber: any) => string;
|
|
31
|
+
calendarWeekNumberText: (weekNumber: any) => string;
|
|
32
|
+
openDatePickerDialogue: (value: any, utils: any) => string;
|
|
33
|
+
openTimePickerDialogue: (value: any, utils: any) => string;
|
|
34
|
+
fieldClearLabel: string;
|
|
35
|
+
timeTableLabel: string;
|
|
36
|
+
dateTableLabel: string;
|
|
37
|
+
fieldYearPlaceholder: (params: any) => string;
|
|
38
|
+
fieldMonthPlaceholder: (params: any) => "MMMM" | "MM";
|
|
39
|
+
fieldDayPlaceholder: () => string;
|
|
40
|
+
fieldWeekDayPlaceholder: (params: any) => "DD" | "DDDD";
|
|
41
|
+
fieldHoursPlaceholder: () => string;
|
|
42
|
+
fieldMinutesPlaceholder: () => string;
|
|
43
|
+
fieldSecondsPlaceholder: () => string;
|
|
44
|
+
fieldMeridiemPlaceholder: () => string;
|
|
45
|
+
year: string;
|
|
46
|
+
month: string;
|
|
47
|
+
day: string;
|
|
48
|
+
weekDay: string;
|
|
49
|
+
hours: string;
|
|
50
|
+
minutes: string;
|
|
51
|
+
seconds: string;
|
|
52
|
+
meridiem: string;
|
|
53
|
+
empty: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const ltLT: {
|
|
56
|
+
components: {
|
|
57
|
+
MuiLocalizationProvider: {
|
|
58
|
+
defaultProps: {
|
|
59
|
+
localeText: {
|
|
60
|
+
previousMonth?: string | undefined;
|
|
61
|
+
nextMonth?: string | undefined;
|
|
62
|
+
calendarWeekNumberHeaderLabel?: string | undefined;
|
|
63
|
+
calendarWeekNumberHeaderText?: string | undefined;
|
|
64
|
+
calendarWeekNumberAriaLabelText?: ((weekNumber: number) => string) | undefined;
|
|
65
|
+
calendarWeekNumberText?: ((weekNumber: number) => string) | undefined;
|
|
66
|
+
openPreviousView?: string | undefined;
|
|
67
|
+
openNextView?: string | undefined;
|
|
68
|
+
calendarViewSwitchingButtonAriaLabel?: ((currentView: DateView) => string) | undefined;
|
|
69
|
+
start?: string | undefined;
|
|
70
|
+
end?: string | undefined;
|
|
71
|
+
startDate?: string | undefined;
|
|
72
|
+
startTime?: string | undefined;
|
|
73
|
+
endDate?: string | undefined;
|
|
74
|
+
endTime?: string | undefined;
|
|
75
|
+
cancelButtonLabel?: string | undefined;
|
|
76
|
+
clearButtonLabel?: string | undefined;
|
|
77
|
+
okButtonLabel?: string | undefined;
|
|
78
|
+
todayButtonLabel?: string | undefined;
|
|
79
|
+
clockLabelText?: ((view: TimeView, time: any, utils: MuiPickersAdapter<any, any>, formattedTime?: string | null) => string) | undefined;
|
|
80
|
+
hoursClockNumberText?: ((hours: string) => string) | undefined;
|
|
81
|
+
minutesClockNumberText?: ((minutes: string) => string) | undefined;
|
|
82
|
+
secondsClockNumberText?: ((seconds: string) => string) | undefined;
|
|
83
|
+
selectViewText?: ((view: TimeViewWithMeridiem) => string) | undefined;
|
|
84
|
+
openDatePickerDialogue?: ((date: any, utils: MuiPickersAdapter<any, any>, formattedDate: string | null) => string) | undefined;
|
|
85
|
+
openTimePickerDialogue?: ((date: any, utils: MuiPickersAdapter<any, any>, formattedTime: string | null) => string) | undefined;
|
|
86
|
+
fieldClearLabel?: string | undefined;
|
|
87
|
+
timeTableLabel?: string | undefined;
|
|
88
|
+
dateTableLabel?: string | undefined;
|
|
89
|
+
fieldYearPlaceholder?: ((params: {
|
|
90
|
+
digitAmount: number;
|
|
91
|
+
format: string;
|
|
92
|
+
}) => string) | undefined;
|
|
93
|
+
fieldMonthPlaceholder?: ((params: {
|
|
94
|
+
contentType: FieldSectionContentType;
|
|
95
|
+
format: string;
|
|
96
|
+
}) => string) | undefined;
|
|
97
|
+
fieldDayPlaceholder?: ((params: {
|
|
98
|
+
format: string;
|
|
99
|
+
}) => string) | undefined;
|
|
100
|
+
fieldWeekDayPlaceholder?: ((params: {
|
|
101
|
+
contentType: FieldSectionContentType;
|
|
102
|
+
format: string;
|
|
103
|
+
}) => string) | undefined;
|
|
104
|
+
fieldHoursPlaceholder?: ((params: {
|
|
105
|
+
format: string;
|
|
106
|
+
}) => string) | undefined;
|
|
107
|
+
fieldMinutesPlaceholder?: ((params: {
|
|
108
|
+
format: string;
|
|
109
|
+
}) => string) | undefined;
|
|
110
|
+
fieldSecondsPlaceholder?: ((params: {
|
|
111
|
+
format: string;
|
|
112
|
+
}) => string) | undefined;
|
|
113
|
+
fieldMeridiemPlaceholder?: ((params: {
|
|
114
|
+
format: string;
|
|
115
|
+
}) => string) | undefined;
|
|
116
|
+
year?: string | undefined;
|
|
117
|
+
month?: string | undefined;
|
|
118
|
+
day?: string | undefined;
|
|
119
|
+
weekDay?: string | undefined;
|
|
120
|
+
hours?: string | undefined;
|
|
121
|
+
minutes?: string | undefined;
|
|
122
|
+
seconds?: string | undefined;
|
|
123
|
+
meridiem?: string | undefined;
|
|
124
|
+
empty?: string | undefined;
|
|
125
|
+
datePickerToolbarTitle?: string | undefined;
|
|
126
|
+
timePickerToolbarTitle?: string | undefined;
|
|
127
|
+
dateTimePickerToolbarTitle?: string | undefined;
|
|
128
|
+
dateRangePickerToolbarTitle?: string | undefined;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as RcSesLogo } from '../assets/Logo';
|
|
2
|
+
import { default as ArrowRightIcon } from '../assets/icons/ArrowRightIcon';
|
|
3
|
+
import { default as CaretDoubleLeftBoldIcon } from '../assets/icons/CaretDoubleLeftBoldIcon';
|
|
4
|
+
import { default as CaretDoubleRightBoldIcon } from '../assets/icons/CaretDoubleRightBoldIcon';
|
|
5
|
+
import { default as CaretDownBoldIcon } from '../assets/icons/CaretDownBoldIcon';
|
|
6
|
+
import { default as CaretDownIcon } from '../assets/icons/CaretDownIcon';
|
|
7
|
+
import { default as CaretLeftBoldIcon } from '../assets/icons/CaretLeftBoldIcon';
|
|
8
|
+
import { default as CaretLeftIcon } from '../assets/icons/CaretLeftIcon';
|
|
9
|
+
import { default as CaretRightBoldIcon } from '../assets/icons/CaretRightBoldIcon';
|
|
10
|
+
import { default as CheckBoldDisabledIcon } from '../assets/icons/CheckBoldDisabledIcon';
|
|
11
|
+
import { default as CheckBoldIcon } from '../assets/icons/CheckBoldIcon';
|
|
12
|
+
export { RcSesLogo };
|
|
13
|
+
export { ArrowRightIcon };
|
|
14
|
+
export { CheckBoldDisabledIcon, CheckBoldIcon, CaretDoubleLeftBoldIcon, CaretDoubleRightBoldIcon, CaretDownBoldIcon, CaretDownIcon, CaretLeftBoldIcon, CaretLeftIcon, CaretRightBoldIcon, };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { default as RcSesIconProps } from '../assets/IconProps';
|
|
2
|
+
import { default as RcSesLogo } from '../assets/Logo';
|
|
3
|
+
import { default as ArrowRightIcon } from '../assets/icons/ArrowRightIcon';
|
|
4
|
+
import { default as CaretDoubleLeftBoldIcon } from '../assets/icons/CaretDoubleLeftBoldIcon';
|
|
5
|
+
import { default as CaretDoubleRightBoldIcon } from '../assets/icons/CaretDoubleRightBoldIcon';
|
|
6
|
+
import { default as CaretDownBoldIcon } from '../assets/icons/CaretDownBoldIcon';
|
|
7
|
+
import { default as CaretDownIcon } from '../assets/icons/CaretDownIcon';
|
|
8
|
+
import { default as CaretLeftBoldIcon } from '../assets/icons/CaretLeftBoldIcon';
|
|
9
|
+
import { default as CaretLeftIcon } from '../assets/icons/CaretLeftIcon';
|
|
10
|
+
import { default as CaretRightBoldIcon } from '../assets/icons/CaretRightBoldIcon';
|
|
11
|
+
import { default as RcSesAccordion } from '../components/common/Accordion';
|
|
12
|
+
import { default as useAccordionController } from '../components/common/Accordion/hooks/useAccordionController';
|
|
13
|
+
import { default as RcSesAlert } from '../components/common/Alert';
|
|
14
|
+
import { default as RcSesBreadcrumbs } from '../components/common/Breadcrumbs';
|
|
15
|
+
import { default as RcSesButton } from '../components/common/Button';
|
|
16
|
+
import { default as RcSesButtonWithPopover } from '../components/common/Button/ButtonWithPopover';
|
|
17
|
+
import { default as RcSesIconWithCircularBackground } from '../components/common/IconWithCircularBackground';
|
|
18
|
+
import { default as RcSesTab } from '../components/common/Tabs/Tab';
|
|
19
|
+
import { default as RcSesTabPanel } from '../components/common/Tabs/TabPanel';
|
|
20
|
+
import { default as RcSesTabs } from '../components/common/Tabs/Tabs';
|
|
21
|
+
import { default as RcSesTabsWrapper } from '../components/common/Tabs/TabsWrapper';
|
|
22
|
+
import { default as RcSesFormControlWrapper } from '../components/form/components/FormControlWrapper';
|
|
23
|
+
import { default as RcSesCheckbox } from '../components/form/inputs/Checkbox';
|
|
24
|
+
import { default as RcSesCheckboxFormControl } from '../components/form/inputs/CheckboxFormControl';
|
|
25
|
+
import { default as RcSesDatepicker } from '../components/form/inputs/Datepicker';
|
|
26
|
+
import { default as RcSesFileDropzone } from '../components/form/inputs/FileDropzone';
|
|
27
|
+
import { default as RcSesFileUpload } from '../components/form/inputs/FileUpload';
|
|
28
|
+
import { default as RcSesNumberStepper } from '../components/form/inputs/NumberStepper';
|
|
29
|
+
import { default as RcSesPhoneInput } from '../components/form/inputs/PhoneInput';
|
|
30
|
+
import { default as RcSesPhoneInputFormControl } from '../components/form/inputs/PhoneInputFormControl';
|
|
31
|
+
import { default as RcSesRadioButtonGroup } from '../components/form/inputs/RadioButtonGroup';
|
|
32
|
+
import { default as RcSesSearchableField } from '../components/form/inputs/SearchableField';
|
|
33
|
+
import { default as RcSesSelect } from '../components/form/inputs/Select';
|
|
34
|
+
import { default as RcSesTextField } from '../components/form/inputs/TextField';
|
|
35
|
+
import { default as RcSesServiceFormActions } from '../components/layout/ServiceFormActions';
|
|
36
|
+
import { default as RcSesServiceFormContainer } from '../components/layout/ServiceFormContainer';
|
|
37
|
+
import { default as RcSesServiceHeader } from '../components/layout/ServiceHeader';
|
|
38
|
+
import { default as RcSesServicePage } from '../components/layout/ServicePage';
|
|
39
|
+
import { default as RcSesTheme } from '../theme/light';
|
|
40
|
+
import { default as RcSesPalette } from '../theme/palette';
|
|
41
|
+
declare module '@mui/x-date-pickers/models' {
|
|
42
|
+
interface PickerValidDateLookup {
|
|
43
|
+
'date-fns': Date;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export { RcSesPalette, RcSesTheme };
|
|
47
|
+
export { RcSesAccordion, useAccordionController };
|
|
48
|
+
export { RcSesAlert, RcSesBreadcrumbs, RcSesButton, RcSesButtonWithPopover };
|
|
49
|
+
export { RcSesCheckbox, RcSesCheckboxFormControl };
|
|
50
|
+
export { RcSesDatepicker };
|
|
51
|
+
export { RcSesFileUpload };
|
|
52
|
+
export { RcSesFileDropzone };
|
|
53
|
+
export { RcSesNumberStepper };
|
|
54
|
+
export { RcSesPhoneInput, RcSesPhoneInputFormControl };
|
|
55
|
+
export { RcSesRadioButtonGroup };
|
|
56
|
+
export { RcSesSearchableField };
|
|
57
|
+
export { RcSesSelect };
|
|
58
|
+
export { RcSesTab, RcSesTabPanel, RcSesTabs, RcSesTabsWrapper };
|
|
59
|
+
export { RcSesTextField };
|
|
60
|
+
export { RcSesServiceFormActions, RcSesServiceFormContainer, RcSesFormControlWrapper, RcSesServiceHeader, RcSesServicePage, };
|
|
61
|
+
export type { RcSesIconProps };
|
|
62
|
+
export { RcSesIconWithCircularBackground };
|
|
63
|
+
export { RcSesLogo };
|
|
64
|
+
export { ArrowRightIcon };
|
|
65
|
+
export { CaretDoubleLeftBoldIcon, CaretDoubleRightBoldIcon, CaretDownBoldIcon, CaretDownIcon, CaretLeftBoldIcon, CaretLeftIcon, CaretRightBoldIcon, };
|