@galaxy-ds/core 2.0.2 → 2.0.4
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/Accordion/Accordion.d.ts +2 -2
- package/dist/Accordion/Accordion.types.d.ts +10 -0
- package/dist/Accordion/index.d.ts +1 -1
- package/dist/AccordionDetails/AccordionDetails.d.ts +1 -1
- package/{src/AccordionDetails/AccordionDetailsProps.types.tsx → dist/AccordionDetails/AccordionDetails.types.d.ts} +3 -4
- package/dist/AccordionDetails/index.d.ts +1 -1
- package/dist/AccordionPanel/AccordionPanel.d.ts +1 -1
- package/{src/AccordionPanel/AccordionPanelProps.types.tsx → dist/AccordionPanel/AccordionPanel.types.d.ts} +3 -3
- package/dist/AccordionPanel/index.d.ts +1 -1
- package/dist/AccordionSummary/AccordionSummary.d.ts +1 -1
- package/dist/AccordionSummary/AccordionSummary.types.d.ts +4 -0
- package/dist/AccordionSummary/index.d.ts +1 -1
- package/dist/ActivityLog/ActivityLog.styled.d.ts +1 -0
- package/dist/ActivityLog/ActivityLog.types.d.ts +1 -1
- package/dist/AppBar/AppBar.d.ts +1 -1
- package/dist/AppBar/AppBar.types.d.ts +4 -3
- package/dist/AppointmentCalendar/AppointmentCalendar.d.ts +4 -0
- package/dist/AppointmentCalendar/AppointmentCalendarProps.types.d.ts +89 -0
- package/dist/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/Autocomplete/Autocomplete.types.d.ts +54 -0
- package/dist/Autocomplete/index.d.ts +1 -1
- package/dist/Avatar/Avatar.types.d.ts +2 -2
- package/dist/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/AvatarGroup/AvatarGroup.types.d.ts +9 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarsGroup/AvatarsGroup.d.ts +4 -0
- package/dist/AvatarsGroup/AvatarsGroup.types.d.ts +9 -0
- package/dist/Badge/Badge.d.ts +2 -1
- package/dist/Badge/Badge.types.d.ts +1 -1
- package/dist/BottomListButton/BottomListButton.d.ts +2 -2
- package/dist/BottomListButton/BottomListButton.styled.d.ts +4 -7
- package/dist/BottomListButton/BottomListButton.types.d.ts +5 -0
- package/dist/BottomListButton/index.d.ts +1 -1
- package/dist/Box/Box.d.ts +1 -1
- package/dist/Box/Box.types.d.ts +3 -0
- package/dist/Box/index.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.types.d.ts +3 -0
- package/dist/Breadcrumbs/index.d.ts +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/{src/Button/ButtonProps.types.tsx → dist/Button/Button.types.d.ts} +5 -5
- package/dist/Button/index.d.ts +1 -1
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/Card.styled.d.ts +0 -3
- package/dist/Card/Card.types.d.ts +6 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/Chip/Chip.d.ts +1 -1
- package/dist/Chip/Chip.types.d.ts +6 -0
- package/dist/Chip/index.d.ts +1 -1
- package/dist/CssBaseline/CssBaseline.d.ts +2 -2
- package/dist/CssBaseline/CssBaseline.types.d.ts +1 -1
- package/dist/DatePicker/DatePicker.d.ts +2 -2
- package/dist/DatePicker/DatePicker.styled.d.ts +1 -2
- package/dist/DatePicker/DatePicker.types.d.ts +3 -0
- package/dist/DatePicker/index.d.ts +1 -1
- package/dist/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/DateRangePicker/DateRangePicker.styled.d.ts +1 -2
- package/dist/DateRangePicker/DateRangePicker.types.d.ts +3 -0
- package/dist/DateRangePicker/index.d.ts +1 -1
- package/dist/Dialog/Dialog.d.ts +2 -2
- package/dist/Dialog/Dialog.type.d.ts +2 -1
- package/dist/Dialog/Dialog.types.d.ts +11 -0
- package/dist/Divider/Divider.d.ts +3 -2
- package/dist/Divider/Divider.types.d.ts +3 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/Drawer.d.ts +3 -3
- package/dist/Drawer/Drawer.types.d.ts +5 -0
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DrawerMenu/DrawerMenu.d.ts +3 -3
- package/dist/DrawerMenu/DrawerMenu.types.d.ts +31 -0
- package/dist/DrawerMenu/index.d.ts +1 -1
- package/dist/EmptyState/EmptyState.d.ts +1 -1
- package/dist/EmptyState/EmptyState.types.d.ts +10 -0
- package/dist/EmptyState/index.d.ts +1 -1
- package/dist/FooterActions/FooterActions.d.ts +2 -2
- package/dist/FooterActions/FooterActions.types.d.ts +6 -0
- package/dist/FooterActions/index.d.ts +1 -1
- package/dist/FormBody/FormBody.d.ts +3 -3
- package/dist/FormContainer/FormContainer.d.ts +2 -2
- package/dist/FormContainer/FormContainer.styled.d.ts +3 -1
- package/dist/FormContainer/FormContainer.types.d.ts +2 -1
- package/dist/FormGroup/FormGroup.d.ts +2 -2
- package/dist/FormGroup/FormGroup.types.d.ts +15 -0
- package/dist/FormGroup/index.d.ts +1 -1
- package/dist/FormHeader/FormHeader.d.ts +1 -1
- package/dist/FormHeader/FormHeader.types.d.ts +3 -1
- package/dist/Grid/Grid.d.ts +1 -1
- package/dist/Grid/Grid.types.d.ts +3 -0
- package/dist/Grid/index.d.ts +1 -1
- package/dist/HeaderToolbar/HeaderToolbar.d.ts +1 -1
- package/dist/HeaderToolbar/HeaderToolbar.styled.d.ts +4 -4
- package/dist/HeaderToolbar/HeaderToolbar.types.d.ts +13 -0
- package/dist/HeaderToolbar/index.d.ts +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/Icon/IconProps.types.d.ts +4 -0
- package/dist/IconButton/IconButton.d.ts +2 -2
- package/dist/IconButton/IconButton.types.d.ts +2 -6
- package/dist/Icons/Access.d.ts +3 -0
- package/dist/Icons/AccountingIcon.d.ts +3 -0
- package/dist/Icons/AssignCurvedIcon.d.ts +3 -0
- package/dist/Icons/AvatarBusiness.d.ts +3 -0
- package/dist/Icons/AvatarCompany.d.ts +3 -0
- package/dist/Icons/AvatarGovernment.d.ts +3 -0
- package/dist/Icons/AvatarPeople.d.ts +3 -0
- package/dist/Icons/AvatarPerson.d.ts +3 -0
- package/dist/Icons/AvatarTrust.d.ts +3 -0
- package/dist/Icons/Browse.d.ts +3 -0
- package/dist/Icons/Browse2.d.ts +3 -0
- package/dist/Icons/ButtonCaret.d.ts +3 -0
- package/dist/Icons/ButtonFilter.d.ts +3 -0
- package/dist/Icons/Calendar.d.ts +3 -0
- package/dist/Icons/ChevronDown.d.ts +3 -0
- package/dist/Icons/ChevronLeft.d.ts +3 -0
- package/dist/Icons/ChevronRight.d.ts +3 -0
- package/dist/Icons/CoinEuroIcon.d.ts +3 -0
- package/dist/Icons/CoinIcon.d.ts +3 -0
- package/dist/Icons/CoinPoundIcon.d.ts +3 -0
- package/dist/Icons/Cross.d.ts +3 -0
- package/dist/Icons/CrossIcon16.d.ts +3 -0
- package/dist/Icons/CurrencyEuroIcon.d.ts +3 -0
- package/dist/Icons/CurrencyIcon.d.ts +3 -0
- package/dist/Icons/CurrencyPoundIcon.d.ts +3 -0
- package/dist/Icons/Dialog/Alert.d.ts +3 -0
- package/dist/Icons/Dialog/Info.d.ts +3 -0
- package/dist/Icons/Dialog/InfoCircle.d.ts +3 -0
- package/dist/Icons/Dialog/LeapLogo.d.ts +3 -0
- package/dist/Icons/Dialog/Warning.d.ts +3 -0
- package/dist/Icons/Doctype/ActivityTypeDefault.d.ts +3 -0
- package/dist/Icons/Doctype/ActivityTypePhoneCall.d.ts +3 -0
- package/dist/Icons/Doctype/ActivityTypeScannedDoc.d.ts +3 -0
- package/dist/Icons/Doctype/ActivityTypeVideoCall.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeAppointment.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeAppointmentCriticalDate.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeAudio.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeClausePrecedent.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeComment.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeCriticalDate.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeDeadline.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeDefault.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeEmail.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeEmailDraft.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeEmailReceived.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeEmailRecieved.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeEmailSent.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeExcel.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeFax.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeFileNote.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeFolder.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeImage.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeInfotrack.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeInvoiceRequest.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeInvoiceRequests.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeLetter.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeMemo.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypePdf.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypePowerpoint.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeSMS.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeSignatureDeclined.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeSignaturePending.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeSignatureRequest.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeSignatureSigned.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeTasks.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeTrust.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeVideo.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeWord.d.ts +3 -0
- package/dist/Icons/Doctype/DocTypeZip.d.ts +3 -0
- package/dist/Icons/Doctype16/ActivityTypeDefault16.d.ts +3 -0
- package/dist/Icons/Doctype16/ActivityTypePhoneCall16.d.ts +3 -0
- package/dist/Icons/Doctype16/ActivityTypeScannedDoc16.d.ts +3 -0
- package/dist/Icons/Doctype16/ActivityTypeVideoCall16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeAppointment16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeAppointmentCriticalDate16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeAudio16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeClausePrecedent16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeComment16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeCriticalDate16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeDeadline16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeDefault16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeEmail16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeEmailDraft16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeEmailReceived16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeEmailSent16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeExcel16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeFax16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeFileNote16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeFolder16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeImage16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeInfotrack16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeInvoiceRequest16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeInvoiceRequests16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeLetter16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeMemo16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypePdf16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypePowerpoint16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeSMS16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeSignatureDeclined16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeSignaturePending16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeSignatureRequest16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeSignatureSigned16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeTasks16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeTrust16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeVideo16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeWord16.d.ts +3 -0
- package/dist/Icons/Doctype16/DocTypeZip16.d.ts +3 -0
- package/dist/Icons/EmailSentIcon.d.ts +3 -0
- package/dist/Icons/EnvelopeIcon.d.ts +3 -0
- package/dist/Icons/HomeIcon.d.ts +3 -0
- package/dist/Icons/InsertLink.d.ts +3 -0
- package/dist/Icons/LinkMatter.d.ts +3 -0
- package/dist/Icons/LinkMatterIcon.d.ts +3 -0
- package/dist/Icons/Loader.d.ts +3 -0
- package/dist/Icons/Logos/LawconnectIcon.d.ts +2 -0
- package/dist/Icons/Logos/LeapLogo.d.ts +2 -0
- package/dist/Icons/Logos/poweredByLawconnect.d.ts +2 -0
- package/dist/Icons/MenuIcon.d.ts +3 -0
- package/dist/Icons/MoreVerticalIcon.d.ts +3 -0
- package/dist/Icons/NewAppointment.d.ts +3 -0
- package/dist/Icons/Power.d.ts +3 -0
- package/dist/Icons/Preview.d.ts +3 -0
- package/dist/Icons/Receipt.d.ts +3 -0
- package/dist/Icons/ReportingIcon.d.ts +3 -0
- package/dist/Icons/ResponseIcon.d.ts +3 -0
- package/dist/Icons/RevokeAccess.d.ts +3 -0
- package/dist/Icons/Search.d.ts +3 -0
- package/dist/Icons/SelectFilterEmpty.d.ts +3 -0
- package/dist/Icons/SelectFilterFilled.d.ts +3 -0
- package/dist/Icons/Spinner.d.ts +3 -0
- package/dist/Icons/Tick.d.ts +3 -0
- package/dist/Icons/UserLink.d.ts +3 -0
- package/dist/Icons/UserLock.d.ts +3 -0
- package/dist/Icons/Users.d.ts +3 -0
- package/dist/Icons/ViewAsUser.d.ts +3 -0
- package/dist/Icons/ViewAsUserIcon.d.ts +3 -0
- package/dist/Icons/{doctype/Doctype16 → activities/activities16}/ActivityTypeDefault16.d.ts +1 -0
- package/dist/Icons/{doctype/Doctype16 → activities/activities16}/ActivityTypePhoneCall16.d.ts +1 -0
- package/dist/Icons/{doctype/Doctype16 → activities/activities16}/ActivityTypeScannedDoc16.d.ts +1 -0
- package/dist/Icons/{doctype/Doctype16 → activities/activities16}/ActivityTypeVideoCall16.d.ts +1 -0
- package/dist/Icons/doctypes/Doctype16/DocTypeClausePrecedent16.d.ts +1 -1
- package/dist/Icons/doctypes/Doctype16/DocTypeComment16.d.ts +1 -1
- package/dist/Icons/doctypes/Doctype16/DocTypeEmail16.d.ts +1 -1
- package/dist/Icons/{doctype/Doctype/DocTypeInvoiceRequests.d.ts → doctypes/Doctype16/DocTypeExcel16ShortCut.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype/DocTypeCriticalDate.d.ts → doctypes/Doctype16/DocTypeScannedDoc16.d.ts} +1 -1
- package/dist/Icons/doctypes/Doctype16/DocTypeSignatureDeclined16.d.ts +1 -1
- package/dist/Icons/{doctype/Doctype/ActivityTypeVideoCall.d.ts → doctypes/Doctype16/DocTypeWord16Shortcut.d.ts} +1 -1
- package/dist/Icons/doctypes/Doctype16/DocTypeZip16.d.ts +1 -1
- package/dist/Icons/doctypes/Doctype16/index.d.ts +3 -0
- package/dist/Icons/index.d.ts +50 -0
- package/dist/Icons/lawconnect/index.d.ts +96 -96
- package/dist/Icons/{doctype/Doctype/DocTypeInvoiceRequest.d.ts → leap/ActivityDefault16.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype/DocTypeEmailDraft.d.ts → leap/Appointment16.d.ts} +1 -1
- package/dist/Icons/leap/AutoTimer24.d.ts +2 -0
- package/dist/Icons/{doctype/Doctype/ActivityTypePhoneCall.d.ts → leap/AutoTimerFilled24.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype/DocTypeEmailReceived.d.ts → leap/BlankLetter16.d.ts} +1 -1
- package/dist/Icons/leap/Bylawyers16.d.ts +2 -0
- package/dist/Icons/leap/Carat.d.ts +2 -0
- package/dist/Icons/leap/Clause16.d.ts +2 -0
- package/dist/Icons/leap/CostRecoveryExceeded16.d.ts +2 -0
- package/dist/Icons/leap/Fax16.d.ts +2 -0
- package/dist/Icons/leap/HyperLink16.d.ts +2 -0
- package/dist/Icons/{doctype/Doctype/DocTypeClausePrecedent.d.ts → leap/ManualEntry24.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype/DocTypeSignaturePending.d.ts → leap/ManualEntryFilled24.d.ts} +1 -1
- package/dist/Icons/leap/Memo16.d.ts +2 -0
- package/dist/Icons/leap/PhoneCall16.d.ts +2 -0
- package/dist/Icons/leap/PrecedentNotification16.d.ts +2 -0
- package/dist/Icons/{doctype/Doctype/DocTypeEmailSent.d.ts → leap/ScannedDoc16.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype16/DocTypeComment16.d.ts → leap/SharedFolder16.d.ts} +1 -1
- package/dist/Icons/leap/Sms16.d.ts +2 -0
- package/dist/Icons/{doctype/Doctype/DocTypeInfotrack.d.ts → leap/TaxInvoice16.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype/DocTypePowerpoint.d.ts → leap/TaxInvoice216.d.ts} +1 -1
- package/dist/Icons/{doctype/Doctype16/DocTypeDefault16.d.ts → leap/TimedEntry16.d.ts} +1 -1
- package/dist/Icons/leap/Timer24.d.ts +2 -0
- package/dist/Icons/leap/TimerFillled24.d.ts +2 -0
- package/dist/Icons/{doctype/Doctype/DocTypeEmailRecieved.d.ts → leap/TrustStatement16.d.ts} +1 -1
- package/dist/Icons/leap/UnknownType16.d.ts +2 -0
- package/dist/Icons/leap/Video16.d.ts +2 -0
- package/dist/Icons/leap/VideoCall16.d.ts +2 -0
- package/dist/Icons/leap/VoiceMemo16.d.ts +2 -0
- package/dist/Icons/leap/Zyphta16.d.ts +2 -0
- package/dist/Icons/leap/activities/Activities16/ActivityTypeDefault16.d.ts +3 -0
- package/dist/Icons/leap/activities/Activities16/ActivityTypePhoneCall16.d.ts +3 -0
- package/dist/Icons/leap/activities/Activities16/ActivityTypeScannedDoc16.d.ts +3 -0
- package/dist/Icons/leap/activities/Activities16/ActivityTypeVideoCall16.d.ts +3 -0
- package/dist/Icons/leap/index.d.ts +41 -7
- package/dist/Icons/leap/ribbon/Calendar.d.ts +1 -0
- package/dist/Icons/leap/ribbon/Calendar32.d.ts +3 -0
- package/dist/Icons/leap/ribbon/CalendarDark32.d.ts +3 -0
- package/dist/Icons/leap/ribbon/Delete.d.ts +2 -0
- package/dist/Icons/leap/ribbon/Delete32.d.ts +3 -0
- package/dist/Icons/leap/ribbon/DeleteDark32.d.ts +3 -0
- package/dist/Icons/leap/ribbon/MatterFolder.d.ts +1 -0
- package/dist/Icons/leap/ribbon/MatterFolder32.d.ts +3 -0
- package/dist/Icons/leap/ribbon/MatterFolderDark32.d.ts +3 -0
- package/dist/Icons/leap/ribbon/NewEntry.d.ts +1 -0
- package/dist/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/ImageUpload/ImageUpload.styled.d.ts +2 -0
- package/dist/ImageUpload/ImageUpload.types.d.ts +6 -0
- package/dist/ImageUpload/index.d.ts +1 -1
- package/dist/Input/Input.d.ts +2 -2
- package/dist/Input/Input.types.d.ts +27 -0
- package/dist/Input/index.d.ts +1 -1
- package/dist/InputLabel/InputLabel.d.ts +1 -1
- package/dist/InputLabel/InputLabel.types.d.ts +1 -2
- package/dist/List/List.d.ts +2 -2
- package/dist/List/List.types.d.ts +1 -3
- package/dist/ListItem/ListItem.types.d.ts +0 -7
- package/dist/ListItemAvatar/ListItemAvatar.d.ts +2 -2
- package/dist/ListItemAvatar/ListItemAvatar.types.d.ts +1 -3
- package/dist/ListItemIcon/ListItemIcon.types.d.ts +1 -3
- package/dist/ListSubheader/ListSubheader.types.d.ts +1 -6
- package/dist/Loader/Loader.d.ts +1 -1
- package/dist/Logos/Leap/index.d.ts +1 -1
- package/dist/MenuContext/MenuContext.d.ts +4 -0
- package/dist/MenuContext/MenuContext.types.d.ts +18 -0
- package/dist/MenuHeader/MenuHeader.d.ts +1 -1
- package/dist/MenuHeader/MenuHeader.types.d.ts +4 -0
- package/dist/MenuHeader/index.d.ts +1 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItemSystem/MenuItemSystem.d.ts +4 -0
- package/dist/MenuItemSystem/MenuItemSystem.types.d.ts +25 -0
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.types.d.ts +5 -0
- package/dist/Modal/index.d.ts +1 -1
- package/dist/ModalActions/ModalActions.d.ts +2 -2
- package/dist/ModalActions/ModalActions.types.d.ts +3 -0
- package/dist/ModalActions/index.d.ts +1 -1
- package/dist/ModalContent/ModalContent.d.ts +2 -2
- package/dist/ModalContent/ModalContent.types.d.ts +7 -0
- package/dist/ModalContent/index.d.ts +1 -1
- package/dist/ModalTitle/ModalTitle.d.ts +2 -2
- package/dist/ModalTitle/ModalTitle.types.d.ts +4 -0
- package/dist/ModalTitle/index.d.ts +1 -1
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +3 -0
- package/dist/Popover/Popover.types.d.ts +7 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/ProgressBar/ProgressBar.types.d.ts +1 -2
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/RadioGroup/RadioGroup.types.d.ts +4 -0
- package/dist/RadioGroup/index.d.ts +1 -1
- package/dist/RibbonButton/RibbonButton.d.ts +4 -0
- package/dist/RibbonButton/RibbonButton.styled.d.ts +9 -0
- package/dist/RibbonButton/RibbonButton.types.d.ts +11 -0
- package/dist/RibbonButton/index.d.ts +2 -0
- package/dist/RibbonButtonGroup/RibbonButtonGroup.d.ts +4 -0
- package/dist/RibbonButtonGroup/RibbonButtonGroup.styled.d.ts +8 -0
- package/dist/RibbonButtonGroup/RibbonButtonGroup.types.d.ts +15 -0
- package/dist/RibbonButtonGroup/index.d.ts +2 -0
- package/dist/Select/Select.styled.d.ts +1 -1
- package/dist/SidebarLayout/SidebarLayout.types.d.ts +15 -0
- package/dist/SidebarLayout/index.d.ts +1 -1
- package/dist/StepNavigation/StepNavigation.styled.d.ts +1 -3
- package/dist/Switch/Switch.d.ts +2 -2
- package/dist/Switch/Switch.types.d.ts +3 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabListItem/TabListItem.types.d.ts +2 -2
- package/dist/Table/Table.d.ts +2 -2
- package/dist/Table/Table.types.d.ts +8 -0
- package/dist/Table/index.d.ts +1 -1
- package/dist/TableBody/TableBody.d.ts +2 -2
- package/dist/TableBody/TableBody.types.d.ts +8 -0
- package/dist/TableBody/index.d.ts +1 -1
- package/dist/TableCell/TableCell.d.ts +1 -1
- package/dist/TableCell/TableCell.types.d.ts +9 -0
- package/dist/TableCell/index.d.ts +1 -1
- package/dist/TableCellIcon/TableCellIcon.d.ts +1 -1
- package/dist/TableCellIcon/TableCellIcon.types.d.ts +5 -0
- package/dist/TableCellIcon/index.d.ts +1 -1
- package/dist/TableContainer/TableContainer.d.ts +3 -3
- package/dist/TableContainer/TableContainer.types.d.ts +4 -0
- package/dist/TableContainer/index.d.ts +1 -1
- package/dist/TableFooter/TableFooter.d.ts +2 -2
- package/dist/TableFooter/TableFooter.types.d.ts +3 -0
- package/dist/TableFooter/index.d.ts +1 -1
- package/dist/TableHead/TableHead.d.ts +2 -2
- package/dist/TableHead/TableHead.types.d.ts +3 -0
- package/dist/TableHead/index.d.ts +1 -1
- package/dist/TableRow/TableRow.d.ts +3 -3
- package/dist/TableRow/TableRow.types.d.ts +4 -0
- package/dist/TableRow/index.d.ts +1 -1
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/Tag/Tag.styled.d.ts +1 -3
- package/dist/Tag/Tag.types.d.ts +18 -0
- package/dist/Tag/index.d.ts +1 -1
- package/dist/TextField/TextField.types.d.ts +3 -4
- package/dist/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -0
- package/dist/ThemeProvider/index.d.ts +1 -1
- package/dist/Themes/Core/baseline.d.ts +35 -0
- package/dist/Themes/Core/common.d.ts +289 -0
- package/dist/Themes/Core/props.d.ts +31 -0
- package/dist/Themes/Desktop/index.d.ts +1 -0
- package/dist/Themes/Desktop/pallette.d.ts +234 -0
- package/dist/Themes/Desktop/theme.d.ts +1 -0
- package/dist/Themes/Desktop/typography.d.ts +84 -0
- package/dist/Themes/Web/index.d.ts +1 -0
- package/dist/Themes/Web/pallette.d.ts +234 -0
- package/dist/Themes/Web/theme.d.ts +1 -0
- package/dist/Themes/Web/typography.d.ts +93 -0
- package/dist/Themes/index.d.ts +7 -0
- package/dist/ToolbarButton/ToolbarButton.d.ts +1 -1
- package/dist/ToolbarButton/ToolbarButton.types.d.ts +8 -0
- package/dist/ToolbarButton/index.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.types.d.ts +4 -0
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TwoColumnLayout/TwoColumnLayout.types.d.ts +11 -0
- package/dist/TwoColumnLayout/index.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/Typography.types.d.ts +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +920 -788
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +947 -780
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/src/Accordion/Accordion.test.tsx +3 -2
- package/src/Accordion/Accordion.tsx +70 -48
- package/src/Accordion/{AccordionProps.types.tsx → Accordion.types.ts} +3 -2
- package/src/Accordion/index.ts +2 -2
- package/src/AccordionDetails/AccordionDetails.stories.mdx +13 -1
- package/src/AccordionDetails/AccordionDetails.test.tsx +3 -2
- package/src/AccordionDetails/AccordionDetails.tsx +5 -10
- package/src/AccordionDetails/AccordionDetails.types.ts +3 -0
- package/src/AccordionDetails/index.ts +2 -2
- package/src/AccordionPanel/AccordionPanel.test.tsx +8 -3
- package/src/AccordionPanel/AccordionPanel.tsx +6 -10
- package/src/AccordionPanel/AccordionPanel.types.ts +2 -0
- package/src/AccordionPanel/index.ts +2 -2
- package/src/AccordionSummary/AccordionSummary.test.tsx +3 -2
- package/src/AccordionSummary/AccordionSummary.tsx +11 -14
- package/src/AccordionSummary/{AccordionSummaryProps.types.tsx → AccordionSummary.types.ts} +2 -2
- package/src/AccordionSummary/index.ts +2 -2
- package/src/ActivityLog/ActivityLog.stories.mdx +0 -1
- package/src/ActivityLog/{ActivityLog.styled.ts → ActivityLog.styled.tsx} +42 -38
- package/src/ActivityLog/ActivityLog.test.tsx +26 -0
- package/src/ActivityLog/ActivityLog.tsx +28 -17
- package/src/ActivityLog/ActivityLog.types.ts +15 -17
- package/src/AppBar/AppBar.test.tsx +8 -8
- package/src/AppBar/AppBar.tsx +8 -11
- package/src/AppBar/{AppBar.types.tsx → AppBar.types.ts} +4 -12
- package/src/AttachmentIcon/AttachmentIcon.stories.mdx +253 -64
- package/src/AttachmentIcon/AttachmentIcon.test.tsx +7 -0
- package/src/AttachmentIcon/AttachmentIcon.types.ts +2 -2
- package/src/AttachmentIcon/icons.ts +27 -0
- package/src/Autocomplete/Autocomplete.stories.mdx +99 -54
- package/src/Autocomplete/{Autocomplete.styled.ts → Autocomplete.styled.tsx} +1 -2
- package/src/Autocomplete/Autocomplete.test.tsx +13 -3
- package/src/Autocomplete/Autocomplete.tsx +5 -13
- package/src/Autocomplete/{AutocompleteProps.types.tsx → Autocomplete.types.ts} +4 -28
- package/src/Autocomplete/index.ts +2 -2
- package/src/Autocomplete/story-supports/RecipientInput.js +4 -9
- package/src/Avatar/Avatar.stories.mdx +43 -10
- package/src/Avatar/Avatar.test.tsx +8 -8
- package/src/Avatar/Avatar.types.ts +20 -0
- package/src/AvatarGroup/AvatarGroup.stories.mdx +78 -4
- package/src/AvatarGroup/AvatarGroup.styled.tsx +56 -0
- package/src/AvatarGroup/AvatarGroup.test.tsx +3 -2
- package/src/AvatarGroup/AvatarGroup.tsx +1 -1
- package/src/AvatarGroup/AvatarGroup.types.ts +22 -0
- package/src/AvatarGroup/index.ts +2 -2
- package/src/Badge/Badge.stories.mdx +4 -4
- package/src/Badge/Badge.test.tsx +8 -8
- package/src/Badge/Badge.tsx +4 -5
- package/src/Badge/Badge.types.ts +3 -0
- package/src/BottomListButton/{BottomListButton.styled.ts → BottomListButton.styled.tsx} +8 -4
- package/src/BottomListButton/BottomListButton.test.tsx +3 -2
- package/src/BottomListButton/BottomListButton.tsx +12 -12
- package/src/BottomListButton/BottomListButton.types.ts +6 -0
- package/src/BottomListButton/index.ts +2 -2
- package/src/Box/Box.test.tsx +3 -2
- package/src/Box/Box.tsx +4 -5
- package/src/Box/index.ts +2 -2
- package/src/Breadcrumbs/Breadcrumbs.stories.mdx +0 -1
- package/src/Breadcrumbs/Breadcrumbs.styled.tsx +16 -0
- package/src/Breadcrumbs/Breadcrumbs.test.tsx +8 -8
- package/src/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/Breadcrumbs/Breadcrumbs.types.ts +3 -0
- package/src/Breadcrumbs/index.ts +1 -1
- package/src/Button/Button.stories.mdx +23 -5
- package/src/Button/{Button.styled.ts → Button.styled.tsx} +45 -47
- package/src/Button/Button.test.tsx +4 -3
- package/src/Button/Button.tsx +6 -6
- package/src/Button/Button.types.ts +5 -0
- package/src/Button/index.ts +2 -2
- package/src/Card/Card.stories.mdx +17 -5
- package/src/Card/{Card.styled.ts → Card.styled.tsx} +7 -12
- package/src/Card/Card.test.tsx +3 -2
- package/src/Card/Card.tsx +4 -7
- package/src/Card/Card.types.ts +7 -0
- package/src/Card/index.ts +2 -2
- package/src/Checkbox/Checkbox.stories.mdx +5 -1
- package/src/Checkbox/Checkbox.styled.tsx +8 -0
- package/src/Checkbox/Checkbox.test.tsx +8 -8
- package/src/Checkbox/Checkbox.tsx +10 -11
- package/src/Checkbox/Checkbox.types.ts +7 -0
- package/src/Chip/Chip.stories.mdx +49 -30
- package/src/Chip/{Chip.styled.ts → Chip.styled.tsx} +32 -37
- package/src/Chip/Chip.test.tsx +3 -2
- package/src/Chip/Chip.tsx +15 -15
- package/src/Chip/Chip.types.ts +7 -0
- package/src/Chip/index.ts +2 -2
- package/src/CssBaseline/CssBaseline.tsx +8 -10
- package/src/CssBaseline/CssBaseline.types.ts +2 -3
- package/src/DatePicker/DatePicker.stories.mdx +13 -9
- package/src/DatePicker/DatePicker.styled.tsx +5 -3
- package/src/DatePicker/DatePicker.test.tsx +3 -2
- package/src/DatePicker/DatePicker.tsx +10 -6
- package/src/DatePicker/DatePicker.types.ts +3 -0
- package/src/DatePicker/index.ts +2 -2
- package/src/DateRangePicker/DateRangePicker.stories.mdx +46 -17
- package/src/DateRangePicker/DateRangePicker.styled.tsx +5 -3
- package/src/DateRangePicker/DateRangePicker.test.tsx +3 -2
- package/src/DateRangePicker/DateRangePicker.tsx +1 -3
- package/src/DateRangePicker/index.ts +2 -2
- package/src/Dialog/Dialog.stories.mdx +143 -29
- package/src/Dialog/Dialog.test.tsx +23 -21
- package/src/Dialog/Dialog.tsx +27 -31
- package/src/Dialog/Dialog.type.ts +3 -2
- package/src/Divider/Divider.stories.mdx +6 -0
- package/src/Divider/Divider.test.tsx +2 -2
- package/src/Divider/Divider.tsx +14 -11
- package/src/Divider/Divider.types.ts +3 -0
- package/src/Divider/index.ts +2 -2
- package/src/Drawer/Drawer.stories.mdx +9 -5
- package/src/Drawer/Drawer.test.tsx +4 -3
- package/src/Drawer/Drawer.tsx +24 -19
- package/src/Drawer/Drawer.types.ts +6 -0
- package/src/Drawer/index.ts +2 -2
- package/src/DrawerMenu/DrawerMenu.stories.mdx +2 -2
- package/src/DrawerMenu/DrawerMenu.styled.tsx +73 -73
- package/src/DrawerMenu/DrawerMenu.test.tsx +2 -2
- package/src/DrawerMenu/DrawerMenu.tsx +38 -22
- package/src/DrawerMenu/DrawerMenu.types.ts +32 -0
- package/src/DrawerMenu/index.ts +2 -2
- package/src/Dropdown/Dropdown.stories.mdx +0 -6
- package/src/Dropdown/Dropdown.test.tsx +12 -0
- package/src/Dropdown/Dropdown.tsx +0 -10
- package/src/EmptyState/EmptyState.stories.mdx +5 -5
- package/src/EmptyState/EmptyState.test.tsx +2 -3
- package/src/EmptyState/EmptyState.tsx +3 -10
- package/src/EmptyState/EmptyState.types.ts +12 -0
- package/src/EmptyState/index.ts +2 -2
- package/src/FooterActions/FooterActions.styled.tsx +41 -0
- package/src/FooterActions/FooterActions.test.tsx +3 -2
- package/src/FooterActions/FooterActions.tsx +37 -25
- package/src/FooterActions/{FooterActionsProps.types.tsx → FooterActions.types.ts} +2 -2
- package/src/FooterActions/index.ts +2 -2
- package/src/FormBody/FormBody.stories.mdx +75 -1
- package/src/FormBody/FormBody.test.tsx +7 -0
- package/src/FormBody/FormBody.tsx +11 -18
- package/src/FormBody/FormBody.types.ts +6 -7
- package/src/FormContainer/FormContainer.stories.mdx +92 -10
- package/src/FormContainer/FormContainer.styled.tsx +13 -0
- package/src/FormContainer/FormContainer.test.tsx +7 -0
- package/src/FormContainer/FormContainer.tsx +15 -11
- package/src/FormContainer/FormContainer.types.ts +3 -4
- package/src/FormGroup/FormGroup.stories.mdx +47 -3
- package/src/FormGroup/FormGroup.test.tsx +2 -3
- package/src/FormGroup/FormGroup.tsx +22 -13
- package/src/FormGroup/FormGroup.types.ts +16 -0
- package/src/FormGroup/index.ts +2 -2
- package/src/FormHeader/FormHeader.styled.tsx +68 -0
- package/src/FormHeader/FormHeader.test.tsx +7 -0
- package/src/FormHeader/FormHeader.tsx +73 -48
- package/src/FormHeader/FormHeader.types.ts +8 -7
- package/src/Grid/Grid.stories.mdx +18 -5
- package/src/Grid/Grid.test.tsx +3 -2
- package/src/Grid/Grid.tsx +5 -8
- package/src/Grid/Grid.types.ts +3 -0
- package/src/Grid/index.ts +2 -2
- package/src/HeaderToolbar/HeaderToolbar.stories.mdx +183 -6
- package/src/HeaderToolbar/HeaderToolbar.styled.tsx +14 -11
- package/src/HeaderToolbar/HeaderToolbar.test.tsx +3 -2
- package/src/HeaderToolbar/HeaderToolbar.tsx +22 -12
- package/src/HeaderToolbar/HeaderToolbar.types.ts +13 -0
- package/src/HeaderToolbar/index.ts +2 -2
- package/src/Icon/Icon.stories.mdx +35 -3
- package/src/Icon/Icon.test.tsx +8 -8
- package/src/Icon/Icon.tsx +6 -6
- package/src/IconButton/IconButton.stories.mdx +101 -5
- package/src/IconButton/IconButton.test.tsx +8 -8
- package/src/IconButton/IconButton.tsx +13 -11
- package/src/IconButton/IconButton.types.ts +7 -0
- package/src/IconButton/support/IconButtonMenuListExample.tsx +6 -4
- package/src/Icons/doctype-icons.stories.mdx +260 -213
- package/src/Icons/doctypes/Doctype/icons.ts +247 -0
- package/src/Icons/doctypes/Doctype16/DocTypeAppointment16.tsx +56 -18
- package/src/Icons/doctypes/Doctype16/DocTypeClausePrecedent16.tsx +46 -13
- package/src/Icons/doctypes/Doctype16/DocTypeComment16.tsx +17 -7
- package/src/Icons/doctypes/Doctype16/DocTypeEmail16.tsx +22 -11
- package/src/Icons/doctypes/Doctype16/DocTypeExcel16Shortcut.tsx +99 -0
- package/src/Icons/doctypes/Doctype16/DocTypeScannedDoc16.tsx +43 -0
- package/src/Icons/doctypes/Doctype16/DocTypeSignatureDeclined16.tsx +44 -13
- package/src/Icons/doctypes/Doctype16/DocTypeWord16Shortcut.tsx +75 -0
- package/src/Icons/doctypes/Doctype16/DocTypeZip16.tsx +27 -9
- package/src/Icons/doctypes/Doctype16/icons.ts +148 -0
- package/src/Icons/doctypes/Doctype16/index.ts +37 -35
- package/src/Icons/lawconnect/Filled/index.ts +8 -0
- package/src/Icons/lawconnect/icons.ts +219 -0
- package/src/Icons/lawconnect/index.ts +96 -0
- package/src/Icons/lawconnect-icons.stories.mdx +165 -152
- package/src/Icons/leap/ActivityDefault16.tsx +25 -0
- package/src/Icons/leap/Appointment16.tsx +44 -0
- package/src/Icons/leap/AutoTimer24.tsx +22 -0
- package/src/Icons/leap/AutoTimerFilled24.tsx +15 -0
- package/src/Icons/leap/BlankLetter16.tsx +47 -0
- package/src/Icons/leap/Bylawyers16.tsx +36 -0
- package/src/Icons/leap/Carat.tsx +15 -0
- package/src/Icons/leap/Clause16.tsx +34 -0
- package/src/Icons/leap/CostRecoveryExceeded16.tsx +37 -0
- package/src/Icons/leap/Fax16.tsx +53 -0
- package/src/Icons/leap/HyperLink16.tsx +40 -0
- package/src/Icons/leap/ManualEntry24.tsx +27 -0
- package/src/Icons/leap/ManualEntryFilled24.tsx +27 -0
- package/src/Icons/leap/Memo16.tsx +42 -0
- package/src/Icons/leap/PhoneCall16.tsx +21 -0
- package/src/Icons/leap/PrecedentNotification16.tsx +25 -0
- package/src/Icons/leap/ScannedDoc16.tsx +42 -0
- package/src/Icons/leap/SharedFolder16.tsx +37 -0
- package/src/Icons/leap/Sms16.tsx +34 -0
- package/src/Icons/leap/TaxInvoice16.tsx +68 -0
- package/src/Icons/leap/TaxInvoice216.tsx +54 -0
- package/src/Icons/leap/TimedEntry16.tsx +39 -0
- package/src/Icons/leap/Timer24.tsx +15 -0
- package/src/Icons/leap/TimerFillled24.tsx +15 -0
- package/src/Icons/leap/TrustStatement16.tsx +61 -0
- package/src/Icons/leap/UnknownType16.tsx +32 -0
- package/src/Icons/leap/Video16.tsx +39 -0
- package/src/Icons/leap/VideoCall16.tsx +27 -0
- package/src/Icons/leap/VoiceMemo16.tsx +31 -0
- package/src/Icons/leap/Zyphta16.tsx +51 -0
- package/src/Icons/leap/icons.ts +174 -0
- package/src/Icons/leap/index.ts +48 -7
- package/src/Icons/leap/ribbon/Calendar.tsx +26 -0
- package/src/Icons/leap/ribbon/Delete.tsx +22 -0
- package/src/Icons/leap/ribbon/MatterFolder.tsx +26 -0
- package/src/Icons/leap/ribbon/NewEntry.tsx +51 -0
- package/src/Icons/leap-icons.stories.mdx +138 -95
- package/src/ImageUpload/ImageUpload.stories.mdx +23 -0
- package/src/ImageUpload/ImageUpload.styled.tsx +81 -0
- package/src/ImageUpload/ImageUpload.test.tsx +3 -2
- package/src/ImageUpload/ImageUpload.tsx +11 -16
- package/src/ImageUpload/{ImageUploadProps.types.tsx → ImageUpload.types.ts} +0 -1
- package/src/ImageUpload/index.ts +2 -2
- package/src/Input/Input.stories.mdx +35 -11
- package/src/Input/Input.test.tsx +3 -2
- package/src/Input/Input.tsx +22 -15
- package/src/Input/{InputProps.types.tsx → Input.types.ts} +9 -1
- package/src/Input/index.ts +2 -2
- package/src/InputLabel/InputLabel.test.tsx +8 -8
- package/src/InputLabel/InputLabel.tsx +6 -6
- package/src/InputLabel/InputLabel.types.ts +3 -0
- package/src/List/List.tsx +4 -4
- package/src/List/List.types.ts +2 -4
- package/src/ListItem/ListItem.test.tsx +10 -0
- package/src/ListItem/ListItem.types.ts +3 -10
- package/src/ListItemAvatar/ListItemAvatar.stories.mdx +21 -0
- package/src/ListItemAvatar/ListItemAvatar.test.tsx +9 -0
- package/src/ListItemAvatar/ListItemAvatar.tsx +3 -4
- package/src/ListItemAvatar/ListItemAvatar.types.ts +2 -5
- package/src/ListItemHoverContent/ListItemHoverContent.stories.mdx +1 -1
- package/src/ListItemHoverContent/ListItemHoverContent.test.tsx +26 -0
- package/src/ListItemIcon/ListItemIcon.test.tsx +14 -0
- package/src/ListItemIcon/ListItemIcon.types.ts +2 -5
- package/src/ListItemText/ListItemText.test.tsx +9 -0
- package/src/ListSubheader/ListSubheader.types.ts +2 -7
- package/src/Loader/Loader.stories.mdx +1 -0
- package/src/Loader/Loader.test.tsx +8 -8
- package/src/Loader/Loader.tsx +24 -14
- package/src/Logos/Leap/index.ts +4 -4
- package/src/Logos/Logos.stories.mdx +9 -1
- package/src/Menu/Menu.stories.mdx +178 -57
- package/src/Menu/Menu.test.tsx +8 -8
- package/src/Menu/Menu.tsx +1 -1
- package/src/MenuHeader/MenuHeader.stories.mdx +1 -5
- package/src/MenuHeader/MenuHeader.test.tsx +3 -2
- package/src/MenuHeader/MenuHeader.tsx +8 -11
- package/src/MenuHeader/{MenuHeaderProps.types.tsx → MenuHeader.types.ts} +2 -2
- package/src/MenuHeader/index.ts +2 -2
- package/src/MenuItem/MenuItem.stories.mdx +45 -8
- package/src/MenuItem/MenuItem.test.tsx +8 -8
- package/src/MenuItem/MenuItem.tsx +21 -11
- package/src/Modal/Modal.test.tsx +3 -2
- package/src/Modal/Modal.tsx +1 -1
- package/src/Modal/index.ts +2 -2
- package/src/ModalActions/ModalActions.test.tsx +3 -2
- package/src/ModalActions/ModalActions.tsx +8 -10
- package/src/ModalActions/index.ts +2 -2
- package/src/ModalContent/ModalContent.test.tsx +3 -2
- package/src/ModalContent/ModalContent.tsx +12 -6
- package/src/ModalContent/index.ts +2 -2
- package/src/ModalTitle/ModalTitle.test.tsx +3 -2
- package/src/ModalTitle/ModalTitle.tsx +7 -5
- package/src/ModalTitle/index.ts +2 -2
- package/src/Pagination/Pagination.test.tsx +8 -8
- package/src/Pagination/Pagination.tsx +10 -7
- package/src/Popover/Popover.stories.mdx +42 -0
- package/src/Popover/Popover.test.tsx +13 -0
- package/src/Popover/Popover.tsx +28 -0
- package/src/Popover/Popover.types.ts +7 -0
- package/src/Popover/PopoverExample.tsx +30 -0
- package/src/Popover/index.ts +2 -0
- package/src/ProgressBar/ProgressBar.stories.mdx +0 -1
- package/src/ProgressBar/ProgressBar.test.tsx +8 -8
- package/src/ProgressBar/ProgressBar.types.ts +3 -0
- package/src/Radio/Radio.stories.mdx +9 -4
- package/src/Radio/Radio.test.tsx +8 -8
- package/src/Radio/Radio.tsx +10 -11
- package/src/RadioGroup/RadioGroup.stories.mdx +9 -1
- package/src/RadioGroup/RadioGroup.test.tsx +3 -2
- package/src/RadioGroup/RadioGroup.tsx +16 -11
- package/src/RadioGroup/index.ts +2 -2
- package/src/RibbonButton/RibbonButton.stories.mdx +39 -0
- package/src/RibbonButton/RibbonButton.styled.tsx +60 -0
- package/src/RibbonButton/RibbonButton.test.tsx +10 -0
- package/src/RibbonButton/RibbonButton.tsx +22 -0
- package/src/RibbonButton/RibbonButton.types.ts +12 -0
- package/src/RibbonButton/index.ts +2 -0
- package/src/RibbonButtonGroup/RibbonButtonGroup.stories.mdx +122 -0
- package/src/RibbonButtonGroup/RibbonButtonGroup.styled.tsx +73 -0
- package/src/RibbonButtonGroup/RibbonButtonGroup.test.tsx +12 -0
- package/src/RibbonButtonGroup/RibbonButtonGroup.tsx +49 -0
- package/src/RibbonButtonGroup/RibbonButtonGroup.types.ts +18 -0
- package/src/RibbonButtonGroup/RibbonButtonGroupMenuExample.tsx +83 -0
- package/src/RibbonButtonGroup/index.ts +2 -0
- package/src/Select/Select.stories-removed.mdx +2 -2
- package/src/Select/Select.styled.tsx +40 -0
- package/src/Select/Select.test.tsx +8 -8
- package/src/Select/Select.tsx +2 -4
- package/src/SidebarLayout/SidebarLayout.test.tsx +3 -2
- package/src/SidebarLayout/SidebarLayout.tsx +1 -3
- package/src/SidebarLayout/index.ts +2 -2
- package/src/StepNavigation/StepNavigation.styled.tsx +21 -22
- package/src/StepNavigation/StepNavigation.test.tsx +7 -0
- package/src/StepNavigation/StepNavigation.tsx +10 -10
- package/src/Switch/Switch.test.tsx +3 -2
- package/src/Switch/Switch.tsx +4 -8
- package/src/Switch/index.ts +2 -2
- package/src/Tab/Tab.stories.mdx +14 -0
- package/src/Tab/Tab.test.tsx +8 -8
- package/src/TabListItem/TabListItem.stories.mdx +55 -4
- package/src/TabListItem/TabListItem.styled.tsx +0 -1
- package/src/TabListItem/TabListItem.test.tsx +7 -0
- package/src/TabListItem/TabListItem.types.ts +2 -3
- package/src/Table/Table.stories.mdx +145 -30
- package/src/Table/Table.test.tsx +2 -2
- package/src/Table/Table.tsx +4 -7
- package/src/Table/{TableProps.types.tsx → Table.types.ts} +2 -5
- package/src/Table/index.ts +2 -2
- package/src/TableBody/TableBody.test.tsx +2 -2
- package/src/TableBody/TableBody.tsx +4 -8
- package/src/TableBody/index.ts +2 -2
- package/src/TableCell/TableCell.test.tsx +2 -2
- package/src/TableCell/TableCell.tsx +1 -1
- package/src/TableCell/TableCell.types.ts +11 -0
- package/src/TableCell/index.ts +2 -2
- package/src/TableCellIcon/TableCellIcon.stories.mdx +10 -2
- package/src/TableCellIcon/TableCellIcon.test.tsx +2 -2
- package/src/TableCellIcon/TableCellIcon.tsx +20 -14
- package/src/TableCellIcon/index.ts +2 -2
- package/src/TableContainer/TableContainer.stories.mdx +43 -2
- package/src/TableContainer/TableContainer.test.tsx +2 -2
- package/src/TableContainer/TableContainer.tsx +8 -7
- package/src/TableContainer/{TableContainerProps.types.ts → TableContainer.types.ts} +2 -0
- package/src/TableContainer/index.ts +1 -1
- package/src/TableFooter/TableFooter.test.tsx +2 -2
- package/src/TableFooter/TableFooter.tsx +9 -13
- package/src/TableFooter/TableFooter.types.ts +2 -0
- package/src/TableFooter/index.ts +2 -2
- package/src/TableHead/TableHead.test.tsx +2 -2
- package/src/TableHead/TableHead.tsx +5 -8
- package/src/TableHead/TableHead.types.ts +3 -0
- package/src/TableHead/index.ts +2 -2
- package/src/TableRow/TableRow.test.tsx +2 -2
- package/src/TableRow/TableRow.tsx +6 -6
- package/src/TableRow/TableRow.types.ts +5 -0
- package/src/TableRow/index.ts +2 -2
- package/src/Tabs/Tabs.stories.mdx +70 -35
- package/src/Tabs/Tabs.test.tsx +8 -8
- package/src/Tag/Tag.stories.mdx +167 -47
- package/src/Tag/{Tag.styled.ts → Tag.styled.tsx} +33 -22
- package/src/Tag/Tag.test.tsx +4 -3
- package/src/Tag/Tag.tsx +73 -41
- package/src/Tag/{TagProps.types.tsx → Tag.types.ts} +2 -2
- package/src/Tag/index.ts +2 -2
- package/src/TextField/TextField.stories.mdx +24 -10
- package/src/TextField/TextField.test.tsx +9 -0
- package/src/TextField/TextField.types.ts +6 -0
- package/src/TextareaAutosize/TextareaAutosize.stories.mdx +0 -3
- package/src/TextareaAutosize/TextareaAutosize.test.tsx +8 -7
- package/src/TextareaAutosize/TextareaAutosize.tsx +5 -4
- package/src/Theme/index.ts +2 -2
- package/src/Theme/leap/desktop/overrides/autocomplete.ts +36 -34
- package/src/Theme/leap/desktop/overrides/menuItem.ts +122 -120
- package/src/Theme/leap/desktop/theme.ts +8 -1
- package/src/Theme/leap/web/overrides/autocomplete.ts +13 -8
- package/src/Theme/leap/web/overrides/inputBase.ts +6 -8
- package/src/Theme/leap/web/overrides/menuItem.ts +145 -143
- package/src/Theme/leap/web/theme.ts +9 -0
- package/src/ThemeProvider/ThemeProvider.test.tsx +4 -3
- package/src/ThemeProvider/ThemeProvider.tsx +7 -11
- package/src/ThemeProvider/index.ts +2 -2
- package/src/ToolbarButton/ToolbarButton.stories.mdx +1 -1
- package/src/ToolbarButton/ToolbarButton.test.tsx +3 -2
- package/src/ToolbarButton/ToolbarButton.tsx +2 -6
- package/src/ToolbarButton/index.ts +2 -2
- package/src/Tooltip/Tooltip.stories.mdx +39 -11
- package/src/Tooltip/Tooltip.test.tsx +8 -3
- package/src/Tooltip/Tooltip.tsx +6 -6
- package/src/Tooltip/Tooltip.types.ts +5 -0
- package/src/Tooltip/index.ts +2 -2
- package/src/TwoColumnLayout/TwoColumnLayout.stories.mdx +1 -1
- package/src/TwoColumnLayout/TwoColumnLayout.test.tsx +3 -2
- package/src/TwoColumnLayout/TwoColumnLayout.tsx +1 -1
- package/src/TwoColumnLayout/{TwoColumnLayoutProps.types.tsx → TwoColumnLayout.types.ts} +2 -0
- package/src/TwoColumnLayout/index.ts +2 -2
- package/src/Typography/Typography.stories.mdx +90 -24
- package/src/Typography/Typography.test.tsx +8 -8
- package/src/Typography/Typography.tsx +3 -3
- package/src/Typography/Typography.types.ts +7 -0
- package/src/index.ts +1 -1
- package/dist/Avatar/AvatarProps.types.d.ts +0 -7
- package/dist/Icons/doctype/Doctype/ActivityTypeDefault.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/ActivityTypeScannedDoc.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeAppointment.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeAppointmentCriticalDate.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeAudio.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeComment.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeDeadline.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeDefault.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeEmail.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeExcel.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeFax.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeFileNote.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeFolder.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeImage.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeLetter.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeMemo.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypePdf.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeSMS.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeSignatureDeclined.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeSignatureRequest.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeSignatureSigned.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeTasks.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeTrust.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeVideo.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeWord.d.ts +0 -2
- package/dist/Icons/doctype/Doctype/DocTypeZip.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeAppointment16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeAppointmentCriticalDate16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeAudio16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeClausePrecedent16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeCriticalDate16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeDeadline16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeEmail16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeEmailDraft16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeEmailReceived16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeEmailSent16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeExcel16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeFax16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeFileNote16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeFolder16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeImage16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeInfotrack16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeInvoiceRequest16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeInvoiceRequests16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeLetter16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeMemo16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypePdf16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypePowerpoint16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeSMS16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeSignatureDeclined16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeSignaturePending16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeSignatureRequest16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeSignatureSigned16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeTasks16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeTrust16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeVideo16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeWord16.d.ts +0 -2
- package/dist/Icons/doctype/Doctype16/DocTypeZip16.d.ts +0 -2
- package/dist/Icons/leap/Logos/LawconnectIcon.d.ts +0 -2
- package/dist/Icons/leap/Logos/LeapLegsLogo.d.ts +0 -1
- package/dist/Icons/leap/Logos/LeapLogo.d.ts +0 -1
- package/dist/Icons/leap/Logos/index.d.ts +0 -4
- package/dist/Icons/leap/Logos/poweredByLawconnect.d.ts +0 -2
- package/dist/TextAreaAutosize/TextAreaAutosize.types.d.ts +0 -3
- package/src/AccordionDetails/AccordionDetails.styled.ts +0 -10
- package/src/AccordionPanel/AccordionPanel.styled.ts +0 -6
- package/src/AccordionSummary/AccordionSummary.styled.ts +0 -14
- package/src/Avatar/Avatar.types.tsx +0 -19
- package/src/AvatarGroup/AvatarGroup.styled.ts +0 -56
- package/src/AvatarGroup/AvatarGroupProps.types.tsx +0 -19
- package/src/Badge/Badge.types.tsx +0 -3
- package/src/BottomListButton/BottomListButtonProps.types.tsx +0 -4
- package/src/Box/Box.styled.ts +0 -3
- package/src/Breadcrumbs/Breadcrumbs.styled.ts +0 -15
- package/src/Breadcrumbs/BreadcrumbsProps.types.tsx +0 -5
- package/src/Card/CardProps.types.tsx +0 -7
- package/src/Checkbox/Checkbox.styled.ts +0 -10
- package/src/Checkbox/Checkbox.types.tsx +0 -7
- package/src/Chip/ChipProps.types.tsx +0 -11
- package/src/DatePicker/DatePickerProps.types.tsx +0 -10
- package/src/Divider/DividerProps.types.tsx +0 -5
- package/src/Drawer/DrawerProps.types.tsx +0 -10
- package/src/DrawerMenu/DrawerMenuProps.types.tsx +0 -28
- package/src/EmptyState/EmptyStateProps.types.tsx +0 -6
- package/src/FooterActions/FooterActions.styled.ts +0 -41
- package/src/FormContainer/FormContainer.styled.ts +0 -11
- package/src/FormGroup/FormGroupProps.types.tsx +0 -24
- package/src/FormHeader/FormHeader.styled.ts +0 -68
- package/src/Grid/Grid.styled.ts +0 -3
- package/src/Grid/GridProps.types.tsx +0 -4
- package/src/HeaderToolbar/HeaderToolbarProps.types.tsx +0 -25
- package/src/IconButton/IconButton.types.tsx +0 -9
- package/src/Icons/lawconnect/index.tsx +0 -96
- package/src/ImageUpload/ImageUpload.styled.ts +0 -69
- package/src/InputLabel/InputLabel.types.tsx +0 -5
- package/src/Modal/Modal.styled.ts +0 -3
- package/src/ProgressBar/ProgressBar.types.tsx +0 -5
- package/src/Select/Select.styled.ts +0 -45
- package/src/TableCell/TableCellProps.types.tsx +0 -13
- package/src/TableFooter/TableFooterProps.types.tsx +0 -7
- package/src/TableHead/TableHeadProps.types.tsx +0 -11
- package/src/TableRow/TableRowProps.types.tsx +0 -19
- package/src/TextField/TextField.types.tsx +0 -6
- package/src/ThemeProvider/ThemeProvider.styled.ts +0 -3
- package/src/Tooltip/Tooltip.styled.ts +0 -3
- package/src/Tooltip/TooltipProps.types.tsx +0 -3
- package/src/Typography/Typography.types.tsx +0 -5
- /package/dist/Icons/{doctype/Doctype → Doctype}/index.d.ts +0 -0
- /package/dist/Icons/{doctype/Doctype16 → Doctype16}/index.d.ts +0 -0
- /package/src/Accordion/{Accordion.styled.ts → Accordion.styled.tsx} +0 -0
- /package/src/Avatar/{Avatar.styled.ts → Avatar.styled.tsx} +0 -0
- /package/src/Badge/{Badge.styled.ts → Badge.styled.tsx} +0 -0
- /package/src/Box/{BoxProps.types.tsx → Box.types.ts} +0 -0
- /package/src/DateRangePicker/{DateRangePickerProps.types.tsx → DateRangePicker.types.ts} +0 -0
- /package/src/EmptyState/{EmptyState.styled.ts → EmptyState.styled.tsx} +0 -0
- /package/src/FormBody/{FormBody.styled.ts → FormBody.styled.tsx} +0 -0
- /package/src/Icon/{Icon.types.tsx → Icon.types.ts} +0 -0
- /package/src/Loader/{Loader.types.tsx → Loader.types.ts} +0 -0
- /package/src/Logos/Leap/{poweredByLawconnect.tsx → PoweredByLawconnect.tsx} +0 -0
- /package/src/Menu/{Menu.types.tsx → Menu.types.ts} +0 -0
- /package/src/MenuItem/{MenuItem.types.tsx → MenuItem.types.ts} +0 -0
- /package/src/Modal/{ModalProps.types.tsx → Modal.types.ts} +0 -0
- /package/src/ModalActions/{ModalActionsProps.types.tsx → ModalActions.types.ts} +0 -0
- /package/src/ModalContent/{ModalContentProps.types.tsx → ModalContent.types.ts} +0 -0
- /package/src/ModalTitle/{ModalTitleProps.types.tsx → ModalTitle.types.ts} +0 -0
- /package/src/Pagination/{Pagination.types.tsx → Pagination.types.ts} +0 -0
- /package/src/Radio/{Radio.styled.ts → Radio.styled.tsx} +0 -0
- /package/src/Radio/{Radio.types.tsx → Radio.types.ts} +0 -0
- /package/src/RadioGroup/{RadioGroupProps.types.tsx → RadioGroup.types.ts} +0 -0
- /package/src/Select/{Select.types.tsx → Select.types.ts} +0 -0
- /package/src/SidebarLayout/{SidebarLayout.styled.ts → SidebarLayout.styled.tsx} +0 -0
- /package/src/SidebarLayout/{SidebarLayoutProps.types.tsx → SidebarLayout.types.ts} +0 -0
- /package/src/StepNavigation/{StepNavigation.types.tsx → StepNavigation.types.ts} +0 -0
- /package/src/Switch/{SwitchProps.types.tsx → Switch.types.ts} +0 -0
- /package/src/Tab/{Tab.types.tsx → Tab.types.ts} +0 -0
- /package/src/TableBody/{TableBodyProps.types.tsx → TableBody.types.ts} +0 -0
- /package/src/TableCellIcon/{TableCellIconProps.types.tsx → TableCellIcon.types.ts} +0 -0
- /package/src/Tabs/{Tabs.types.tsx → Tabs.types.ts} +0 -0
- /package/src/TextareaAutosize/{TextareaAutosize.types.tsx → TextareaAutosize.types.ts} +0 -0
- /package/src/ThemeProvider/{ThemeProviderProps.types.tsx → ThemeProvider.types.ts} +0 -0
- /package/src/ToolbarButton/{ToolbarButtonProps.types.tsx → ToolbarButton.types.ts} +0 -0
- /package/src/TwoColumnLayout/{TwoColumnLayout.styled.ts → TwoColumnLayout.styled.tsx} +0 -0
|
@@ -7,16 +7,13 @@ import DatePickerExample from './support/DatePickerExample.js';
|
|
|
7
7
|
# DatePicker
|
|
8
8
|
|
|
9
9
|
<Canvas withToolbar>
|
|
10
|
-
<Story name="Default"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Code Sample
|
|
16
|
-
```javascript
|
|
10
|
+
<Story name="Default"
|
|
11
|
+
parameters={{
|
|
12
|
+
docs: {
|
|
13
|
+
source: {
|
|
14
|
+
code: `
|
|
17
15
|
function DatePickerExample() {
|
|
18
16
|
const [date, setDate] = useState(null);
|
|
19
|
-
|
|
20
17
|
return (
|
|
21
18
|
<DatePicker
|
|
22
19
|
onChange={(item) => setDate(item)}
|
|
@@ -24,6 +21,13 @@ function DatePickerExample() {
|
|
|
24
21
|
></DatePicker>
|
|
25
22
|
);
|
|
26
23
|
}
|
|
27
|
-
|
|
24
|
+
`
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}}
|
|
28
|
+
>
|
|
29
|
+
<DatePickerExample />
|
|
30
|
+
</Story>
|
|
31
|
+
</Canvas>
|
|
28
32
|
|
|
29
33
|
<ArgsTable story="Default" />
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { styled
|
|
1
|
+
import { styled } from '@mui/material';
|
|
2
2
|
import { Calendar } from 'react-date-range';
|
|
3
3
|
|
|
4
|
-
export const StyledCalendar = styled(Calendar)(
|
|
4
|
+
export const StyledCalendar = styled(Calendar)(
|
|
5
|
+
({ theme }) => `
|
|
5
6
|
&.rdrCalendarWrapper {
|
|
6
7
|
box-shadow: 0 0 1px rgba(0, 0, 0, 1);
|
|
7
8
|
}
|
|
@@ -147,4 +148,5 @@ export const StyledCalendar = styled(Calendar)(({theme}) => `
|
|
|
147
148
|
.rdrStaticRange:focus .rdrStaticRangeLabel {
|
|
148
149
|
background-color: #dceef9;
|
|
149
150
|
}
|
|
150
|
-
`
|
|
151
|
+
`
|
|
152
|
+
);
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { StyledCalendar } from
|
|
3
|
-
import { DatePickerProps } from './
|
|
4
|
-
|
|
5
|
-
export const DatePicker: React.FC<DatePickerProps> = ({date, onChange}: DatePickerProps) => {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyledCalendar } from './DatePicker.styled';
|
|
3
|
+
import { DatePickerProps } from './DatePicker.types';
|
|
6
4
|
|
|
5
|
+
export const DatePicker: React.FC<DatePickerProps> = ({
|
|
6
|
+
date,
|
|
7
|
+
onChange,
|
|
8
|
+
...rest
|
|
9
|
+
}: DatePickerProps) => {
|
|
7
10
|
return (
|
|
8
11
|
<StyledCalendar
|
|
9
12
|
onChange={onChange}
|
|
10
13
|
date={date}
|
|
11
14
|
color={'#dceef9'}
|
|
12
15
|
className="leap-4d-date-picker leap-4d-calendar"
|
|
16
|
+
{...rest}
|
|
13
17
|
/>
|
|
14
18
|
);
|
|
15
19
|
};
|
|
16
20
|
|
|
17
|
-
export default DatePicker;
|
|
21
|
+
export default DatePicker;
|
package/src/DatePicker/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './DatePicker';
|
|
1
|
+
export * from './DatePicker.types';
|
|
2
|
+
export * from './DatePicker';
|
|
@@ -9,19 +9,13 @@ import DateRangePickerExample from './support/DateRangePickerExample.js';
|
|
|
9
9
|
Date range picker with default 2 months side by side.
|
|
10
10
|
|
|
11
11
|
<Canvas withToolbar>
|
|
12
|
-
<Story name="Default"
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
### Code Sample
|
|
20
|
-
|
|
21
|
-
```javascript
|
|
22
|
-
import React, {useState} from 'react';
|
|
12
|
+
<Story name="Default"
|
|
13
|
+
parameters={{
|
|
14
|
+
docs: {
|
|
15
|
+
source: {
|
|
16
|
+
code: `
|
|
17
|
+
import React, { useState } from 'react';
|
|
23
18
|
import { DateRangePicker } from '@galaxy-ds/core';
|
|
24
|
-
|
|
25
19
|
function DateRangePickerExample({months}) {
|
|
26
20
|
const [state, setState] = useState([
|
|
27
21
|
{
|
|
@@ -29,17 +23,25 @@ function DateRangePickerExample({months}) {
|
|
|
29
23
|
key: 'selection',
|
|
30
24
|
},
|
|
31
25
|
]);
|
|
32
|
-
|
|
33
26
|
return (
|
|
34
27
|
<DateRangePicker
|
|
35
28
|
onChange={(item) => setState([item.selection])}
|
|
36
29
|
ranges={state}
|
|
37
|
-
months={
|
|
30
|
+
months={2}
|
|
38
31
|
dateDisplayFormat='dd MMMM yyyy'
|
|
39
32
|
></DateRangePicker>
|
|
40
33
|
);
|
|
41
34
|
}
|
|
42
|
-
|
|
35
|
+
`
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
40
|
+
{() => (
|
|
41
|
+
<DateRangePickerExample months={2}/>
|
|
42
|
+
)}
|
|
43
|
+
</Story>
|
|
44
|
+
</Canvas>
|
|
43
45
|
|
|
44
46
|
<ArgsTable story="Default" />
|
|
45
47
|
|
|
@@ -62,8 +64,35 @@ function DateRangePickerExample({months}) {
|
|
|
62
64
|
Show just a single month with `months={1}`.
|
|
63
65
|
|
|
64
66
|
<Canvas>
|
|
65
|
-
<Story name="Single month"
|
|
66
|
-
{
|
|
67
|
+
<Story name="Single month"
|
|
68
|
+
parameters={{
|
|
69
|
+
docs: {
|
|
70
|
+
source: {
|
|
71
|
+
code: `
|
|
72
|
+
import React, {useState} from 'react';
|
|
73
|
+
import { DateRangePicker } from '@galaxy-ds/core';
|
|
74
|
+
function DateRangePickerExample({months}) {
|
|
75
|
+
const [state, setState] = useState([
|
|
76
|
+
{
|
|
77
|
+
startDate: new Date(),
|
|
78
|
+
key: 'selection',
|
|
79
|
+
},
|
|
80
|
+
]);
|
|
81
|
+
return (
|
|
82
|
+
<DateRangePicker
|
|
83
|
+
onChange={(item) => setState([item.selection])}
|
|
84
|
+
ranges={state}
|
|
85
|
+
months={1}
|
|
86
|
+
dateDisplayFormat='dd MMMM yyyy'
|
|
87
|
+
></DateRangePicker>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
`
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
95
|
+
{() => (
|
|
67
96
|
<DateRangePickerExample months={1}/>
|
|
68
97
|
)}
|
|
69
98
|
</Story>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { styled
|
|
1
|
+
import { styled } from '@mui/material';
|
|
2
2
|
import { DateRangePicker } from 'react-date-range';
|
|
3
3
|
|
|
4
|
-
export const StyledDateRangePicker = styled(DateRangePicker)(
|
|
4
|
+
export const StyledDateRangePicker = styled(DateRangePicker)(
|
|
5
|
+
({ theme }) => `
|
|
5
6
|
&.rdrDateRangePickerWrapper,
|
|
6
7
|
.rdrCalendarWrapper {
|
|
7
8
|
box-shadow: 0 0 1px rgba(0, 0, 0, 1);
|
|
@@ -174,4 +175,5 @@ export const StyledDateRangePicker = styled(DateRangePicker)(({theme}) => `
|
|
|
174
175
|
.rdrStaticRange:focus .rdrStaticRangeLabel {
|
|
175
176
|
background-color: #dceef9;
|
|
176
177
|
}
|
|
177
|
-
`
|
|
178
|
+
`
|
|
179
|
+
);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
1
|
import 'react-date-range/dist/styles.css'; // main css file
|
|
4
2
|
import 'react-date-range/dist/theme/default.css'; // theme css file
|
|
5
3
|
import { StyledDateRangePicker } from './DateRangePicker.styled';
|
|
6
4
|
|
|
7
|
-
import { DateRangePickerProps } from './
|
|
5
|
+
import { DateRangePickerProps } from './DateRangePicker.types';
|
|
8
6
|
|
|
9
7
|
export const DateRangePicker: React.FC<DateRangePickerProps> = ({
|
|
10
8
|
months = 2,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './DateRangePicker';
|
|
1
|
+
export * from './DateRangePicker.types';
|
|
2
|
+
export * from './DateRangePicker';
|
|
@@ -14,38 +14,43 @@ import { Input } from "../Input";
|
|
|
14
14
|
# Dialog
|
|
15
15
|
Dialogs are overlaid modal component for displaying important messages.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
<Canvas withToolbar>
|
|
18
|
+
<Story name="Desktop Default" args={{
|
|
19
|
+
variant: 'alert',
|
|
20
|
+
title: 'Requested Details for Invoice No. AUT005677',
|
|
21
|
+
message: 'Would you like to send an incomplete invoice response to the client?',
|
|
22
|
+
}}
|
|
23
|
+
parameters={{ docs: {
|
|
24
|
+
source: {
|
|
25
|
+
code: `
|
|
18
26
|
const [open, setOpen] = React.useState(false);
|
|
19
|
-
|
|
20
27
|
const handleOpen = () => {
|
|
21
28
|
setOpen(true);
|
|
22
29
|
};
|
|
23
|
-
|
|
24
30
|
const handleClose = () => {
|
|
25
31
|
setOpen(false);
|
|
26
32
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}}>
|
|
33
|
+
return (
|
|
34
|
+
<>
|
|
35
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Dialog</Button>
|
|
36
|
+
<Dialog
|
|
37
|
+
open={open}
|
|
38
|
+
handleClose={handleClose}
|
|
39
|
+
variant="alert"
|
|
40
|
+
title="Requested Details for Invoice No. AUT005677"
|
|
41
|
+
message="Would you like to send an incomplete invoice response to the client?">
|
|
42
|
+
</Dialog>
|
|
43
|
+
</>
|
|
44
|
+
)
|
|
45
|
+
`
|
|
46
|
+
}
|
|
47
|
+
}}}
|
|
48
|
+
>
|
|
44
49
|
{args => {
|
|
45
50
|
const [open, setOpen] = useState(false);
|
|
46
51
|
return (
|
|
47
52
|
<>
|
|
48
|
-
<Button variant="contained" onClick={()=> setOpen(true)}>Open Dialog</Button>
|
|
53
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Dialog</Button>
|
|
49
54
|
<Dialog {...args} open={open} handleClose={() => setOpen(false)}>
|
|
50
55
|
<Button variant="contained" color="primary">
|
|
51
56
|
Save
|
|
@@ -65,12 +70,38 @@ const handleClose = () => {
|
|
|
65
70
|
<Story name="Desktop Info" args={{variant: 'info',
|
|
66
71
|
title: 'Requested Details for Invoice No. AUT005677',
|
|
67
72
|
message: 'Please select at least one document from the correspondence list.',
|
|
68
|
-
}}
|
|
73
|
+
}}
|
|
74
|
+
parameters={{
|
|
75
|
+
docs: {
|
|
76
|
+
source: {
|
|
77
|
+
code: `
|
|
78
|
+
const [open, setOpen] = useState(false);
|
|
79
|
+
return (
|
|
80
|
+
<>
|
|
81
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Info Dialog</Button>
|
|
82
|
+
<Dialog
|
|
83
|
+
variant="info"
|
|
84
|
+
title="Requested Details for Invoice No. AUT005677"
|
|
85
|
+
message="Please select at least one document from the correspondence list."
|
|
86
|
+
open={open}
|
|
87
|
+
handleClose={() => setOpen(false)}
|
|
88
|
+
>
|
|
89
|
+
<Button variant="contained" color="primary" onClick={() => setOpen(false)}>
|
|
90
|
+
Ok
|
|
91
|
+
</Button>
|
|
92
|
+
</Dialog>
|
|
93
|
+
</>
|
|
94
|
+
)
|
|
95
|
+
`
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
69
100
|
{args => {
|
|
70
101
|
const [open, setOpen] = useState(false);
|
|
71
102
|
return (
|
|
72
103
|
<>
|
|
73
|
-
<Button variant="contained" onClick={()=> setOpen(true)}>Open Info Dialog</Button>
|
|
104
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Info Dialog</Button>
|
|
74
105
|
<Dialog {...args} open={open} handleClose={() => setOpen(false)}>
|
|
75
106
|
<Button variant="contained" color="primary" onClick={() => setOpen(false)}>
|
|
76
107
|
Ok
|
|
@@ -87,12 +118,39 @@ const handleClose = () => {
|
|
|
87
118
|
<Story name="Web Info" args={{variant: 'info', platform: 'web',
|
|
88
119
|
title: 'Info',
|
|
89
120
|
message: 'Please select at least one document from the correspondence list.',
|
|
90
|
-
}}
|
|
121
|
+
}}
|
|
122
|
+
parameters={{
|
|
123
|
+
docs: {
|
|
124
|
+
source: {
|
|
125
|
+
code: `
|
|
126
|
+
const [open, setOpen] = useState(false);
|
|
127
|
+
return (
|
|
128
|
+
<>
|
|
129
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Info Dialog</Button>
|
|
130
|
+
<Dialog
|
|
131
|
+
variant="info"
|
|
132
|
+
platform="web"
|
|
133
|
+
title="Info"
|
|
134
|
+
message="Please select at least one document from the correspondence list."
|
|
135
|
+
open={open}
|
|
136
|
+
handleClose={() => setOpen(false)}
|
|
137
|
+
>
|
|
138
|
+
<Button variant="contained" color="primary" onClick={() => setOpen(false)}>
|
|
139
|
+
Ok
|
|
140
|
+
</Button>
|
|
141
|
+
</Dialog>
|
|
142
|
+
</>
|
|
143
|
+
)
|
|
144
|
+
`
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}}
|
|
148
|
+
>
|
|
91
149
|
{args => {
|
|
92
150
|
const [open, setOpen] = useState(false);
|
|
93
151
|
return (
|
|
94
152
|
<>
|
|
95
|
-
<Button variant="contained" onClick={()=> setOpen(true)}>Open Info Dialog</Button>
|
|
153
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Info Dialog</Button>
|
|
96
154
|
<Dialog {...args} open={open} handleClose={() => setOpen(false)}>
|
|
97
155
|
<Button variant="contained" color="primary" onClick={() => setOpen(false)}>
|
|
98
156
|
Ok
|
|
@@ -109,12 +167,39 @@ const handleClose = () => {
|
|
|
109
167
|
<Story name="Web Warning" args={{variant: 'alert', platform: 'web',
|
|
110
168
|
title: 'Warning',
|
|
111
169
|
message: 'Please select at least one document from the correspondence list.',
|
|
112
|
-
}}
|
|
170
|
+
}}
|
|
171
|
+
parameters={{
|
|
172
|
+
docs: {
|
|
173
|
+
source: {
|
|
174
|
+
code: `
|
|
175
|
+
const [open, setOpen] = useState(false);
|
|
176
|
+
return (
|
|
177
|
+
<>
|
|
178
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Warning Dialog</Button>
|
|
179
|
+
<Dialog
|
|
180
|
+
variant="alert"
|
|
181
|
+
platform="web"
|
|
182
|
+
title="warning"
|
|
183
|
+
message="Please select at least one document from the correspondence list."
|
|
184
|
+
open={open}
|
|
185
|
+
handleClose={() => setOpen(false)}
|
|
186
|
+
>
|
|
187
|
+
<Button variant="contained" color="secondary" onClick={() => setOpen(false)}>
|
|
188
|
+
Ok
|
|
189
|
+
</Button>
|
|
190
|
+
</Dialog>
|
|
191
|
+
</>
|
|
192
|
+
)
|
|
193
|
+
`
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}}
|
|
197
|
+
>
|
|
113
198
|
{args => {
|
|
114
199
|
const [open, setOpen] = useState(false);
|
|
115
200
|
return (
|
|
116
201
|
<>
|
|
117
|
-
<Button variant="contained" onClick={()=> setOpen(true)}>Open Warning Dialog</Button>
|
|
202
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Warning Dialog</Button>
|
|
118
203
|
<Dialog {...args} open={open} handleClose={() => setOpen(false)}>
|
|
119
204
|
<Button variant="contained" color="secondary" onClick={() => setOpen(false)}>
|
|
120
205
|
Ok
|
|
@@ -135,12 +220,41 @@ From version 1.1.41, `message` now can be a node, for more flexible contents.
|
|
|
135
220
|
<Canvas>
|
|
136
221
|
<Story name="Plain Variant" args={{
|
|
137
222
|
title: 'Rename Template',
|
|
138
|
-
}}
|
|
223
|
+
}}
|
|
224
|
+
parameters={{
|
|
225
|
+
docs: {
|
|
226
|
+
source: {
|
|
227
|
+
code: `
|
|
228
|
+
const [open, setOpen] = useState(false);
|
|
229
|
+
return (
|
|
230
|
+
<>
|
|
231
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Dialog</Button>
|
|
232
|
+
<Dialog
|
|
233
|
+
title="Rename Template"
|
|
234
|
+
variant="plain"
|
|
235
|
+
open={open}
|
|
236
|
+
handleClose={() => setOpen(false)}
|
|
237
|
+
message={<Input fullWidth label='Template Name' />}
|
|
238
|
+
>
|
|
239
|
+
<Button variant="contained" color="primary" onClick={() => setOpen(false)}>
|
|
240
|
+
Save
|
|
241
|
+
</Button>
|
|
242
|
+
<Button variant="outlined" color="primary" onClick={() => setOpen(false)}>
|
|
243
|
+
Cancel
|
|
244
|
+
</Button>
|
|
245
|
+
</Dialog>
|
|
246
|
+
</>
|
|
247
|
+
)
|
|
248
|
+
`
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}}
|
|
252
|
+
>
|
|
139
253
|
{args => {
|
|
140
254
|
const [open, setOpen] = useState(false);
|
|
141
255
|
return (
|
|
142
256
|
<>
|
|
143
|
-
<Button variant="contained" onClick={()=> setOpen(true)}>Open Dialog</Button>
|
|
257
|
+
<Button variant="contained" onClick={() => setOpen(true)}>Open Dialog</Button>
|
|
144
258
|
<Dialog
|
|
145
259
|
{...args}
|
|
146
260
|
variant="plain"
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import { Dialog } from './Dialog';
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
describe('Dialog', () => {
|
|
6
|
+
it('should show a dialog with a title', () => {
|
|
7
|
+
const { getByText, getByRole } = render(
|
|
8
|
+
<Dialog open title="Dialog title" />
|
|
9
|
+
);
|
|
10
|
+
getByRole('dialog');
|
|
11
|
+
getByText('Dialog title');
|
|
12
|
+
});
|
|
4
13
|
|
|
5
|
-
|
|
14
|
+
it('should show message', () => {
|
|
15
|
+
const { getByText } = render(
|
|
16
|
+
<Dialog open title="Dialog title" message="Dialog message" />
|
|
17
|
+
);
|
|
18
|
+
getByText('Dialog message');
|
|
19
|
+
});
|
|
6
20
|
|
|
7
|
-
|
|
8
|
-
it("should show a dialog with a title", () => {
|
|
9
|
-
const { getByText, getByRole } = render(<Dialog open title="Dialog title" />)
|
|
10
|
-
getByRole("dialog")
|
|
11
|
-
getByText("Dialog title")
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
it("should show message", () => {
|
|
15
|
-
const { getByText } = render(<Dialog open title="Dialog title" message="Dialog message" />)
|
|
16
|
-
getByText("Dialog message")
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
it("should display any child items passed to the dialog", () => {
|
|
21
|
+
it('should display any child items passed to the dialog', () => {
|
|
20
22
|
const { getByText, getByTestId } = render(
|
|
21
23
|
<Dialog open title="Dialog title">
|
|
22
24
|
<span data-testid="test-span">This is a child span</span>
|
|
23
25
|
</Dialog>
|
|
24
|
-
)
|
|
25
|
-
getByTestId(
|
|
26
|
-
getByText(
|
|
27
|
-
})
|
|
28
|
-
})
|
|
26
|
+
);
|
|
27
|
+
getByTestId('test-span');
|
|
28
|
+
getByText('This is a child span');
|
|
29
|
+
});
|
|
30
|
+
});
|
package/src/Dialog/Dialog.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Dialog as MuiDialog, DialogActions, useTheme }
|
|
3
|
-
import { DialogProps } from
|
|
4
|
-
import { Typography } from
|
|
5
|
-
import { IconButton } from
|
|
6
|
-
import { Icon } from
|
|
7
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dialog as MuiDialog, DialogActions, useTheme } from '@mui/material';
|
|
3
|
+
import { DialogProps } from './Dialog.type';
|
|
4
|
+
import { Typography } from '../Typography/Typography';
|
|
5
|
+
import { IconButton } from '../IconButton/IconButton';
|
|
6
|
+
import { Icon } from '../Icon';
|
|
7
|
+
import {
|
|
8
8
|
SvgInfoCircle,
|
|
9
9
|
SvgAlert,
|
|
10
10
|
SvgWarning,
|
|
@@ -13,10 +13,8 @@ import {
|
|
|
13
13
|
SvgInfo,
|
|
14
14
|
} from '../Icons/common/Dialog';
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
16
|
export const Dialog: React.FC<DialogProps> = (props: DialogProps) => {
|
|
19
|
-
const { variant, platform, title, message, children, ...
|
|
17
|
+
const { variant, platform, title, message, children, ...rest } = props;
|
|
20
18
|
const theme = useTheme();
|
|
21
19
|
|
|
22
20
|
let isWeb = () => platform === 'web';
|
|
@@ -24,30 +22,32 @@ export const Dialog: React.FC<DialogProps> = (props: DialogProps) => {
|
|
|
24
22
|
|
|
25
23
|
switch (variant) {
|
|
26
24
|
case 'info':
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
variantIcon =
|
|
26
|
+
theme.platform.name === 'leap_web' ? <SvgInfoCircle /> : <SvgInfo />;
|
|
27
|
+
break;
|
|
29
28
|
case 'alert':
|
|
30
|
-
variantIcon =
|
|
31
|
-
|
|
29
|
+
variantIcon =
|
|
30
|
+
theme.platform.name === 'leap_web' ? <SvgWarning /> : <SvgAlert />;
|
|
31
|
+
break;
|
|
32
32
|
default:
|
|
33
|
-
variantIcon =
|
|
33
|
+
variantIcon =
|
|
34
|
+
theme.platform.name === 'leap_web' ? <SvgInfoCircle /> : <SvgInfo />;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
return (
|
|
37
38
|
<MuiDialog
|
|
38
|
-
className={`gds-modal ${
|
|
39
|
+
className={`gds-modal ${
|
|
40
|
+
isWeb() ? 'gds-modal--web' : 'gds-modal--desktop'
|
|
41
|
+
}`}
|
|
39
42
|
open={props.open}
|
|
40
43
|
closeAfterTransition
|
|
41
44
|
hideBackdrop
|
|
42
45
|
onClose={props.handleClose}
|
|
46
|
+
{...rest}
|
|
43
47
|
>
|
|
44
|
-
<div className=
|
|
45
|
-
<div className=
|
|
46
|
-
{isWeb() ?
|
|
47
|
-
''
|
|
48
|
-
) : (
|
|
49
|
-
<SvgLeapLogo className='gds-modal_logo' />
|
|
50
|
-
)}
|
|
48
|
+
<div className="gds-modal_paper">
|
|
49
|
+
<div className="gds-modal_header">
|
|
50
|
+
{isWeb() ? '' : <SvgLeapLogo className="gds-modal_logo" />}
|
|
51
51
|
{title ? (
|
|
52
52
|
isWeb() ? (
|
|
53
53
|
<Typography color="default" upperCase variant="body1">
|
|
@@ -67,14 +67,11 @@ export const Dialog: React.FC<DialogProps> = (props: DialogProps) => {
|
|
|
67
67
|
<IconButton size="small" onClick={props.handleClose}>
|
|
68
68
|
<Icon name={SvgClose} fontSize="small" />
|
|
69
69
|
</IconButton>
|
|
70
|
-
|
|
71
70
|
)}
|
|
72
71
|
</div>
|
|
73
|
-
<div className=
|
|
72
|
+
<div className="gds-modal_body">
|
|
74
73
|
{variant !== 'plain' && (
|
|
75
|
-
<div className=
|
|
76
|
-
{variantIcon}
|
|
77
|
-
</div>
|
|
74
|
+
<div className="gds-modal_icon">{variantIcon}</div>
|
|
78
75
|
)}
|
|
79
76
|
{typeof message === 'string' ? (
|
|
80
77
|
<Typography color="default" variant="body1">
|
|
@@ -84,11 +81,10 @@ export const Dialog: React.FC<DialogProps> = (props: DialogProps) => {
|
|
|
84
81
|
<div style={{ flex: 1 }}>{message}</div>
|
|
85
82
|
)}
|
|
86
83
|
</div>
|
|
87
|
-
<div className=
|
|
84
|
+
<div className="gds-modal_footer">
|
|
88
85
|
<DialogActions>{children}</DialogActions>
|
|
89
86
|
</div>
|
|
90
87
|
</div>
|
|
91
88
|
</MuiDialog>
|
|
92
89
|
);
|
|
93
|
-
}
|
|
94
|
-
|
|
90
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { DialogProps as MuiDialogProps } from '@mui/material';
|
|
2
|
+
export interface DialogProps extends MuiDialogProps {
|
|
2
3
|
children?: any;
|
|
3
4
|
variant?: 'info' | 'alert' | 'plain';
|
|
4
5
|
/**
|
|
@@ -9,4 +10,4 @@ export interface DialogProps {
|
|
|
9
10
|
message?: React.ReactNode;
|
|
10
11
|
open: boolean;
|
|
11
12
|
handleClose?: (e: any) => void;
|
|
12
|
-
}
|
|
13
|
+
}
|
|
@@ -17,6 +17,12 @@ A divider is a thin line that groups content in lists and layouts. Dividers sepa
|
|
|
17
17
|
</Story>
|
|
18
18
|
</Canvas>
|
|
19
19
|
|
|
20
|
+
<Canvas withToolbar>
|
|
21
|
+
<Story name="orientation" args={{}}>
|
|
22
|
+
{args => <Divider orientation='vertical'/>}
|
|
23
|
+
</Story>
|
|
24
|
+
</Canvas>
|
|
25
|
+
|
|
20
26
|
## Properties
|
|
21
27
|
|
|
22
28
|
<ArgsTable story="Default" />
|