@registrucentras/rc-ses-react-components 1.12.0 → 2.0.0-rc.1
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/ArrowLeftIcon.d.ts +1 -1
- package/dist/assets/icons/ArrowRightIcon.d.ts +1 -1
- package/dist/assets/icons/ArrowsClockwiseIcon.d.ts +1 -1
- package/dist/assets/icons/BarcodeIcon.d.ts +1 -1
- package/dist/assets/icons/CalendarBlankIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDoubleRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretDownFill.d.ts +1 -1
- package/dist/assets/icons/CaretDownIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretLeftIcon.d.ts +1 -1
- package/dist/assets/icons/CaretRightBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CaretUpBoldIcon.d.ts +3 -0
- package/dist/assets/icons/CaretUpIcon.d.ts +3 -0
- package/dist/assets/icons/CheckBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CheckCircleFillIcon.d.ts +1 -1
- package/dist/assets/icons/CheckIcon.d.ts +1 -1
- package/dist/assets/icons/CheckUncheckedBoldIcon.d.ts +1 -1
- package/dist/assets/icons/CircleFilledIcon.d.ts +1 -1
- package/dist/assets/icons/CloseIcon.d.ts +1 -1
- package/dist/assets/icons/CollapseChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/CopyIcon.d.ts +1 -1
- package/dist/assets/icons/DotCircleFilledIcon.d.ts +1 -1
- package/dist/assets/icons/ExpandChevronsIcon.d.ts +1 -1
- package/dist/assets/icons/InfoFillIcon.d.ts +1 -1
- package/dist/assets/icons/ListIcon.d.ts +3 -0
- package/dist/assets/icons/MagnifyingGlassIcon.d.ts +1 -1
- package/dist/assets/icons/MapPinAreaIcon.d.ts +1 -1
- package/dist/assets/icons/MinusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/MinusIcon.d.ts +3 -0
- package/dist/assets/icons/NotePencilIcon.d.ts +3 -0
- package/dist/assets/icons/PencilSimpleLineIcon.d.ts +1 -1
- package/dist/assets/icons/PlusBoldIcon.d.ts +1 -1
- package/dist/assets/icons/PlusIcon.d.ts +3 -0
- package/dist/assets/icons/QuestionFillIcon.d.ts +1 -1
- package/dist/assets/icons/QuestionIcon.d.ts +1 -1
- package/dist/assets/icons/ScalesIcon.d.ts +1 -1
- package/dist/assets/icons/ScrollIcon.d.ts +1 -1
- package/dist/assets/icons/SearchHelpIcon.d.ts +1 -1
- package/dist/assets/icons/SearchXIcon.d.ts +1 -1
- package/dist/assets/icons/SpinnerGapBoldIcon.d.ts +1 -1
- package/dist/assets/icons/TrashIcon.d.ts +3 -0
- package/dist/assets/icons/UploadSimpleIcon.d.ts +1 -1
- package/dist/assets/icons/UserIcon.d.ts +3 -0
- package/dist/assets/icons/WarningCircleIcon.d.ts +1 -1
- package/dist/assets/icons/WarningDiamondFillIcon.d.ts +1 -1
- package/dist/assets/icons/WarningFillIcon.d.ts +1 -1
- package/dist/assets/icons/XCircleFillIcon.d.ts +1 -1
- package/dist/components/common/Accordion/index.d.ts +1 -1
- package/dist/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.d.ts +106 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.d.ts +12 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.d.ts +7 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.d.ts +2 -0
- package/dist/components/common/AdvancedList/components/AdvancedListItem/index.d.ts +4 -0
- package/dist/components/common/AdvancedList/index.d.ts +11 -0
- package/dist/components/common/Alert/index.d.ts +1 -1
- package/dist/components/common/Badge/index.d.ts +1 -1
- package/dist/components/common/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/common/Button/ButtonWithPopover.d.ts +1 -1
- package/dist/components/common/Button/index.d.ts +13 -5
- package/dist/components/common/Card/index.d.ts +1 -1
- package/dist/components/common/DataPagination/components/DataPaginationSkeleton.d.ts +1 -1
- package/dist/components/common/DataPagination/components/PaginationButton.d.ts +1 -1
- package/dist/components/common/DataPagination/index.d.ts +1 -1
- package/dist/components/common/IconWithCircularBackground.d.ts +1 -1
- package/dist/components/common/ImageCard/index.d.ts +1 -1
- package/dist/components/common/ListWithIcons/components/ListWithIconsItem.d.ts +1 -1
- package/dist/components/common/ListWithIcons/index.d.ts +1 -1
- package/dist/components/common/Popover/index.d.ts +1 -1
- package/dist/components/common/SelectableCardList/components/SelectableCardListItem.d.ts +4 -1
- package/dist/components/common/SelectableCardList/index.d.ts +4 -1
- package/dist/components/common/Snackbar/SnackbarProvider.d.ts +1 -1
- package/dist/components/common/Snackbar/index.d.ts +1 -1
- package/dist/components/common/Switch/index.d.ts +1 -1
- package/dist/components/common/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/common/Tabs/TabsWrapper.d.ts +1 -1
- package/dist/components/common/Tooltip/index.d.ts +1 -1
- package/dist/components/form/components/FormControlWrapper/components/FieldSuffix.d.ts +1 -1
- package/dist/components/form/components/FormControlWrapper/index.d.ts +1 -1
- package/dist/components/form/inputs/Checkbox.d.ts +1 -1
- package/dist/components/form/inputs/CheckboxFormControl.d.ts +1 -1
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.d.ts +1 -1
- package/dist/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.d.ts +2 -1
- package/dist/components/form/inputs/Datepicker/index.d.ts +1 -1
- package/dist/components/form/inputs/FileDropzone.d.ts +1 -1
- package/dist/components/form/inputs/FileUpload.d.ts +1 -1
- package/dist/components/form/inputs/FormControlLabel.d.ts +2 -2
- package/dist/components/form/inputs/NumberStepper.d.ts +2 -1
- package/dist/components/form/inputs/PhoneInput.d.ts +2 -1
- package/dist/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.d.ts +1 -1
- package/dist/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.d.ts +13 -0
- package/dist/components/form/inputs/PhoneInputFormControl/components/PopperComponent.d.ts +1 -1
- package/dist/components/form/inputs/PhoneInputFormControl/components/RowComponent.d.ts +5 -2
- package/dist/components/form/inputs/PhoneInputFormControl/index.d.ts +2 -1
- package/dist/components/form/inputs/Select/index.d.ts +2 -1
- package/dist/components/form/inputs/SimpleCheckbox.d.ts +2 -1
- package/dist/components/layout/Footer/index.d.ts +1 -1
- package/dist/components/layout/ServiceFormActions.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/AccordionFormContainer/index.d.ts +1 -1
- package/dist/components/layout/ServiceFormContainer/CardFormContainer/index.d.ts +1 -1
- package/dist/components/layout/ServiceHeader.d.ts +1 -1
- package/dist/components/layout/ServicePage.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/CustomStepIcon.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/DesktopStepper.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/HorizontalStepperButton.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/components/MobileStepper.d.ts +1 -1
- package/dist/components/layout/ServiceWizardStepper/index.d.ts +1 -1
- package/dist/components/loaders/FullPageLoader/index.d.ts +1 -1
- package/dist/components/loaders/Loader/index.d.ts +1 -1
- package/dist/components/loaders/LoadingSpinner/index.d.ts +1 -1
- package/dist/components/overlays/Dialog/index.d.ts +1 -1
- package/dist/components/overlays/Modal/index.d.ts +1 -1
- package/dist/components/utils/loading.d.ts +1 -1
- package/dist/i18n/@mui/x-date-pickers/ltLT.d.ts +1 -71
- package/dist/library/icons.d.ts +9 -1
- package/dist/library/index.d.ts +3 -0
- package/dist/registrucentras-rc-ses-react-components.cjs +1 -30
- package/dist/registrucentras-rc-ses-react-components.js +6698 -7777
- package/dist/stories/assets/Logo.stories.d.ts +1 -1
- package/dist/stories/components/actions/Button.stories.d.ts +6 -5
- package/dist/stories/components/actions/ButtonWithPopover.stories.d.ts +1 -1
- package/dist/stories/components/display/AdvancedList.stories.d.ts +32 -0
- package/dist/stories/components/display/AdvancedListItem.stories.d.ts +33 -0
- package/dist/stories/components/display/Badge.stories.d.ts +1 -1
- package/dist/stories/components/display/Card.stories.d.ts +1 -1
- package/dist/stories/components/display/ImageCard.stories.d.ts +1 -1
- package/dist/stories/components/display/ListWithIcons.stories.d.ts +2 -2
- package/dist/stories/components/display/SegmentedControl.stories.d.ts +9 -9
- package/dist/stories/components/display/SelectableCardList.stories.d.ts +2 -2
- package/dist/stories/components/display/Tooltip.stories.d.ts +2 -2
- package/dist/stories/components/feedback/Alert.stories.d.ts +1 -1
- package/dist/stories/components/feedback/Snackbar.stories.d.ts +7 -7
- package/dist/stories/components/form/CardFormContainer.stories.d.ts +1 -1
- package/dist/stories/components/form/CheckboxFormControl.stories.d.ts +1 -1
- package/dist/stories/components/form/FormControlWrapper.stories.d.ts +1 -1
- package/dist/stories/components/form/ServiceFormActions.stories.d.ts +1 -1
- package/dist/stories/components/form/ServiceFormContainer.stories.d.ts +2 -2
- package/dist/stories/components/form/SimpleCheckbox.stories.d.ts +1 -1
- package/dist/stories/components/icons/IconWithCircularBackground.stories.d.ts +1 -1
- package/dist/stories/components/icons/Icons.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Checkbox.stories.d.ts +2 -2
- package/dist/stories/components/inputs/DatePicker.stories.d.ts +25 -2
- package/dist/stories/components/inputs/FileDropzone.stories.d.ts +1 -1
- package/dist/stories/components/inputs/FileUpload.stories.d.ts +2 -2
- package/dist/stories/components/inputs/NumberStepper.stories.d.ts +1 -1
- package/dist/stories/components/inputs/PhoneInput.stories.d.ts +2 -2
- package/dist/stories/components/inputs/PhoneInputFormControl.stories.d.ts +1 -1
- package/dist/stories/components/inputs/RadioButtonGroup.stories.d.ts +1 -1
- package/dist/stories/components/inputs/SearchInput.stories.d.ts +1 -1
- package/dist/stories/components/inputs/SearchableField.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Select.stories.d.ts +1 -1
- package/dist/stories/components/inputs/Switch.stories.d.ts +1 -1
- package/dist/stories/components/inputs/TextField.stories.d.ts +1 -1
- package/dist/stories/components/layout/Footer.stories.d.ts +1 -1
- package/dist/stories/components/layout/ServiceHeader.stories.d.ts +1 -1
- package/dist/stories/components/layout/ServicePage.stories.d.ts +1 -1
- package/dist/stories/components/loaders/FullPageLoader.stories.d.ts +1 -1
- package/dist/stories/components/loaders/Loader.stories.d.ts +1 -1
- package/dist/stories/components/loaders/LoadingSpinner.stories.d.ts +4 -4
- package/dist/stories/components/navigation/Accordion.stories.d.ts +2 -2
- package/dist/stories/components/navigation/Breadcrumbs.stories.d.ts +1 -1
- package/dist/stories/components/navigation/DataPagination.stories.d.ts +2 -2
- package/dist/stories/components/navigation/ServiceWizardStepper.stories.d.ts +1 -1
- package/dist/stories/components/overlays/Dialog.stories.d.ts +7 -1
- package/dist/stories/components/overlays/Modal.stories.d.ts +1 -1
- package/dist/stories/components/overlays/Popover.stories.d.ts +12 -0
- package/dist/stories/components/tabs/Tab.stories.d.ts +1 -1
- package/dist/stories/components/tabs/TabPanel.stories.d.ts +1 -1
- package/dist/stories/components/tabs/Tabs.stories.d.ts +1 -1
- package/dist/stories/components/tabs/TabsWrapper.stories.d.ts +1 -1
- package/dist/stories/theme/ThemedMuiComponents.stories.d.ts +25 -0
- package/dist/theme/motion.d.ts +16 -0
- package/package.json +64 -62
- package/src/assets/icons/CaretUpBoldIcon.tsx +17 -0
- package/src/assets/icons/CaretUpIcon.tsx +9 -0
- package/src/assets/icons/ListIcon.tsx +17 -0
- package/src/assets/icons/MinusIcon.tsx +9 -0
- package/src/assets/icons/NotePencilIcon.tsx +9 -0
- package/src/assets/icons/PlusIcon.tsx +9 -0
- package/src/assets/icons/TrashIcon.tsx +23 -0
- package/src/assets/icons/UserIcon.tsx +17 -0
- package/src/components/common/Accordion/index.tsx +0 -1
- package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts +100 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemLeading.tsx +224 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/components/AdvancedListItemTrailing.tsx +263 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.test.ts +80 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/hooks/usePrefersReducedMotion.ts +28 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.test.tsx +631 -0
- package/src/components/common/AdvancedList/components/AdvancedListItem/index.tsx +332 -0
- package/src/components/common/AdvancedList/index.test.tsx +97 -0
- package/src/components/common/AdvancedList/index.tsx +52 -0
- package/src/components/common/Alert/index.test.tsx +1 -1
- package/src/components/common/Badge/index.test.tsx +1 -1
- package/src/components/common/Button/index.test.tsx +5 -2
- package/src/components/common/Button/index.tsx +25 -5
- package/src/components/common/Card/index.test.tsx +1 -1
- package/src/components/common/DataPagination/index.test.tsx +1 -1
- package/src/components/common/DataPagination/index.tsx +14 -2
- package/src/components/common/ImageCard/index.test.tsx +1 -1
- package/src/components/common/ListWithIcons/index.test.tsx +1 -1
- package/src/components/common/SegmentedControl/components/SegmentButton/index.test.tsx +1 -1
- package/src/components/common/SegmentedControl/components/SegmentButton/index.tsx +2 -0
- package/src/components/common/SegmentedControl/index.test.tsx +1 -1
- package/src/components/common/SelectableCardList/components/SelectableCardListItem.test.tsx +50 -0
- package/src/components/common/SelectableCardList/components/SelectableCardListItem.tsx +48 -2
- package/src/components/common/SelectableCardList/index.test.tsx +1 -1
- package/src/components/common/SelectableCardList/index.tsx +6 -0
- package/src/components/common/Snackbar/SnackbarProvider.tsx +1 -1
- package/src/components/common/Snackbar/index.test.tsx +1 -1
- package/src/components/common/Snackbar/index.tsx +3 -1
- package/src/components/common/Switch/index.test.tsx +1 -1
- package/src/components/common/Switch/index.tsx +21 -6
- package/src/components/common/Tooltip/index.test.tsx +2 -4
- package/src/components/common/Tooltip/index.tsx +5 -4
- package/src/components/form/components/FormControlWrapper/const/FormControlLayoutVariables.ts +1 -1
- package/src/components/form/inputs/CheckboxFormControl.tsx +7 -3
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerActionBar.tsx +8 -5
- package/src/components/form/inputs/Datepicker/components/RcSesDatepickerCalendarHeader.tsx +12 -12
- package/src/components/form/inputs/Datepicker/index.tsx +37 -32
- package/src/components/form/inputs/FileDropzone.tsx +6 -1
- package/src/components/form/inputs/NumberStepper.tsx +10 -5
- package/src/components/form/inputs/PhoneInputFormControl/components/AutocompleteInput.tsx +15 -11
- package/src/components/form/inputs/PhoneInputFormControl/components/ListboxComponent.tsx +31 -27
- package/src/components/form/inputs/PhoneInputFormControl/components/RowComponent.tsx +8 -4
- package/src/components/form/inputs/PhoneInputFormControl/index.test.tsx +57 -2
- package/src/components/form/inputs/PhoneInputFormControl/index.tsx +66 -53
- package/src/components/form/inputs/RadioButtonGroup.tsx +0 -1
- package/src/components/form/inputs/SearchInput/index.test.tsx +1 -1
- package/src/components/form/inputs/SearchInput/index.tsx +23 -13
- package/src/components/form/inputs/SearchableField.test.tsx +126 -0
- package/src/components/form/inputs/SearchableField.tsx +29 -24
- package/src/components/form/inputs/Select/index.test.tsx +1 -1
- package/src/components/form/inputs/Select/index.tsx +95 -65
- package/src/components/form/inputs/TextField.tsx +1 -7
- package/src/components/layout/Footer/index.test.tsx +1 -1
- package/src/components/layout/ServiceFormActions.tsx +3 -3
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/components/AccordionCollapseControls.tsx +2 -2
- package/src/components/layout/ServiceFormContainer/AccordionFormContainer/index.tsx +2 -2
- package/src/components/layout/ServiceFormContainer/CardFormContainer/index.test.tsx +1 -1
- package/src/components/layout/ServiceWizardStepper/components/DesktopStepper.tsx +2 -1
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.test.tsx +8 -6
- package/src/components/layout/ServiceWizardStepper/components/MobileStepper.tsx +2 -1
- package/src/components/loaders/FullPageLoader/index.test.tsx +1 -1
- package/src/components/loaders/FullPageLoader/index.tsx +4 -3
- package/src/components/loaders/Loader/index.test.tsx +1 -1
- package/src/components/loaders/Loader/index.tsx +14 -4
- package/src/components/loaders/LoadingSpinner/index.test.tsx +1 -1
- package/src/components/overlays/Dialog/index.test.tsx +1 -1
- package/src/components/overlays/Dialog/index.tsx +7 -5
- package/src/components/overlays/Modal/index.test.tsx +1 -1
- package/src/components/overlays/Modal/index.tsx +4 -2
- package/src/env.tsx +1 -1
- package/src/examples/MultipleStepForm/components/ServiceDetailsForm.tsx +0 -5
- package/src/examples/MultipleStepForm/components/ServiceIssuanceForm.tsx +0 -2
- package/src/examples/MultipleStepForm/components/TermsAndConditionsForm.tsx +2 -2
- package/src/examples/SingleStepForm/components/ObjectIdentifierSearchModal.tsx +12 -8
- package/src/examples/SingleStepForm/index.tsx +0 -2
- package/src/i18n/@mui/x-date-pickers/ltLT.ts +15 -1
- package/src/i18n/namespaces/common/en.json +11 -0
- package/src/i18n/namespaces/common/lt.json +11 -0
- package/src/library/icons.ts +16 -0
- package/src/library/index.ts +3 -0
- package/src/main.tsx +1 -1
- package/src/setupTests.ts +7 -1
- package/src/stories/Colors.mdx +1 -1
- package/src/stories/Welcome.mdx +1 -1
- package/src/stories/assets/Logo.stories.tsx +1 -1
- package/src/stories/components/actions/Button.stories.tsx +2 -2
- package/src/stories/components/actions/ButtonWithPopover.stories.tsx +1 -1
- package/src/stories/components/display/AdvancedList.stories.tsx +529 -0
- package/src/stories/components/display/AdvancedListItem.stories.tsx +653 -0
- package/src/stories/components/display/Badge.stories.tsx +24 -5
- package/src/stories/components/display/Card.stories.tsx +1 -1
- package/src/stories/components/display/ImageCard.stories.tsx +1 -1
- package/src/stories/components/display/ListWithIcons.stories.tsx +1 -1
- package/src/stories/components/display/SegmentedControl.stories.tsx +1 -1
- package/src/stories/components/display/SelectableCardList.stories.tsx +4 -1
- package/src/stories/components/display/Tooltip.stories.tsx +1 -1
- package/src/stories/components/feedback/Alert.stories.tsx +1 -1
- package/src/stories/components/feedback/Snackbar.stories.tsx +1 -1
- package/src/stories/components/form/CardFormContainer.stories.tsx +1 -1
- package/src/stories/components/form/CheckboxFormControl.stories.tsx +1 -1
- package/src/stories/components/form/FormControlWrapper.stories.tsx +1 -1
- package/src/stories/components/form/ServiceFormActions.stories.tsx +1 -1
- package/src/stories/components/form/ServiceFormContainer.stories.tsx +1 -3
- package/src/stories/components/form/SimpleCheckbox.stories.tsx +1 -1
- package/src/stories/components/icons/IconWithCircularBackground.stories.tsx +1 -1
- package/src/stories/components/icons/Icons.stories.tsx +1 -2
- package/src/stories/components/inputs/Checkbox.stories.tsx +1 -2
- package/src/stories/components/inputs/DatePicker.stories.tsx +38 -4
- package/src/stories/components/inputs/FileDropzone.stories.tsx +1 -1
- package/src/stories/components/inputs/FileUpload.stories.tsx +1 -2
- package/src/stories/components/inputs/NumberStepper.stories.tsx +1 -1
- package/src/stories/components/inputs/PhoneInput.stories.tsx +1 -2
- package/src/stories/components/inputs/PhoneInputFormControl.stories.tsx +3 -2
- package/src/stories/components/inputs/RadioButtonGroup.stories.tsx +1 -1
- package/src/stories/components/inputs/SearchInput.stories.tsx +2 -2
- package/src/stories/components/inputs/SearchableField.stories.tsx +1 -1
- package/src/stories/components/inputs/Select.stories.tsx +1 -2
- package/src/stories/components/inputs/Switch.stories.tsx +1 -1
- package/src/stories/components/inputs/TextField.stories.tsx +1 -1
- package/src/stories/components/layout/Footer.stories.tsx +1 -1
- package/src/stories/components/layout/ServiceHeader.stories.tsx +1 -1
- package/src/stories/components/layout/ServicePage.stories.tsx +1 -1
- package/src/stories/components/loaders/FullPageLoader.stories.tsx +1 -1
- package/src/stories/components/loaders/Loader.stories.tsx +1 -1
- package/src/stories/components/loaders/LoadingSpinner.stories.tsx +1 -1
- package/src/stories/components/navigation/Accordion.stories.tsx +1 -2
- package/src/stories/components/navigation/Breadcrumbs.stories.tsx +1 -1
- package/src/stories/components/navigation/DataPagination.stories.tsx +8 -2
- package/src/stories/components/navigation/ServiceWizardStepper.stories.tsx +1 -1
- package/src/stories/components/overlays/Dialog.stories.tsx +35 -1
- package/src/stories/components/overlays/Modal.stories.tsx +1 -1
- package/src/stories/components/overlays/Popover.stories.tsx +65 -0
- package/src/stories/components/tabs/Tab.stories.tsx +12 -1
- package/src/stories/components/tabs/TabPanel.stories.tsx +1 -1
- package/src/stories/components/tabs/Tabs.stories.tsx +1 -1
- package/src/stories/components/tabs/TabsWrapper.stories.tsx +1 -1
- package/src/stories/theme/ThemedMuiComponents.stories.tsx +177 -0
- package/src/theme/light/MuiAlert.tsx +82 -75
- package/src/theme/light/MuiLinearProgress.ts +6 -2
- package/src/theme/light/MuiPickersLayout.ts +4 -4
- package/src/theme/light/MuiTabs.tsx +2 -1
- package/src/theme/motion.tsx +10 -0
- package/src/types/common/ColorType.tsx +1 -7
- package/dist/components/form/inputs/PhoneInputFormControl/components/OuterElementType.d.ts +0 -5
- package/dist/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.d.ts +0 -4
- package/src/components/form/inputs/PhoneInputFormControl/components/OuterElementType.tsx +0 -13
- package/src/components/form/inputs/PhoneInputFormControl/hooks/useResetCache.ts +0 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { default as RcSesPopover } from '../../../components/common/Popover';
|
|
3
|
+
/**
|
|
4
|
+
* `RcSesButtonWithPopover` owns the popover's open state internally and starts
|
|
5
|
+
* closed, so `MuiPopover` never reached a visual baseline (SAV-5648 / LIB-02).
|
|
6
|
+
* These stories render the popover itself, already open against a fixed anchor.
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<typeof RcSesPopover>;
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof RcSesPopover>;
|
|
11
|
+
export declare const Default: Story;
|
|
12
|
+
export declare const WithoutHeader: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { default as RcSesTabsWrapper } from '../../../components/common/Tabs/TabsWrapper';
|
|
3
3
|
declare const meta: Meta<typeof RcSesTabsWrapper>;
|
|
4
4
|
export default meta;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
/**
|
|
3
|
+
* Coverage stories for theme slots no other story puts on the page
|
|
4
|
+
* (SAV-5648 / LIB-02). `visual/theme-slots.spec.ts` fails if one is missing.
|
|
5
|
+
*
|
|
6
|
+
* Two reasons a slot ends up here:
|
|
7
|
+
*
|
|
8
|
+
* 1. **No `RcSes*` wrapper renders it.** `MuiTable`, `MuiTableCell`,
|
|
9
|
+
* `MuiCardHeader`, `MuiCardContent` and `MuiLinearProgress` ship to consumers
|
|
10
|
+
* and are exercised by nothing - `RcSesCard` builds its own header and
|
|
11
|
+
* content out of Stack/Box rather than MUI's slots.
|
|
12
|
+
* 2. **The wrapper never shows it open.** `MuiTooltip` is styled through
|
|
13
|
+
* `RcSesTooltip`, but that component owns its open state internally and no
|
|
14
|
+
* story can force it, so the popper never reaches a baseline.
|
|
15
|
+
*
|
|
16
|
+
* Either way these render the plain MUI component under the theme, so a broken
|
|
17
|
+
* or silently dead override surfaces as a pixel diff.
|
|
18
|
+
*/
|
|
19
|
+
declare const meta: Meta;
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj;
|
|
22
|
+
export declare const TableSlots: Story;
|
|
23
|
+
export declare const CardSlots: Story;
|
|
24
|
+
export declare const LinearProgressSlots: Story;
|
|
25
|
+
export declare const TooltipSlots: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const duration: {
|
|
2
|
+
standard: number;
|
|
3
|
+
};
|
|
4
|
+
declare const easing: {
|
|
5
|
+
standard: string;
|
|
6
|
+
};
|
|
7
|
+
export { duration, easing };
|
|
8
|
+
declare const _default: {
|
|
9
|
+
duration: {
|
|
10
|
+
standard: number;
|
|
11
|
+
};
|
|
12
|
+
easing: {
|
|
13
|
+
standard: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@registrucentras/rc-ses-react-components",
|
|
3
3
|
"author": "VĮ REGISTRŲ CENTRAS",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-rc.1",
|
|
5
5
|
"description": "RC SES React komponentų biblioteka",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"private": false,
|
|
@@ -35,91 +35,93 @@
|
|
|
35
35
|
"storybook-build": "storybook build",
|
|
36
36
|
"test": "vitest",
|
|
37
37
|
"test:run": "vitest run",
|
|
38
|
-
"test:coverage": "vitest run --coverage"
|
|
38
|
+
"test:coverage": "vitest run --coverage",
|
|
39
|
+
"test:visual": "playwright test",
|
|
40
|
+
"test:visual:ci": "npm run storybook-build && playwright test",
|
|
41
|
+
"test:visual:update": "docker run --rm -v .:/work -v rcses-visual-node-modules:/work/node_modules -w /work mcr.microsoft.com/playwright:v1.62.0-noble bash -c \"npm ci --no-audit --no-fund && npm run storybook-build && npx playwright test --update-snapshots\"",
|
|
42
|
+
"test:visual:update:new": "docker run --rm -v .:/work -v rcses-visual-node-modules:/work/node_modules -w /work mcr.microsoft.com/playwright:v1.62.0-noble bash -c \"npm ci --no-audit --no-fund && npm run storybook-build && npx playwright test --update-snapshots missing\"",
|
|
43
|
+
"test:visual:report": "playwright show-report"
|
|
39
44
|
},
|
|
40
45
|
"repository": {
|
|
41
46
|
"type": "git",
|
|
42
47
|
"url": "https://github.com/registrucentras/rc-ses-react-components.git"
|
|
43
48
|
},
|
|
44
49
|
"peerDependencies": {
|
|
45
|
-
"@emotion/react": "11.13.3",
|
|
46
|
-
"@emotion/styled": "11.13.0",
|
|
47
|
-
"@mui/material": "
|
|
48
|
-
"@mui/system": "
|
|
49
|
-
"@mui/x-date-pickers": "
|
|
50
|
-
"date-fns": "3.6.0",
|
|
51
|
-
"date-fns-tz": "3.
|
|
52
|
-
"
|
|
53
|
-
"react": "18.3.1",
|
|
54
|
-
"react-
|
|
55
|
-
"react-i18next": "14.1.3"
|
|
50
|
+
"@emotion/react": "^11.13.3",
|
|
51
|
+
"@emotion/styled": "^11.13.0",
|
|
52
|
+
"@mui/material": "^9.2.0",
|
|
53
|
+
"@mui/system": "^9.2.0",
|
|
54
|
+
"@mui/x-date-pickers": "^9.10.1",
|
|
55
|
+
"date-fns": "^3.6.0 || ^4.0.0",
|
|
56
|
+
"date-fns-tz": "^3.2.0",
|
|
57
|
+
"react": "^18.3.1 || ^19.0.0",
|
|
58
|
+
"react-dom": "^18.3.1 || ^19.0.0",
|
|
59
|
+
"react-hook-form": "^7.53.2"
|
|
56
60
|
},
|
|
57
61
|
"dependencies": {
|
|
58
|
-
"@fontsource/public-sans": "^5.0.18",
|
|
59
62
|
"@phosphor-icons/react": "^2.1.10",
|
|
60
|
-
"axios": "^1.7.2",
|
|
61
63
|
"countries-phone-masks": "^1.1.1",
|
|
64
|
+
"i18next": "^26.3.6",
|
|
62
65
|
"js-cookie": "^3.0.5",
|
|
63
66
|
"maska": "^3.2.0",
|
|
64
|
-
"
|
|
65
|
-
"react-
|
|
66
|
-
"react-
|
|
67
|
-
"
|
|
68
|
-
"react-window": "^1.8.11",
|
|
69
|
-
"uuid": "^11.0.3"
|
|
67
|
+
"react-dropzone": "19.1.1",
|
|
68
|
+
"react-i18next": "^17.0.11",
|
|
69
|
+
"react-window": "^2.3.0",
|
|
70
|
+
"uuid": "^14.0.1"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
72
|
-
"@chromatic-com/storybook": "^
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/
|
|
85
|
-
"@storybook/
|
|
86
|
-
"@
|
|
73
|
+
"@chromatic-com/storybook": "^5.2.1",
|
|
74
|
+
"@emotion/react": "11.13.3",
|
|
75
|
+
"@emotion/styled": "11.13.0",
|
|
76
|
+
"@eslint/js": "^9.39.5",
|
|
77
|
+
"@fontsource/public-sans": "^5.3.0",
|
|
78
|
+
"@microsoft/api-extractor": "^7.58.12",
|
|
79
|
+
"@mui/material": "9.2.0",
|
|
80
|
+
"@mui/system": "9.2.0",
|
|
81
|
+
"@mui/x-date-pickers": "9.10.1",
|
|
82
|
+
"@playwright/test": "^1.62.0",
|
|
83
|
+
"@rollup/plugin-commonjs": "^26.0.3",
|
|
84
|
+
"@storybook/addon-a11y": "^10.5.5",
|
|
85
|
+
"@storybook/addon-coverage": "^3.0.2",
|
|
86
|
+
"@storybook/addon-docs": "^10.5.5",
|
|
87
|
+
"@storybook/addon-links": "^10.5.5",
|
|
88
|
+
"@storybook/addon-onboarding": "^10.5.5",
|
|
89
|
+
"@storybook/addon-themes": "^10.5.5",
|
|
90
|
+
"@storybook/react": "^10.5.5",
|
|
91
|
+
"@storybook/react-vite": "^10.5.5",
|
|
92
|
+
"@storybook/test-runner": "^0.24.4",
|
|
93
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
87
94
|
"@testing-library/react": "^16.3.0",
|
|
88
|
-
"@trivago/prettier-plugin-sort-imports": "^
|
|
95
|
+
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
89
96
|
"@types/js-cookie": "^3.0.6",
|
|
90
97
|
"@types/react": "^18.3.3",
|
|
91
98
|
"@types/react-dom": "^18.3.0",
|
|
92
|
-
"@types/react-helmet": "^6.1.11",
|
|
93
|
-
"@types/react-window": "^1.8.8",
|
|
94
|
-
"@types/uuid": "^10.0.0",
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
96
|
-
"@typescript-eslint/parser": "^7.13.0",
|
|
97
99
|
"@vitejs/plugin-react": "^4.3.4",
|
|
98
100
|
"@vitest/coverage-v8": "^4.0.15",
|
|
99
101
|
"axe-playwright": "^2.0.1",
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"eslint
|
|
103
|
-
"eslint-config-
|
|
104
|
-
"eslint-
|
|
105
|
-
"eslint-import-resolver-typescript": "^
|
|
106
|
-
"eslint-plugin-import": "^2.29.1",
|
|
107
|
-
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
108
|
-
"eslint-plugin-n": "^17.9.0",
|
|
102
|
+
"date-fns": "4.4.0",
|
|
103
|
+
"date-fns-tz": "3.2.0",
|
|
104
|
+
"eslint": "^9.39.5",
|
|
105
|
+
"eslint-config-airbnb-extended": "^3.1.1",
|
|
106
|
+
"eslint-config-prettier": "^10.1.8",
|
|
107
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
109
108
|
"eslint-plugin-prettier": "^5.1.3",
|
|
110
|
-
"eslint-plugin-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"eslint-plugin-storybook": "^0.8.0",
|
|
114
|
-
"jsdom": "^27.3.0",
|
|
109
|
+
"eslint-plugin-storybook": "^10.5.5",
|
|
110
|
+
"globals": "^17.8.0",
|
|
111
|
+
"jsdom": "^29.1.1",
|
|
115
112
|
"prettier": "^3.3.2",
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
113
|
+
"react": "18.3.1",
|
|
114
|
+
"react-dom": "18.3.1",
|
|
115
|
+
"react-hook-form": "7.53.2",
|
|
116
|
+
"react-router-dom": "6.26.2",
|
|
117
|
+
"rollup-plugin-typescript2": "^0.37.0",
|
|
118
|
+
"storybook": "^10.5.5",
|
|
119
|
+
"typescript": "^5.9.3",
|
|
120
|
+
"typescript-eslint": "^8.65.0",
|
|
121
|
+
"vite": "^7.3.6",
|
|
120
122
|
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
121
|
-
"vite-plugin-dts": "^
|
|
122
|
-
"vite-plugin-static-copy": "^
|
|
123
|
+
"vite-plugin-dts": "^5.0.3",
|
|
124
|
+
"vite-plugin-static-copy": "^4.1.1",
|
|
123
125
|
"vitest": "^4.0.15"
|
|
124
126
|
},
|
|
125
127
|
"optionalDependencies": {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CaretUpIcon as CaretUp } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function CaretUpBoldIcon({ className, size = 16, fillColor, ...rest }: IconProps) {
|
|
6
|
+
return (
|
|
7
|
+
<CaretUp
|
|
8
|
+
{...rest}
|
|
9
|
+
className={className}
|
|
10
|
+
size={size}
|
|
11
|
+
weight='bold'
|
|
12
|
+
color={fillColor}
|
|
13
|
+
/>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default CaretUpBoldIcon
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CaretUpIcon as CaretUp } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function CaretUpBoldIcon({ className, size = 16, fillColor, ...rest }: IconProps) {
|
|
6
|
+
return <CaretUp {...rest} className={className} size={size} color={fillColor} />
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default CaretUpBoldIcon
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ListIcon as List } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function ListIcon({
|
|
6
|
+
className,
|
|
7
|
+
fillColor,
|
|
8
|
+
size = 24,
|
|
9
|
+
weight = 'regular',
|
|
10
|
+
...rest
|
|
11
|
+
}: IconProps) {
|
|
12
|
+
return (
|
|
13
|
+
<List {...rest} className={className} size={size} weight={weight} color={fillColor} />
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default ListIcon
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MinusIcon as Minus } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function MinusIcon({ className, size = 16, fillColor, ...rest }: IconProps) {
|
|
6
|
+
return <Minus {...rest} className={className} size={size} color={fillColor} />
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default MinusIcon
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NotePencilIcon as NotePencil } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function NotePencilIcon({ className, size = 16, fillColor, ...rest }: IconProps) {
|
|
6
|
+
return <NotePencil {...rest} className={className} size={size} color={fillColor} />
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default NotePencilIcon
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlusIcon as Plus } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function PlusIcon({ className, size = 16, fillColor, ...rest }: IconProps) {
|
|
6
|
+
return <Plus {...rest} className={className} size={size} color={fillColor} />
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default PlusIcon
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TrashIcon as Trash } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function TrashIcon({
|
|
6
|
+
className,
|
|
7
|
+
fillColor,
|
|
8
|
+
size = 24,
|
|
9
|
+
weight = 'regular',
|
|
10
|
+
...rest
|
|
11
|
+
}: IconProps) {
|
|
12
|
+
return (
|
|
13
|
+
<Trash
|
|
14
|
+
{...rest}
|
|
15
|
+
className={className}
|
|
16
|
+
size={size}
|
|
17
|
+
weight={weight}
|
|
18
|
+
color={fillColor}
|
|
19
|
+
/>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default TrashIcon
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UserIcon as User } from '@phosphor-icons/react'
|
|
2
|
+
|
|
3
|
+
import IconProps from '../IconProps'
|
|
4
|
+
|
|
5
|
+
function UserIcon({
|
|
6
|
+
className,
|
|
7
|
+
fillColor,
|
|
8
|
+
size = 24,
|
|
9
|
+
weight = 'regular',
|
|
10
|
+
...rest
|
|
11
|
+
}: IconProps) {
|
|
12
|
+
return (
|
|
13
|
+
<User {...rest} className={className} size={size} weight={weight} color={fillColor} />
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default UserIcon
|
package/src/components/common/AdvancedList/components/AdvancedListItem/AdvancedListItem.types.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ComponentType, ReactNode } from 'react'
|
|
2
|
+
|
|
3
|
+
import { ListWithIconsItemData } from '@/components/common/ListWithIcons/ListWithIcons.types'
|
|
4
|
+
|
|
5
|
+
export type AdvancedListItemState = 'rest' | 'selected' | 'disabled' | 'error'
|
|
6
|
+
|
|
7
|
+
export type AdvancedListItemStatusColor = 'grey' | 'warning' | 'success' | 'error'
|
|
8
|
+
|
|
9
|
+
export type AdvancedListItemAction = {
|
|
10
|
+
label: string
|
|
11
|
+
icon?: ComponentType<{ fillColor?: string; size?: number }>
|
|
12
|
+
onClick: () => void
|
|
13
|
+
disabled?: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type AdvancedListItemLeading =
|
|
17
|
+
| { type: 'none' }
|
|
18
|
+
| {
|
|
19
|
+
type: 'reorder'
|
|
20
|
+
onMoveUp?: () => void
|
|
21
|
+
onMoveDown?: () => void
|
|
22
|
+
moveUpDisabled?: boolean
|
|
23
|
+
moveDownDisabled?: boolean
|
|
24
|
+
}
|
|
25
|
+
| {
|
|
26
|
+
type: 'checkbox'
|
|
27
|
+
checked: boolean
|
|
28
|
+
onChange: (checked: boolean) => void
|
|
29
|
+
'aria-label'?: string
|
|
30
|
+
}
|
|
31
|
+
| {
|
|
32
|
+
type: 'radio'
|
|
33
|
+
checked: boolean
|
|
34
|
+
onChange: (checked: boolean) => void
|
|
35
|
+
name?: string
|
|
36
|
+
'aria-label'?: string
|
|
37
|
+
}
|
|
38
|
+
| { type: 'drag'; 'aria-label'?: string }
|
|
39
|
+
| {
|
|
40
|
+
type: 'icon'
|
|
41
|
+
icon: ComponentType<{ fillColor?: string; size?: number }>
|
|
42
|
+
'aria-label'?: string
|
|
43
|
+
}
|
|
44
|
+
| { type: 'avatar'; initials?: string; src?: string; alt?: string }
|
|
45
|
+
| { type: 'index'; index: number }
|
|
46
|
+
|
|
47
|
+
export type AdvancedListItemTrailing =
|
|
48
|
+
| { type: 'none' }
|
|
49
|
+
| { type: 'actions'; actions: AdvancedListItemAction[] }
|
|
50
|
+
| {
|
|
51
|
+
type: 'toggle'
|
|
52
|
+
checked: boolean
|
|
53
|
+
onChange: (checked: boolean) => void
|
|
54
|
+
'aria-label'?: string
|
|
55
|
+
}
|
|
56
|
+
| { type: 'status'; label: string; color?: AdvancedListItemStatusColor }
|
|
57
|
+
| {
|
|
58
|
+
type: 'price'
|
|
59
|
+
amount: string
|
|
60
|
+
caption?: string
|
|
61
|
+
onDelete?: () => void
|
|
62
|
+
deleteAriaLabel?: string
|
|
63
|
+
}
|
|
64
|
+
| {
|
|
65
|
+
type: 'checkbox'
|
|
66
|
+
checked: boolean
|
|
67
|
+
onChange: (checked: boolean) => void
|
|
68
|
+
'aria-label'?: string
|
|
69
|
+
}
|
|
70
|
+
| {
|
|
71
|
+
type: 'radio'
|
|
72
|
+
checked: boolean
|
|
73
|
+
onChange: (checked: boolean) => void
|
|
74
|
+
name?: string
|
|
75
|
+
'aria-label'?: string
|
|
76
|
+
}
|
|
77
|
+
| { type: 'chevron' }
|
|
78
|
+
| {
|
|
79
|
+
type: 'stepper'
|
|
80
|
+
value: number
|
|
81
|
+
onChange: (value: number) => void
|
|
82
|
+
min?: number
|
|
83
|
+
max?: number
|
|
84
|
+
'aria-label'?: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface AdvancedListItemProps {
|
|
88
|
+
title: string
|
|
89
|
+
label?: string
|
|
90
|
+
subtitle?: string
|
|
91
|
+
metaItems?: ListWithIconsItemData[]
|
|
92
|
+
leadingMedia?: ReactNode
|
|
93
|
+
expandedContent?: ReactNode
|
|
94
|
+
expanded?: boolean
|
|
95
|
+
onExpandedChange?: (expanded: boolean) => void
|
|
96
|
+
leading?: AdvancedListItemLeading
|
|
97
|
+
trailing?: AdvancedListItemTrailing
|
|
98
|
+
state?: AdvancedListItemState
|
|
99
|
+
onClick?: () => void
|
|
100
|
+
}
|