@registrucentras/rc-ses-react-components 1.1.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/README.md +37 -0
- 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 +126 -0
- package/src/App.tsx +42 -0
- package/src/assets/IconProps.ts +5 -0
- package/src/assets/Logo.tsx +111 -0
- package/src/assets/ThemeColors.ts +7 -0
- package/src/assets/icons/ArrowRightIcon.tsx +21 -0
- package/src/assets/icons/CalendarBlankIcon.tsx +21 -0
- package/src/assets/icons/CaretDoubleLeftBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretDoubleRightBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretDownBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretDownFill.tsx +16 -0
- package/src/assets/icons/CaretDownIcon.tsx +21 -0
- package/src/assets/icons/CaretLeftBoldIcon.tsx +20 -0
- package/src/assets/icons/CaretLeftIcon.tsx +21 -0
- package/src/assets/icons/CaretRightBoldIcon.tsx +20 -0
- package/src/assets/icons/CheckBoldDisabledIcon.tsx +32 -0
- package/src/assets/icons/CheckBoldIcon.tsx +32 -0
- package/src/assets/icons/CheckCircleFillIcon.tsx +21 -0
- package/src/assets/icons/CheckUncheckedBoldIcon.tsx +28 -0
- package/src/assets/icons/CloseIcon.tsx +21 -0
- package/src/assets/icons/CollapseChevronsIcon.tsx +21 -0
- package/src/assets/icons/ExpandChevronsIcon.tsx +21 -0
- package/src/assets/icons/InfoFillIcon.tsx +21 -0
- package/src/assets/icons/MagnifyingGlassIcon.tsx +16 -0
- package/src/assets/icons/MinusBoldIcon.tsx +21 -0
- package/src/assets/icons/PlusBoldIcon.tsx +21 -0
- package/src/assets/icons/QuestionFillIcon.tsx +21 -0
- package/src/assets/icons/QuestionIcon.tsx +21 -0
- package/src/assets/icons/ScrollIcon.tsx +21 -0
- package/src/assets/icons/SpinnerGapBoldIcon.tsx +20 -0
- package/src/assets/icons/UploadSimpleIcon.tsx +21 -0
- package/src/assets/icons/WarningDiamondFillIcon.tsx +21 -0
- package/src/assets/icons/WarningFillIcon.tsx +20 -0
- package/src/assets/icons/XCircleFillIcon.tsx +16 -0
- package/src/assets/resolvePaletteColorPath.ts +13 -0
- package/src/components/common/Accordion/hooks/useAccordionController.tsx +42 -0
- package/src/components/common/Accordion/index.tsx +52 -0
- package/src/components/common/Accordion/types/AccordionControllerState.ts +9 -0
- package/src/components/common/Alert/index.tsx +21 -0
- package/src/components/common/Breadcrumbs/index.tsx +21 -0
- package/src/components/common/Button/ButtonWithPopover.tsx +80 -0
- package/src/components/common/Button/index.tsx +21 -0
- package/src/components/common/IconWithCircularBackground.tsx +73 -0
- package/src/components/common/Popover/index.tsx +20 -0
- package/src/components/common/Tabs/Tab.tsx +9 -0
- package/src/components/common/Tabs/TabPanel.tsx +28 -0
- package/src/components/common/Tabs/Tabs.tsx +9 -0
- package/src/components/common/Tabs/TabsWrapper.tsx +33 -0
- package/src/components/form/components/FormControlWrapper/components/FieldSuffix.tsx +14 -0
- package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +4 -0
- package/src/components/form/components/FormControlWrapper/index.tsx +137 -0
- package/src/components/form/inputs/Checkbox.tsx +52 -0
- package/src/components/form/inputs/CheckboxFormControl.tsx +135 -0
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +37 -0
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +96 -0
- package/src/components/form/inputs/Datepicker/index.tsx +149 -0
- package/src/components/form/inputs/FileDropzone.tsx +215 -0
- package/src/components/form/inputs/FileUpload.tsx +143 -0
- package/src/components/form/inputs/NumberStepper.tsx +209 -0
- package/src/components/form/inputs/PhoneInput.tsx +28 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +40 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +53 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +13 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/PopperComponent.tsx +37 -0
- package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +46 -0
- package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +14 -0
- package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +47 -0
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +238 -0
- package/src/components/form/inputs/PhoneInputFormControl/styles/styles.css +253 -0
- package/src/components/form/inputs/PhoneInputFormControl/types/Country.ts +9 -0
- package/src/components/form/inputs/RadioButtonGroup.tsx +112 -0
- package/src/components/form/inputs/SearchableField.tsx +120 -0
- package/src/components/form/inputs/Select.tsx +152 -0
- package/src/components/form/inputs/TextField.tsx +59 -0
- package/src/components/layout/ServiceFormActions.tsx +90 -0
- package/src/components/layout/ServiceFormContainer/components/AccordionCollapseControls.tsx +43 -0
- package/src/components/layout/ServiceFormContainer/index.tsx +69 -0
- package/src/components/layout/ServiceHeader.tsx +65 -0
- package/src/components/layout/ServicePage.tsx +10 -0
- package/src/components/layout/ServiceWizardStepper/components/ActiveStepIcon.tsx +15 -0
- package/src/components/layout/ServiceWizardStepper/components/CompletedStepIcon.tsx +19 -0
- package/src/components/layout/ServiceWizardStepper/components/PendingStepIcon.tsx +15 -0
- package/src/components/layout/ServiceWizardStepper/index.tsx +44 -0
- package/src/components/shared/storage/CookieStorage.ts +42 -0
- package/src/components/storybook/FieldPreview.tsx +12 -0
- package/src/components/storybook/FieldPreviewRow.tsx +16 -0
- package/src/components/storybook/FieldView.tsx +9 -0
- package/src/components/storybook/Fields.tsx +9 -0
- package/src/components/storybook/PreviewTitle.tsx +15 -0
- package/src/env.tsx +61 -0
- package/src/examples/MultipleStepForm/components/AdditionalServicesForm.tsx +29 -0
- package/src/examples/MultipleStepForm/components/BasicInformationForm.tsx +5 -0
- package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +152 -0
- package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +104 -0
- package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +59 -0
- package/src/examples/MultipleStepForm/index.tsx +104 -0
- package/src/examples/MultipleStepForm/types/MultiStepFormModel.ts +10 -0
- package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +187 -0
- package/src/examples/SingleStepForm/index.tsx +347 -0
- package/src/examples/SingleStepForm/types/SingleStepFormModel.ts +23 -0
- package/src/i18n/@mui/x-date-pickers/ltLT.ts +82 -0
- package/src/i18n/i18n.ts +44 -0
- package/src/i18n/namespaces/common/en.json +9 -0
- package/src/i18n/namespaces/common/lt.json +9 -0
- package/src/i18n/namespaces/input/en.json +53 -0
- package/src/i18n/namespaces/input/lt.json +53 -0
- package/src/library/icons.ts +25 -0
- package/src/library/index.ts +88 -0
- package/src/main.tsx +47 -0
- package/src/setupTests.ts +1 -0
- package/src/stories/components/Accordion.stories.tsx +93 -0
- package/src/stories/components/Alert.stories.tsx +40 -0
- package/src/stories/components/Breadcrumbs.stories.tsx +32 -0
- package/src/stories/components/buttons/Button.stories.tsx +206 -0
- package/src/stories/components/buttons/Button.test.ts +17 -0
- package/src/stories/components/form/CheckboxFormControl.stories.tsx +160 -0
- package/src/stories/components/form/ServiceFormActions.stories.tsx +44 -0
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +178 -0
- package/src/stories/components/inputs/Checkbox.stories.tsx +214 -0
- package/src/stories/components/inputs/DatePicker.stories.tsx +99 -0
- package/src/stories/components/inputs/FileUpload.stories.tsx +159 -0
- package/src/stories/components/inputs/NumberStepper.stories.tsx +162 -0
- package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +155 -0
- package/src/stories/components/inputs/SearchableField.stories.tsx +90 -0
- package/src/stories/components/inputs/Select.stories.tsx +226 -0
- package/src/stories/components/inputs/TextField.stories.tsx +77 -0
- package/src/stubs/Component.tsx +9 -0
- package/src/styles/index.css +12 -0
- package/src/theme/light/MuiAccordion.tsx +50 -0
- package/src/theme/light/MuiAccordionDetails.ts +17 -0
- package/src/theme/light/MuiAccordionSummary.tsx +35 -0
- package/src/theme/light/MuiAlert.tsx +254 -0
- package/src/theme/light/MuiAutocomplete.ts +55 -0
- package/src/theme/light/MuiBreadcrumbs.tsx +42 -0
- package/src/theme/light/MuiButton.tsx +393 -0
- package/src/theme/light/MuiButtonBase.tsx +15 -0
- package/src/theme/light/MuiCard.tsx +18 -0
- package/src/theme/light/MuiCardContent.tsx +19 -0
- package/src/theme/light/MuiCardHeader.tsx +15 -0
- package/src/theme/light/MuiCheckbox.ts +26 -0
- package/src/theme/light/MuiChip.tsx +13 -0
- package/src/theme/light/MuiDialog.ts +25 -0
- package/src/theme/light/MuiDivider.tsx +12 -0
- package/src/theme/light/MuiFormControl.ts +28 -0
- package/src/theme/light/MuiFormControlLabel.ts +48 -0
- package/src/theme/light/MuiFormGroup.ts +83 -0
- package/src/theme/light/MuiFormHelperText.ts +18 -0
- package/src/theme/light/MuiFormLabel.ts +48 -0
- package/src/theme/light/MuiIconButton.ts +30 -0
- package/src/theme/light/MuiInputBase.ts +99 -0
- package/src/theme/light/MuiLinearProgress.ts +17 -0
- package/src/theme/light/MuiPagination.ts +31 -0
- package/src/theme/light/MuiPickersLayout.ts +68 -0
- package/src/theme/light/MuiPopover.ts +29 -0
- package/src/theme/light/MuiRadio.tsx +65 -0
- package/src/theme/light/MuiSelect.tsx +8 -0
- package/src/theme/light/MuiStepper.ts +52 -0
- package/src/theme/light/MuiSvgIcon.ts +17 -0
- package/src/theme/light/MuiTab.tsx +53 -0
- package/src/theme/light/MuiTable.ts +20 -0
- package/src/theme/light/MuiTableCell.ts +40 -0
- package/src/theme/light/MuiTabs.tsx +34 -0
- package/src/theme/light/MuiTextField.tsx +12 -0
- package/src/theme/light/MuiTypography.tsx +57 -0
- package/src/theme/light/index.tsx +138 -0
- package/src/theme/light/themePalette.tsx +23 -0
- package/src/theme/palette.tsx +77 -0
- package/src/types/assets/IconProps.tsx +19 -0
- package/src/types/buttons/ButtonProps.tsx +3 -0
- package/src/types/cards/CardServiceProps.tsx +9 -0
- package/src/types/common/ColorType.tsx +20 -0
- package/src/types/common/QuickLinkType.tsx +5 -0
- package/src/types/inputs/InputIconProps.tsx +5 -0
- package/src/types/lists/ListNewsItemType.tsx +5 -0
- package/src/types/lists/ListServicesItemType.tsx +8 -0
- package/src/types/order/OrderItemStatusType.tsx +3 -0
- package/src/vite-env.d.ts +79 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
declare module '@mui/material/styles' {
|
|
3
|
+
interface Palette {
|
|
4
|
+
dark: Palette['grey'];
|
|
5
|
+
grey: Palette['grey'];
|
|
6
|
+
}
|
|
7
|
+
interface PaletteOptions {
|
|
8
|
+
dark?: PaletteOptions['grey'];
|
|
9
|
+
grey?: PaletteOptions['grey'];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare module '@mui/material' {
|
|
13
|
+
interface AlertPropsColorOverrides {
|
|
14
|
+
grey: true;
|
|
15
|
+
}
|
|
16
|
+
interface AlertClasses {
|
|
17
|
+
standardGrey: string;
|
|
18
|
+
outlinedGrey: string;
|
|
19
|
+
filledGrey: string;
|
|
20
|
+
}
|
|
21
|
+
interface ButtonPropsVariantOverrides {
|
|
22
|
+
link: true;
|
|
23
|
+
}
|
|
24
|
+
interface ButtonPropsColorOverrides {
|
|
25
|
+
grey: any;
|
|
26
|
+
dark: any;
|
|
27
|
+
}
|
|
28
|
+
interface RadioPropsColorOverrides {
|
|
29
|
+
grey: true;
|
|
30
|
+
}
|
|
31
|
+
interface TabsPropsVariantOverrides {
|
|
32
|
+
grey: true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
declare const theme: Theme;
|
|
36
|
+
export default theme;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
declare const primary: {
|
|
2
|
+
'50': string;
|
|
3
|
+
'100': string;
|
|
4
|
+
'200': string;
|
|
5
|
+
'300': string;
|
|
6
|
+
'400': string;
|
|
7
|
+
'500': string;
|
|
8
|
+
'600': string;
|
|
9
|
+
'700': string;
|
|
10
|
+
'800': string;
|
|
11
|
+
'900': string;
|
|
12
|
+
'950': string;
|
|
13
|
+
main: string;
|
|
14
|
+
};
|
|
15
|
+
declare const secondary: {
|
|
16
|
+
'50': string;
|
|
17
|
+
'100': string;
|
|
18
|
+
'200': string;
|
|
19
|
+
'300': string;
|
|
20
|
+
'400': string;
|
|
21
|
+
'500': string;
|
|
22
|
+
'600': string;
|
|
23
|
+
'700': string;
|
|
24
|
+
'800': string;
|
|
25
|
+
'900': string;
|
|
26
|
+
'950': string;
|
|
27
|
+
main: string;
|
|
28
|
+
};
|
|
29
|
+
declare const grey: {
|
|
30
|
+
'50': string;
|
|
31
|
+
'100': string;
|
|
32
|
+
'200': string;
|
|
33
|
+
'300': string;
|
|
34
|
+
'400': string;
|
|
35
|
+
'500': string;
|
|
36
|
+
'600': string;
|
|
37
|
+
'700': string;
|
|
38
|
+
'800': string;
|
|
39
|
+
'900': string;
|
|
40
|
+
'950': string;
|
|
41
|
+
main: string;
|
|
42
|
+
};
|
|
43
|
+
declare const warning: {
|
|
44
|
+
'50': string;
|
|
45
|
+
'100': string;
|
|
46
|
+
'200': string;
|
|
47
|
+
'300': string;
|
|
48
|
+
'400': string;
|
|
49
|
+
'500': string;
|
|
50
|
+
'600': string;
|
|
51
|
+
'700': string;
|
|
52
|
+
'800': string;
|
|
53
|
+
'900': string;
|
|
54
|
+
'950': string;
|
|
55
|
+
main: string;
|
|
56
|
+
};
|
|
57
|
+
declare const error: {
|
|
58
|
+
'50': string;
|
|
59
|
+
'100': string;
|
|
60
|
+
'200': string;
|
|
61
|
+
'300': string;
|
|
62
|
+
'400': string;
|
|
63
|
+
'500': string;
|
|
64
|
+
'600': string;
|
|
65
|
+
'700': string;
|
|
66
|
+
'800': string;
|
|
67
|
+
'900': string;
|
|
68
|
+
'950': string;
|
|
69
|
+
main: string;
|
|
70
|
+
};
|
|
71
|
+
export { primary, secondary, grey, warning, error };
|
|
72
|
+
declare const _default: {
|
|
73
|
+
primary: {
|
|
74
|
+
'50': string;
|
|
75
|
+
'100': string;
|
|
76
|
+
'200': string;
|
|
77
|
+
'300': string;
|
|
78
|
+
'400': string;
|
|
79
|
+
'500': string;
|
|
80
|
+
'600': string;
|
|
81
|
+
'700': string;
|
|
82
|
+
'800': string;
|
|
83
|
+
'900': string;
|
|
84
|
+
'950': string;
|
|
85
|
+
main: string;
|
|
86
|
+
};
|
|
87
|
+
secondary: {
|
|
88
|
+
'50': string;
|
|
89
|
+
'100': string;
|
|
90
|
+
'200': string;
|
|
91
|
+
'300': string;
|
|
92
|
+
'400': string;
|
|
93
|
+
'500': string;
|
|
94
|
+
'600': string;
|
|
95
|
+
'700': string;
|
|
96
|
+
'800': string;
|
|
97
|
+
'900': string;
|
|
98
|
+
'950': string;
|
|
99
|
+
main: string;
|
|
100
|
+
};
|
|
101
|
+
grey: {
|
|
102
|
+
'50': string;
|
|
103
|
+
'100': string;
|
|
104
|
+
'200': string;
|
|
105
|
+
'300': string;
|
|
106
|
+
'400': string;
|
|
107
|
+
'500': string;
|
|
108
|
+
'600': string;
|
|
109
|
+
'700': string;
|
|
110
|
+
'800': string;
|
|
111
|
+
'900': string;
|
|
112
|
+
'950': string;
|
|
113
|
+
main: string;
|
|
114
|
+
};
|
|
115
|
+
warning: {
|
|
116
|
+
'50': string;
|
|
117
|
+
'100': string;
|
|
118
|
+
'200': string;
|
|
119
|
+
'300': string;
|
|
120
|
+
'400': string;
|
|
121
|
+
'500': string;
|
|
122
|
+
'600': string;
|
|
123
|
+
'700': string;
|
|
124
|
+
'800': string;
|
|
125
|
+
'900': string;
|
|
126
|
+
'950': string;
|
|
127
|
+
main: string;
|
|
128
|
+
};
|
|
129
|
+
error: {
|
|
130
|
+
'50': string;
|
|
131
|
+
'100': string;
|
|
132
|
+
'200': string;
|
|
133
|
+
'300': string;
|
|
134
|
+
'400': string;
|
|
135
|
+
'500': string;
|
|
136
|
+
'600': string;
|
|
137
|
+
'700': string;
|
|
138
|
+
'800': string;
|
|
139
|
+
'900': string;
|
|
140
|
+
'950': string;
|
|
141
|
+
main: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export default _default;
|
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@registrucentras/rc-ses-react-components",
|
|
3
|
+
"author": "VĮ REGISTRŲ CENTRAS",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "RC SES React komponentų biblioteka",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"private": false,
|
|
8
|
+
"main": "./dist/registrucentras-rc-ses-react-components.cjs",
|
|
9
|
+
"module": "./dist/registrucentras-rc-ses-react-components.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/library/index.d.ts",
|
|
13
|
+
"import": "./dist/registrucentras-rc-ses-react-components.js",
|
|
14
|
+
"require": "./dist/registrucentras-rc-ses-react-components.cjs",
|
|
15
|
+
"default": "./dist/registrucentras-rc-ses-react-components.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/*",
|
|
21
|
+
"public/*",
|
|
22
|
+
"src/*",
|
|
23
|
+
"package.json"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite",
|
|
27
|
+
"build": "tsc && vite build",
|
|
28
|
+
"build:lib": "npm i && tsc --p ./tsconfig.lib.json && vite build --config vite.config.lib.ts",
|
|
29
|
+
"preview": "vite preview",
|
|
30
|
+
"lint": "eslint .",
|
|
31
|
+
"lint:fix": "eslint --fix .",
|
|
32
|
+
"storybook": "storybook dev -p 6006",
|
|
33
|
+
"storybook-test": "test-storybook",
|
|
34
|
+
"storybook-build": "storybook build",
|
|
35
|
+
"test": "vitest",
|
|
36
|
+
"test:run": "vitest run",
|
|
37
|
+
"test:coverage": "vitest run --coverage"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "https://github.com/registrucentras/rc-ses-react-components.git"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@emotion/react": "11.13.3",
|
|
45
|
+
"@emotion/styled": "11.13.0",
|
|
46
|
+
"@mui/material": "5.16.7",
|
|
47
|
+
"@mui/system": "5.16.7",
|
|
48
|
+
"@mui/x-date-pickers": "7.17.0",
|
|
49
|
+
"date-fns": "3.6.0",
|
|
50
|
+
"date-fns-tz": "3.1.3",
|
|
51
|
+
"i18next": "23.15.1",
|
|
52
|
+
"react": "18.3.1",
|
|
53
|
+
"react-dom": "18.3.1",
|
|
54
|
+
"react-i18next": "14.1.3"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@fontsource/public-sans": "^5.0.18",
|
|
58
|
+
"axios": "^1.7.2",
|
|
59
|
+
"countries-phone-masks": "^1.1.1",
|
|
60
|
+
"js-cookie": "^3.0.5",
|
|
61
|
+
"maska": "^3.2.0",
|
|
62
|
+
"notistack": "^3.0.1",
|
|
63
|
+
"react-dropzone": "14.3.5",
|
|
64
|
+
"react-hook-form": "7.53.2",
|
|
65
|
+
"react-router-dom": "6.26.2",
|
|
66
|
+
"react-window": "^1.8.11",
|
|
67
|
+
"uuid": "^11.0.3"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@chromatic-com/storybook": "^1.5.0",
|
|
71
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
72
|
+
"@storybook/addon-a11y": "^8.1.9",
|
|
73
|
+
"@storybook/addon-coverage": "^1.0.4",
|
|
74
|
+
"@storybook/addon-essentials": "^8.1.9",
|
|
75
|
+
"@storybook/addon-interactions": "^8.1.9",
|
|
76
|
+
"@storybook/addon-links": "^8.1.9",
|
|
77
|
+
"@storybook/addon-onboarding": "^8.1.9",
|
|
78
|
+
"@storybook/addon-themes": "^8.1.9",
|
|
79
|
+
"@storybook/blocks": "^8.1.9",
|
|
80
|
+
"@storybook/react": "^8.1.9",
|
|
81
|
+
"@storybook/react-vite": "^8.1.9",
|
|
82
|
+
"@storybook/test": "^8.1.9",
|
|
83
|
+
"@storybook/test-runner": "^0.18.2",
|
|
84
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
85
|
+
"@testing-library/react": "^16.3.0",
|
|
86
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
87
|
+
"@types/js-cookie": "^3.0.6",
|
|
88
|
+
"@types/react": "^18.3.3",
|
|
89
|
+
"@types/react-dom": "^18.3.0",
|
|
90
|
+
"@types/react-helmet": "^6.1.11",
|
|
91
|
+
"@types/react-window": "^1.8.8",
|
|
92
|
+
"@types/uuid": "^10.0.0",
|
|
93
|
+
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
94
|
+
"@typescript-eslint/parser": "^7.13.0",
|
|
95
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
96
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
97
|
+
"axe-playwright": "^2.0.1",
|
|
98
|
+
"eslint": "^8.56.0",
|
|
99
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
100
|
+
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
101
|
+
"eslint-config-prettier": "^9.1.0",
|
|
102
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
103
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
104
|
+
"eslint-plugin-import": "^2.29.1",
|
|
105
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
106
|
+
"eslint-plugin-n": "^17.9.0",
|
|
107
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
108
|
+
"eslint-plugin-promise": "^6.2.0",
|
|
109
|
+
"eslint-plugin-react": "^7.34.2",
|
|
110
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
111
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
112
|
+
"jsdom": "^27.3.0",
|
|
113
|
+
"prettier": "^3.3.2",
|
|
114
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
115
|
+
"storybook": "^8.1.9",
|
|
116
|
+
"typescript": "^5.4.5",
|
|
117
|
+
"vite": "^6.2.5",
|
|
118
|
+
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
119
|
+
"vite-plugin-dts": "^4.2.1",
|
|
120
|
+
"vite-plugin-static-copy": "^3.1.4",
|
|
121
|
+
"vitest": "^4.0.15"
|
|
122
|
+
},
|
|
123
|
+
"optionalDependencies": {
|
|
124
|
+
"@rollup/rollup-linux-x64-gnu": "^4.18.0"
|
|
125
|
+
}
|
|
126
|
+
}
|
package/src/App.tsx
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Button, Stack } from '@mui/material'
|
|
2
|
+
import { Link } from 'react-router-dom'
|
|
3
|
+
|
|
4
|
+
import ServiceHeader from './components/layout/ServiceHeader'
|
|
5
|
+
import ServicePage from './components/layout/ServicePage'
|
|
6
|
+
|
|
7
|
+
export default function App() {
|
|
8
|
+
const routes = [
|
|
9
|
+
{
|
|
10
|
+
title: 'Vieno žingsnio formos pavyzdys',
|
|
11
|
+
routeTo: '/single-step-form',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
title: 'Formos su vedliu pavyzdys',
|
|
15
|
+
routeTo: '/multi-step-form',
|
|
16
|
+
},
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<ServicePage>
|
|
21
|
+
<ServiceHeader
|
|
22
|
+
breadcrumbsProps={{ path: [{ label: 'Pagrindinis', path: '/' }] }}
|
|
23
|
+
title='Formų bei komponentų pavyzdžiai'
|
|
24
|
+
>
|
|
25
|
+
<Stack direction='row' spacing={2}>
|
|
26
|
+
{routes?.map((route) => (
|
|
27
|
+
<Button
|
|
28
|
+
key={route.routeTo}
|
|
29
|
+
component={Link}
|
|
30
|
+
to={route.routeTo}
|
|
31
|
+
color='primary'
|
|
32
|
+
variant='contained'
|
|
33
|
+
size='small'
|
|
34
|
+
>
|
|
35
|
+
{route.title}
|
|
36
|
+
</Button>
|
|
37
|
+
))}
|
|
38
|
+
</Stack>
|
|
39
|
+
</ServiceHeader>
|
|
40
|
+
</ServicePage>
|
|
41
|
+
)
|
|
42
|
+
}
|