@mrshmllw/smores-react 10.7.0-crumbs-feature-vite-bundling.1 → 10.7.0-crumbs-feature-vite-bundling.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.ts +15 -0
- package/dist/Accordion/index.d.ts +1 -0
- package/dist/ActionDropdown/ActionDropdown.d.ts +16 -0
- package/dist/ActionDropdown/List.d.ts +14 -0
- package/dist/ActionDropdown/index.d.ts +1 -0
- package/dist/Badge/Badge.d.ts +16 -0
- package/dist/Badge/BadgeFallbackImage.d.ts +6 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/BadgeList/BadgeList.d.ts +26 -0
- package/dist/BadgeList/index.d.ts +1 -0
- package/dist/Banner/BannerContainer.d.ts +7 -0
- package/dist/Banner/BannerItem.d.ts +7 -0
- package/dist/Banner/hooks.d.ts +3 -0
- package/dist/Banner/index.d.ts +2 -0
- package/dist/Banner/types.d.ts +19 -0
- package/dist/Box/Box.d.ts +14 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/BrandCard/BrandCard.d.ts +27 -0
- package/dist/BrandCard/index.d.ts +1 -0
- package/dist/Button/Button.d.ts +23 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Card/Card.d.ts +38 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/CheckBox/CheckBox.d.ts +10 -0
- package/dist/CheckBox/index.d.ts +1 -0
- package/dist/CheckBoxGroup/CheckBoxGroup.d.ts +15 -0
- package/dist/CheckBoxGroup/index.d.ts +1 -0
- package/dist/Chip/Chip.d.ts +15 -0
- package/dist/Chip/index.d.ts +1 -0
- package/dist/CurrencyInput/CurrencyInput.d.ts +24 -0
- package/dist/CurrencyInput/index.d.ts +1 -0
- package/dist/Datepicker/Datepicker.d.ts +18 -0
- package/dist/Datepicker/DatesList.d.ts +9 -0
- package/dist/Datepicker/index.d.ts +1 -0
- package/dist/Datepicker/types.d.ts +6 -0
- package/dist/Divider/Divider.d.ts +9 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Dropdown/Dropdown.d.ts +32 -0
- package/dist/Dropdown/index.d.ts +1 -0
- package/dist/Emoji/Emoji.d.ts +13 -0
- package/dist/Emoji/index.d.ts +1 -0
- package/dist/Icon/Icon.d.ts +17 -0
- package/dist/Icon/iconFiles/Aa.d.ts +3 -0
- package/dist/Icon/iconFiles/AaInverted.d.ts +3 -0
- package/dist/Icon/iconFiles/AccidentalDamage.d.ts +3 -0
- package/dist/Icon/iconFiles/AccountBreakdown.d.ts +3 -0
- package/dist/Icon/iconFiles/AccountMlp.d.ts +3 -0
- package/dist/Icon/iconFiles/ActivityClipboard.d.ts +3 -0
- package/dist/Icon/iconFiles/AddOns.d.ts +3 -0
- package/dist/Icon/iconFiles/AddressMta.d.ts +3 -0
- package/dist/Icon/iconFiles/Ai.d.ts +3 -0
- package/dist/Icon/iconFiles/AlbumAudio.d.ts +3 -0
- package/dist/Icon/iconFiles/Alert.d.ts +3 -0
- package/dist/Icon/iconFiles/AlertEngine.d.ts +3 -0
- package/dist/Icon/iconFiles/Amex.d.ts +3 -0
- package/dist/Icon/iconFiles/ApplePay.d.ts +3 -0
- package/dist/Icon/iconFiles/ApprovedFile.d.ts +3 -0
- package/dist/Icon/iconFiles/Archive.d.ts +3 -0
- package/dist/Icon/iconFiles/Arrow.d.ts +3 -0
- package/dist/Icon/iconFiles/At.d.ts +3 -0
- package/dist/Icon/iconFiles/Axa.d.ts +3 -0
- package/dist/Icon/iconFiles/Bank.d.ts +3 -0
- package/dist/Icon/iconFiles/Basket.d.ts +3 -0
- package/dist/Icon/iconFiles/Bicycle.d.ts +3 -0
- package/dist/Icon/iconFiles/Boost.d.ts +3 -0
- package/dist/Icon/iconFiles/Breakdown.d.ts +3 -0
- package/dist/Icon/iconFiles/BreakdownAlt.d.ts +3 -0
- package/dist/Icon/iconFiles/Briefcase.d.ts +3 -0
- package/dist/Icon/iconFiles/Bullets.d.ts +3 -0
- package/dist/Icon/iconFiles/Burger.d.ts +3 -0
- package/dist/Icon/iconFiles/Calendar.d.ts +3 -0
- package/dist/Icon/iconFiles/Camera.d.ts +3 -0
- package/dist/Icon/iconFiles/Cancel.d.ts +3 -0
- package/dist/Icon/iconFiles/CancelBw.d.ts +3 -0
- package/dist/Icon/iconFiles/Car.d.ts +3 -0
- package/dist/Icon/iconFiles/CarMta.d.ts +3 -0
- package/dist/Icon/iconFiles/CarRepairs.d.ts +3 -0
- package/dist/Icon/iconFiles/CarReplacement.d.ts +3 -0
- package/dist/Icon/iconFiles/CarUsage.d.ts +3 -0
- package/dist/Icon/iconFiles/Card.d.ts +3 -0
- package/dist/Icon/iconFiles/Caret.d.ts +5 -0
- package/dist/Icon/iconFiles/CaretUp.d.ts +6 -0
- package/dist/Icon/iconFiles/Charge.d.ts +3 -0
- package/dist/Icon/iconFiles/Chat.d.ts +3 -0
- package/dist/Icon/iconFiles/ChatBubble.d.ts +3 -0
- package/dist/Icon/iconFiles/Checkout.d.ts +3 -0
- package/dist/Icon/iconFiles/CheckoutWithText.d.ts +3 -0
- package/dist/Icon/iconFiles/CircleTick.d.ts +3 -0
- package/dist/Icon/iconFiles/City.d.ts +3 -0
- package/dist/Icon/iconFiles/Claim.d.ts +3 -0
- package/dist/Icon/iconFiles/ClaimLine.d.ts +3 -0
- package/dist/Icon/iconFiles/Clipboard.d.ts +3 -0
- package/dist/Icon/iconFiles/ClipboardCheck.d.ts +3 -0
- package/dist/Icon/iconFiles/Clock.d.ts +3 -0
- package/dist/Icon/iconFiles/ClosePanel.d.ts +3 -0
- package/dist/Icon/iconFiles/Collapse.d.ts +3 -0
- package/dist/Icon/iconFiles/Confused.d.ts +3 -0
- package/dist/Icon/iconFiles/ConfusedBlue.d.ts +3 -0
- package/dist/Icon/iconFiles/ContactEmail.d.ts +3 -0
- package/dist/Icon/iconFiles/Copy.d.ts +3 -0
- package/dist/Icon/iconFiles/Crop.d.ts +3 -0
- package/dist/Icon/iconFiles/Cross.d.ts +3 -0
- package/dist/Icon/iconFiles/DashboardHigh.d.ts +3 -0
- package/dist/Icon/iconFiles/DirectDebit.d.ts +3 -0
- package/dist/Icon/iconFiles/DocDownload.d.ts +3 -0
- package/dist/Icon/iconFiles/DocUpload.d.ts +3 -0
- package/dist/Icon/iconFiles/Download.d.ts +3 -0
- package/dist/Icon/iconFiles/Earth.d.ts +3 -0
- package/dist/Icon/iconFiles/Edit.d.ts +3 -0
- package/dist/Icon/iconFiles/EditContact.d.ts +3 -0
- package/dist/Icon/iconFiles/EditOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/EmailFilled.d.ts +3 -0
- package/dist/Icon/iconFiles/Engine.d.ts +3 -0
- package/dist/Icon/iconFiles/Europe.d.ts +3 -0
- package/dist/Icon/iconFiles/Excluded.d.ts +3 -0
- package/dist/Icon/iconFiles/Expand.d.ts +3 -0
- package/dist/Icon/iconFiles/Facebook.d.ts +3 -0
- package/dist/Icon/iconFiles/FallingItems.d.ts +3 -0
- package/dist/Icon/iconFiles/Fence.d.ts +3 -0
- package/dist/Icon/iconFiles/File.d.ts +3 -0
- package/dist/Icon/iconFiles/FileBadge2.d.ts +3 -0
- package/dist/Icon/iconFiles/FileCabinet.d.ts +3 -0
- package/dist/Icon/iconFiles/Filter.d.ts +3 -0
- package/dist/Icon/iconFiles/Fire.d.ts +3 -0
- package/dist/Icon/iconFiles/Flag.d.ts +3 -0
- package/dist/Icon/iconFiles/Folder.d.ts +3 -0
- package/dist/Icon/iconFiles/FraudAlert.d.ts +3 -0
- package/dist/Icon/iconFiles/FreezerFood.d.ts +3 -0
- package/dist/Icon/iconFiles/Fuel.d.ts +3 -0
- package/dist/Icon/iconFiles/Globe.d.ts +3 -0
- package/dist/Icon/iconFiles/GooglePlayBadge.d.ts +3 -0
- package/dist/Icon/iconFiles/Gpay.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpAboutus.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpBuypolicy.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpCenter.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpIdcheck.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpManagePolicy.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpNcd.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpVerification.d.ts +3 -0
- package/dist/Icon/iconFiles/HomeExcluded.d.ts +3 -0
- package/dist/Icon/iconFiles/House.d.ts +3 -0
- package/dist/Icon/iconFiles/HouseTree.d.ts +3 -0
- package/dist/Icon/iconFiles/Id.d.ts +3 -0
- package/dist/Icon/iconFiles/Inbox.d.ts +3 -0
- package/dist/Icon/iconFiles/Included.d.ts +3 -0
- package/dist/Icon/iconFiles/Info.d.ts +3 -0
- package/dist/Icon/iconFiles/Injury.d.ts +3 -0
- package/dist/Icon/iconFiles/Instagram.d.ts +3 -0
- package/dist/Icon/iconFiles/Intercom.d.ts +3 -0
- package/dist/Icon/iconFiles/Intercom2.d.ts +3 -0
- package/dist/Icon/iconFiles/IosStoreBadge.d.ts +3 -0
- package/dist/Icon/iconFiles/Iphone.d.ts +3 -0
- package/dist/Icon/iconFiles/Jewellery.d.ts +3 -0
- package/dist/Icon/iconFiles/Key.d.ts +3 -0
- package/dist/Icon/iconFiles/Laptop.d.ts +3 -0
- package/dist/Icon/iconFiles/Leaks.d.ts +3 -0
- package/dist/Icon/iconFiles/Lightbulb.d.ts +3 -0
- package/dist/Icon/iconFiles/Link.d.ts +3 -0
- package/dist/Icon/iconFiles/Linkedin.d.ts +3 -0
- package/dist/Icon/iconFiles/LiveChat.d.ts +3 -0
- package/dist/Icon/iconFiles/LiveChat2.d.ts +3 -0
- package/dist/Icon/iconFiles/Location.d.ts +3 -0
- package/dist/Icon/iconFiles/LogOut.d.ts +3 -0
- package/dist/Icon/iconFiles/ManageDrivers.d.ts +3 -0
- package/dist/Icon/iconFiles/ManagePolicy.d.ts +3 -0
- package/dist/Icon/iconFiles/Marshmallow.d.ts +3 -0
- package/dist/Icon/iconFiles/Mastercard.d.ts +3 -0
- package/dist/Icon/iconFiles/Maximise.d.ts +3 -0
- package/dist/Icon/iconFiles/MaximiseWindow.d.ts +3 -0
- package/dist/Icon/iconFiles/Medical.d.ts +3 -0
- package/dist/Icon/iconFiles/Minimise.d.ts +3 -0
- package/dist/Icon/iconFiles/Minus.d.ts +3 -0
- package/dist/Icon/iconFiles/MinusCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/MoneyBag.d.ts +3 -0
- package/dist/Icon/iconFiles/MoneyHeart.d.ts +3 -0
- package/dist/Icon/iconFiles/MoreDots.d.ts +3 -0
- package/dist/Icon/iconFiles/Mulsanne.d.ts +3 -0
- package/dist/Icon/iconFiles/NewWindow.d.ts +3 -0
- package/dist/Icon/iconFiles/NoExcess.d.ts +3 -0
- package/dist/Icon/iconFiles/Notes.d.ts +3 -0
- package/dist/Icon/iconFiles/Notification.d.ts +3 -0
- package/dist/Icon/iconFiles/Onfido.d.ts +3 -0
- package/dist/Icon/iconFiles/OpenPanel.d.ts +3 -0
- package/dist/Icon/iconFiles/Other.d.ts +3 -0
- package/dist/Icon/iconFiles/OutOfHome.d.ts +3 -0
- package/dist/Icon/iconFiles/Padlock.d.ts +3 -0
- package/dist/Icon/iconFiles/PadlockOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/Paperclip.d.ts +3 -0
- package/dist/Icon/iconFiles/People.d.ts +3 -0
- package/dist/Icon/iconFiles/Person.d.ts +3 -0
- package/dist/Icon/iconFiles/PhoneFilled.d.ts +3 -0
- package/dist/Icon/iconFiles/PhoneOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/Photo.d.ts +3 -0
- package/dist/Icon/iconFiles/PinCode.d.ts +3 -0
- package/dist/Icon/iconFiles/Plus.d.ts +3 -0
- package/dist/Icon/iconFiles/PlusCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/Policy.d.ts +3 -0
- package/dist/Icon/iconFiles/PolicyDetails.d.ts +3 -0
- package/dist/Icon/iconFiles/PolicyDoc.d.ts +3 -0
- package/dist/Icon/iconFiles/PolicyDocs.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundBold.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundFilledCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundMedium.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundRegular.d.ts +3 -0
- package/dist/Icon/iconFiles/Premfina.d.ts +3 -0
- package/dist/Icon/iconFiles/Profile.d.ts +3 -0
- package/dist/Icon/iconFiles/Progress.d.ts +2 -0
- package/dist/Icon/iconFiles/Prohibited.d.ts +3 -0
- package/dist/Icon/iconFiles/Property.d.ts +3 -0
- package/dist/Icon/iconFiles/QuestionHelp.d.ts +3 -0
- package/dist/Icon/iconFiles/Rac.d.ts +3 -0
- package/dist/Icon/iconFiles/Ravelin.d.ts +3 -0
- package/dist/Icon/iconFiles/ReferAFriend.d.ts +3 -0
- package/dist/Icon/iconFiles/Refund.d.ts +3 -0
- package/dist/Icon/iconFiles/RegPlate.d.ts +3 -0
- package/dist/Icon/iconFiles/Renewal.d.ts +3 -0
- package/dist/Icon/iconFiles/RenewalLine.d.ts +3 -0
- package/dist/Icon/iconFiles/RepeatCharge.d.ts +3 -0
- package/dist/Icon/iconFiles/Reply.d.ts +3 -0
- package/dist/Icon/iconFiles/Return.d.ts +3 -0
- package/dist/Icon/iconFiles/ScheduleQuote.d.ts +3 -0
- package/dist/Icon/iconFiles/Search.d.ts +3 -0
- package/dist/Icon/iconFiles/Security.d.ts +3 -0
- package/dist/Icon/iconFiles/SendMessage.d.ts +3 -0
- package/dist/Icon/iconFiles/Settings.d.ts +3 -0
- package/dist/Icon/iconFiles/Shield.d.ts +3 -0
- package/dist/Icon/iconFiles/ShieldCheck.d.ts +3 -0
- package/dist/Icon/iconFiles/Shopping.d.ts +3 -0
- package/dist/Icon/iconFiles/Sofa.d.ts +3 -0
- package/dist/Icon/iconFiles/Stack.d.ts +3 -0
- package/dist/Icon/iconFiles/Storm.d.ts +3 -0
- package/dist/Icon/iconFiles/Stripe.d.ts +3 -0
- package/dist/Icon/iconFiles/Subsidence.d.ts +3 -0
- package/dist/Icon/iconFiles/Theft.d.ts +3 -0
- package/dist/Icon/iconFiles/ThumbsDown.d.ts +3 -0
- package/dist/Icon/iconFiles/ThumbsUp.d.ts +3 -0
- package/dist/Icon/iconFiles/Tick.d.ts +3 -0
- package/dist/Icon/iconFiles/TowTruck.d.ts +3 -0
- package/dist/Icon/iconFiles/TraceAndAccess.d.ts +3 -0
- package/dist/Icon/iconFiles/Training.d.ts +3 -0
- package/dist/Icon/iconFiles/Trash.d.ts +3 -0
- package/dist/Icon/iconFiles/Twitter.d.ts +3 -0
- package/dist/Icon/iconFiles/UpDown.d.ts +3 -0
- package/dist/Icon/iconFiles/Upload.d.ts +3 -0
- package/dist/Icon/iconFiles/UploadDocuments.d.ts +3 -0
- package/dist/Icon/iconFiles/UploadEmail.d.ts +3 -0
- package/dist/Icon/iconFiles/Vandalism.d.ts +3 -0
- package/dist/Icon/iconFiles/Village.d.ts +3 -0
- package/dist/Icon/iconFiles/Visa.d.ts +3 -0
- package/dist/Icon/iconFiles/Warning.d.ts +3 -0
- package/dist/Icon/iconFiles/WarningCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/Watch.d.ts +3 -0
- package/dist/Icon/iconFiles/Wave.d.ts +3 -0
- package/dist/Icon/iconFiles/Wellbeing.d.ts +3 -0
- package/dist/Icon/iconFiles/WheelFlat.d.ts +3 -0
- package/dist/Icon/iconFiles/Windscreen.d.ts +3 -0
- package/dist/Icon/iconFiles/WindscreenRepair.d.ts +3 -0
- package/dist/Icon/iconFiles/WindscreenReplacement.d.ts +3 -0
- package/dist/Icon/iconsList.d.ts +227 -0
- package/dist/Icon/index.d.ts +1 -0
- package/dist/IconStrict/IconStrict.d.ts +22 -0
- package/dist/IconStrict/index.d.ts +1 -0
- package/dist/IconWrapper/IconWrapper.d.ts +18 -0
- package/dist/IconWrapper/index.d.ts +1 -0
- package/dist/LabelledText/LabelledText.d.ts +8 -0
- package/dist/LabelledText/index.d.ts +1 -0
- package/dist/Link/Link.d.ts +24 -0
- package/dist/Link/index.d.ts +1 -0
- package/dist/Loader/Loader.d.ts +7 -0
- package/dist/Loader/index.d.ts +1 -0
- package/dist/Logo/Logo.d.ts +35 -0
- package/dist/Logo/index.d.ts +1 -0
- package/dist/Modal/Modal.d.ts +32 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/NumberInput/NumberInput.d.ts +25 -0
- package/dist/NumberInput/index.d.ts +1 -0
- package/dist/Pagination/Pagination.d.ts +13 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/RadioGroup/RadioElement.d.ts +12 -0
- package/dist/RadioGroup/RadioGroup.d.ts +23 -0
- package/dist/RadioGroup/RadioItem.d.ts +20 -0
- package/dist/RadioGroup/constants.d.ts +1 -0
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/RadioGroup/types.d.ts +3 -0
- package/dist/RichText/RichText.d.ts +6 -0
- package/dist/RichText/index.d.ts +1 -0
- package/dist/RichTextEditor/RichTextEditor.d.ts +10 -0
- package/dist/RichTextEditor/index.d.ts +1 -0
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.d.ts +4 -0
- package/dist/RichTextEditor/plugins/EditorUpdatePlugin.d.ts +4 -0
- package/dist/RichTextEditor/plugins/ToolbarPlugin.d.ts +2 -0
- package/dist/RichTextEditor/plugins/index.d.ts +1 -0
- package/dist/RichTextEditor/utils.d.ts +2 -0
- package/dist/Row/Row.d.ts +18 -0
- package/dist/Row/index.d.ts +1 -0
- package/dist/SearchInput/SearchInput.d.ts +50 -0
- package/dist/SearchInput/components/EmptyResults.d.ts +8 -0
- package/dist/SearchInput/components/SearchOptions.d.ts +23 -0
- package/dist/SearchInput/index.d.ts +1 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts +35 -0
- package/dist/SegmentedControl/ToggleButton.d.ts +11 -0
- package/dist/SegmentedControl/index.d.ts +1 -0
- package/dist/SliderInput/SliderInput.d.ts +9 -0
- package/dist/SliderInput/index.d.ts +1 -0
- package/dist/Snackbar/SnackbarContainer.d.ts +7 -0
- package/dist/Snackbar/SnackbarItem.d.ts +7 -0
- package/dist/Snackbar/hooks.d.ts +3 -0
- package/dist/Snackbar/index.d.ts +2 -0
- package/dist/Snackbar/types.d.ts +13 -0
- package/dist/SupportMessage/SupportMessage.d.ts +16 -0
- package/dist/SupportMessage/index.d.ts +1 -0
- package/dist/Table/Table.d.ts +16 -0
- package/dist/Table/components/RowActions.d.ts +3 -0
- package/dist/Table/components/TableHeader.d.ts +3 -0
- package/dist/Table/components/TableRow.d.ts +3 -0
- package/dist/Table/components/commonComponents.d.ts +6 -0
- package/dist/Table/helpers.d.ts +2 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/types.d.ts +114 -0
- package/dist/Tag/Tag.d.ts +11 -0
- package/dist/Tag/index.d.ts +1 -0
- package/dist/Text/Text.d.ts +21 -0
- package/dist/Text/fontMapping.d.ts +2 -0
- package/dist/Text/index.d.ts +1 -0
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.d.ts +36 -0
- package/dist/TextDateOfBirthInput/index.d.ts +1 -0
- package/dist/TextInput/TextInput.d.ts +39 -0
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/Textarea/Textarea.d.ts +27 -0
- package/dist/Textarea/index.d.ts +1 -0
- package/dist/Toggle/Toggle.d.ts +12 -0
- package/dist/Toggle/index.d.ts +1 -0
- package/dist/Tooltip/Tooltip.d.ts +33 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/fields/Field/Field.d.ts +7 -0
- package/dist/fields/Field/index.d.ts +1 -0
- package/dist/fields/Fieldset/Fieldset.d.ts +5 -0
- package/dist/fields/Fieldset/index.d.ts +1 -0
- package/dist/fields/commonFieldTypes.d.ts +19 -0
- package/dist/fields/components/CommonInput.d.ts +30 -0
- package/dist/fields/components/InternalField.d.ts +10 -0
- package/dist/fields/components/Placeholder.d.ts +2 -0
- package/dist/fontStyle.d.ts +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useBodyScrollLock/index.d.ts +4 -0
- package/dist/hooks/useClickOutside/index.d.ts +6 -0
- package/dist/hooks/useEventListener/index.d.ts +8 -0
- package/dist/hooks/useScript/index.d.ts +4 -0
- package/dist/hooks/useTimeout/index.d.ts +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +11750 -0
- package/dist/index.js.map +1 -0
- package/dist/theme.d.ts +98 -0
- package/dist/types.d.ts +4 -0
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.d.ts +11 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.utils.d.ts +18 -0
- package/dist/utils/dateOfBirth/schema.d.ts +11 -0
- package/dist/utils/debounce.d.ts +7 -0
- package/dist/utils/deprecated.d.ts +9 -0
- package/dist/utils/flex.d.ts +19 -0
- package/dist/utils/focusOutline.d.ts +4 -0
- package/dist/utils/id.d.ts +2 -0
- package/dist/utils/isReactElement.d.ts +2 -0
- package/dist/utils/measure.d.ts +13 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/responsiveProp.d.ts +10 -0
- package/dist/utils/space.d.ts +30 -0
- package/dist/utils/useControlledState.d.ts +5 -0
- package/dist/utils/utilTypes.d.ts +7 -0
- package/dist/utils/visuallyHidden.d.ts +5 -0
- package/package.json +2 -1
- package/dist/smores-react.js +0 -26333
- package/dist/smores-react.js.map +0 -1
- package/dist/smores-react.umd.cjs +0 -2413
- package/dist/smores-react.umd.cjs.map +0 -1
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ButtonHTMLAttributes, FC, FormEvent } from 'react';
|
2
|
+
import { Icons } from '../Icon/iconsList';
|
3
|
+
import { Color } from '../theme';
|
4
|
+
import { MarginProps } from '../utils/space';
|
5
|
+
export type IconStrictProps = {
|
6
|
+
id?: string;
|
7
|
+
/** className attribute to apply classes from props */
|
8
|
+
className?: string;
|
9
|
+
/** set size of the Icon (including background) */
|
10
|
+
size?: 16 | 24 | 36 | 48;
|
11
|
+
/** specify what Icon to render */
|
12
|
+
render: Icons;
|
13
|
+
/** set icon colour */
|
14
|
+
iconColor?: Color;
|
15
|
+
/** set background colour */
|
16
|
+
backgroundColor?: Color;
|
17
|
+
/** function to handle click */
|
18
|
+
handleClick?: (e: FormEvent<HTMLButtonElement>) => void;
|
19
|
+
/** rotation degrees */
|
20
|
+
rotate?: number;
|
21
|
+
} & MarginProps & Partial<ButtonHTMLAttributes<HTMLButtonElement>>;
|
22
|
+
export declare const IconStrict: FC<IconStrictProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './IconStrict';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
2
|
+
import { Icons } from '../Icon/iconsList';
|
3
|
+
import { MarginProps } from '../utils/space';
|
4
|
+
export type IconWrapperProps = {
|
5
|
+
/** className attribute to apply classes from props */
|
6
|
+
className?: string;
|
7
|
+
children: ReactNode;
|
8
|
+
/** specify what Icon to render */
|
9
|
+
render: Icons;
|
10
|
+
/** set size of the Icon */
|
11
|
+
size?: number;
|
12
|
+
/** TOP-RIGHT-BOTTOM-LEFT position of the Icon */
|
13
|
+
t?: string;
|
14
|
+
r?: string;
|
15
|
+
b?: string;
|
16
|
+
l?: string;
|
17
|
+
} & MarginProps;
|
18
|
+
export declare const IconWrapper: FC<IconWrapperProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { IconWrapper } from './IconWrapper';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { FC, JSX, ReactNode } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
export type LabelledTextProps = {
|
4
|
+
children: ReactNode;
|
5
|
+
label: string | JSX.Element;
|
6
|
+
labelMargin?: 2 | 4 | 8 | number;
|
7
|
+
} & MarginProps;
|
8
|
+
export declare const LabelledText: FC<LabelledTextProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { LabelledText } from './LabelledText';
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FC, MouseEventHandler, ReactNode } from 'react';
|
2
|
+
import { Icons } from '../Icon/iconsList';
|
3
|
+
type LinkTypo = 'regular' | 'small';
|
4
|
+
export type LinkProps = {
|
5
|
+
className?: string;
|
6
|
+
href: string;
|
7
|
+
onClick?: MouseEventHandler;
|
8
|
+
openInNewTab?: boolean;
|
9
|
+
children?: ReactNode;
|
10
|
+
download?: boolean;
|
11
|
+
typo?: LinkTypo;
|
12
|
+
highlight?: boolean;
|
13
|
+
iconToRender?: Icons;
|
14
|
+
isTrailingIcon?: boolean;
|
15
|
+
};
|
16
|
+
export declare const Link: FC<LinkProps>;
|
17
|
+
/**
|
18
|
+
* Internal utility to override styling in other components (see Text)
|
19
|
+
* @internal
|
20
|
+
*/
|
21
|
+
export declare const linkStyleOverride: ({ color }: {
|
22
|
+
color: string;
|
23
|
+
}) => import('styled-components').RuleSet<object>;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Link';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Loader } from './Loader';
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
declare const typeColorScheme: {
|
3
|
+
positive1: {
|
4
|
+
text: string;
|
5
|
+
logo: {
|
6
|
+
body: string;
|
7
|
+
eyes: string;
|
8
|
+
pupils: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
positive2: {
|
12
|
+
text: string;
|
13
|
+
logo: {
|
14
|
+
body: string;
|
15
|
+
eyes: string;
|
16
|
+
pupils: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
negative1: {
|
20
|
+
text: string;
|
21
|
+
logo: {
|
22
|
+
body: string;
|
23
|
+
eyes: string;
|
24
|
+
pupils: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
};
|
28
|
+
type LogoType = keyof typeof typeColorScheme;
|
29
|
+
export type LogoProps = {
|
30
|
+
type?: LogoType;
|
31
|
+
showText?: boolean;
|
32
|
+
small?: boolean;
|
33
|
+
};
|
34
|
+
export declare const Logo: FC<LogoProps>;
|
35
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Logo';
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
2
|
+
import { TextProps } from '../Text';
|
3
|
+
export type ModalProps = {
|
4
|
+
/**
|
5
|
+
* Title of the modal
|
6
|
+
* @default "" (empty string)
|
7
|
+
*
|
8
|
+
* @example
|
9
|
+
* ```tsx
|
10
|
+
* <Modal title="MultiCar Account" />
|
11
|
+
* ```
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* ```tsx
|
15
|
+
* <Modal title={{ typo: 'hero', children: 'MultiCar Account' }} />
|
16
|
+
* ```
|
17
|
+
*/
|
18
|
+
title?: string | TitleProps;
|
19
|
+
icon?: string;
|
20
|
+
children?: ReactNode;
|
21
|
+
rightPanel?: ReactNode;
|
22
|
+
showModal?: boolean;
|
23
|
+
handleClick: () => void;
|
24
|
+
drawer?: boolean;
|
25
|
+
cross?: boolean;
|
26
|
+
width?: string;
|
27
|
+
containerClass?: string;
|
28
|
+
portalContainer?: Element | DocumentFragment;
|
29
|
+
closeOnOverlayClick?: boolean;
|
30
|
+
};
|
31
|
+
export type TitleProps = TextProps;
|
32
|
+
export declare const Modal: FC<ModalProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Modal } from './Modal';
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { default as React, FocusEvent, FormEvent } from 'react';
|
2
|
+
import { CommonFieldProps } from '../fields/commonFieldTypes';
|
3
|
+
export interface Props extends CommonFieldProps {
|
4
|
+
type?: 'number';
|
5
|
+
placeholder: string;
|
6
|
+
name?: string;
|
7
|
+
value: string;
|
8
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
9
|
+
min?: number;
|
10
|
+
max?: number;
|
11
|
+
step?: number;
|
12
|
+
}
|
13
|
+
/** on change or on input required */
|
14
|
+
type InputProps = {
|
15
|
+
/** on change is required and on input optional */
|
16
|
+
onChange: (e: string | number) => void;
|
17
|
+
onInputChange?: (e: FormEvent<HTMLInputElement>) => void;
|
18
|
+
} | {
|
19
|
+
/** on input is required and on change optional */
|
20
|
+
onChange?: (e: string | number) => void;
|
21
|
+
onInputChange: (e: FormEvent<HTMLInputElement>) => void;
|
22
|
+
};
|
23
|
+
export type NumberInputProps = Props & InputProps;
|
24
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
25
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NumberInput } from './NumberInput';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
export type PaginationProps = {
|
4
|
+
/** Total number of records */
|
5
|
+
total: number;
|
6
|
+
/** Number of records per page */
|
7
|
+
partition: number;
|
8
|
+
/** Handle page change */
|
9
|
+
handlePageChange: (page: number) => void;
|
10
|
+
/** Sets current page number */
|
11
|
+
currentPage?: number;
|
12
|
+
} & MarginProps;
|
13
|
+
export declare const Pagination: FC<PaginationProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Pagination';
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { default as React, FocusEvent } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
import { BaseValueType } from './types';
|
4
|
+
export declare const RadioElement: React.ForwardRefExoticComponent<{
|
5
|
+
name: string;
|
6
|
+
id: string;
|
7
|
+
value: BaseValueType;
|
8
|
+
checked: boolean;
|
9
|
+
onChange: (value: BaseValueType) => void;
|
10
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
11
|
+
isError: boolean;
|
12
|
+
} & MarginProps & React.RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { default as React, FocusEvent, ReactElement } from 'react';
|
2
|
+
import { CommonFieldProps } from '../fields/commonFieldTypes';
|
3
|
+
import { Icons } from '../Icon/iconsList';
|
4
|
+
import { BaseValueType, DisplayType, IconPosition } from './types';
|
5
|
+
export type RadioGroupProps<Value extends BaseValueType = BaseValueType> = {
|
6
|
+
options: Array<{
|
7
|
+
visual?: string;
|
8
|
+
icon?: Icons;
|
9
|
+
iconPosition?: IconPosition;
|
10
|
+
label: string;
|
11
|
+
value: Value;
|
12
|
+
bodyCopy?: string;
|
13
|
+
}>;
|
14
|
+
onChange: (value: Value) => void;
|
15
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
16
|
+
value: Value;
|
17
|
+
displayType?: DisplayType;
|
18
|
+
fallbackStyle?: boolean;
|
19
|
+
} & CommonFieldProps;
|
20
|
+
export type RadioGroupElement = {
|
21
|
+
focus: VoidFunction;
|
22
|
+
};
|
23
|
+
export declare const RadioGroup: <Value extends BaseValueType = BaseValueType>(p: RadioGroupProps<Value> & React.RefAttributes<HTMLInputElement>) => ReactElement<any> | null;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { default as React, FocusEvent } from 'react';
|
2
|
+
import { Icons } from '../Icon/iconsList';
|
3
|
+
import { BaseValueType, DisplayType, IconPosition } from './types';
|
4
|
+
type RadioItemProps = {
|
5
|
+
name: string;
|
6
|
+
visual?: string;
|
7
|
+
icon?: Icons;
|
8
|
+
iconPosition?: IconPosition;
|
9
|
+
value: BaseValueType;
|
10
|
+
label: string;
|
11
|
+
checked: boolean;
|
12
|
+
onChange: (value: BaseValueType) => void;
|
13
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
14
|
+
displayType: DisplayType;
|
15
|
+
isError: boolean;
|
16
|
+
fallbackStyle?: boolean;
|
17
|
+
bodyCopy?: string;
|
18
|
+
};
|
19
|
+
export declare const RadioItem: React.ForwardRefExoticComponent<RadioItemProps & React.RefAttributes<HTMLInputElement>>;
|
20
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const ITEM_GAP = 12;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './RadioGroup';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
export interface RichTextProps extends MarginProps {
|
4
|
+
htmlString: string;
|
5
|
+
}
|
6
|
+
export declare const RichText: React.ForwardRefExoticComponent<RichTextProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { RichText } from './RichText';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
export interface RichTextEditorProps extends MarginProps {
|
4
|
+
defaultValue?: string;
|
5
|
+
maxHeight?: string;
|
6
|
+
height?: string;
|
7
|
+
outline?: boolean;
|
8
|
+
onChange: (e: string) => void;
|
9
|
+
}
|
10
|
+
export declare const RichTextEditor: FC<RichTextEditorProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { RichTextEditor } from './RichTextEditor';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './AutoLinkPlugin';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { Icons } from '../Icon/iconsList';
|
3
|
+
import { Color } from '../theme';
|
4
|
+
import { MarginProps } from '../utils/space';
|
5
|
+
export type RowProps = {
|
6
|
+
iconLeft?: Icons;
|
7
|
+
iconLeftColor?: Color;
|
8
|
+
iconRight?: Icons;
|
9
|
+
iconRightColor?: Color;
|
10
|
+
handleClick?: () => void;
|
11
|
+
heading: string;
|
12
|
+
subHeading?: string;
|
13
|
+
type?: 'first' | 'last' | 'curved';
|
14
|
+
borderTop?: boolean;
|
15
|
+
borderBottom?: boolean;
|
16
|
+
boldHeading?: boolean;
|
17
|
+
} & MarginProps;
|
18
|
+
export declare const Row: FC<RowProps>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Row';
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { IFuseOptions } from 'fuse.js';
|
2
|
+
import { default as React, FocusEvent, ReactNode } from 'react';
|
3
|
+
import { CommonFieldProps } from '../fields/commonFieldTypes';
|
4
|
+
export type SearchInputItem = {
|
5
|
+
label: string;
|
6
|
+
value: string;
|
7
|
+
tags?: any[];
|
8
|
+
};
|
9
|
+
export interface SearchInputProps extends CommonFieldProps {
|
10
|
+
/** Optional input className */
|
11
|
+
name?: string;
|
12
|
+
/** Optional placeholder text */
|
13
|
+
placeholder?: string;
|
14
|
+
/** List of input items to search on*/
|
15
|
+
searchList: SearchInputItem[];
|
16
|
+
/** callback to handle found item click */
|
17
|
+
onFound: (element: string) => void;
|
18
|
+
/** optional callback to run when no results found */
|
19
|
+
onNotFound?: (searchTerm: string) => void;
|
20
|
+
/** optional Component to render when no results found */
|
21
|
+
notFoundComponent?: (searchTerm: string) => ReactNode;
|
22
|
+
/** optional boolean to show search icon */
|
23
|
+
showIcon?: boolean;
|
24
|
+
/** optional boolean to show a clear search button */
|
25
|
+
clearSearch?: boolean;
|
26
|
+
/** Optional callback to run on blur */
|
27
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
28
|
+
/** Optional default value for input */
|
29
|
+
value?: string;
|
30
|
+
/** Optional boolean to move results to a realtive position */
|
31
|
+
resultsRelativePosition?: boolean;
|
32
|
+
/** optional boolean to add border to results */
|
33
|
+
resultsBorder?: boolean;
|
34
|
+
/** optional boolean to enable fuzzy search via fuse.js */
|
35
|
+
enableFuzzySearch?: boolean;
|
36
|
+
/** optional config of fuzzy search
|
37
|
+
* passing a value to this prop, automatically enables fuzzy search
|
38
|
+
*/
|
39
|
+
fuzzySearchOptions?: IFuseOptions<SearchInputItem>;
|
40
|
+
}
|
41
|
+
export declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<HTMLInputElement>>;
|
42
|
+
export declare const Icons: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').MarginProps & import('..').PaddingProps & import('../utils/flex').FlexProps & import('../utils/measure').MeasureProps & React.HTMLAttributes<HTMLElement> & {
|
43
|
+
as?: React.ElementType;
|
44
|
+
forwardedAs?: React.ElementType;
|
45
|
+
} & React.RefAttributes<HTMLDivElement>, {
|
46
|
+
$clearSearch: boolean;
|
47
|
+
}>> & string & Omit<React.ForwardRefExoticComponent<import('..').MarginProps & import('..').PaddingProps & import('../utils/flex').FlexProps & import('../utils/measure').MeasureProps & React.HTMLAttributes<HTMLElement> & {
|
48
|
+
as?: React.ElementType;
|
49
|
+
forwardedAs?: React.ElementType;
|
50
|
+
} & React.RefAttributes<HTMLDivElement>>, keyof React.Component<any, {}, any>>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
2
|
+
type Option = {
|
3
|
+
label: string;
|
4
|
+
value: string;
|
5
|
+
};
|
6
|
+
type SearchOptionsProps = {
|
7
|
+
displayedList: Array<Option>;
|
8
|
+
selectedValue: string | null;
|
9
|
+
highlightedIndex: number;
|
10
|
+
setHighlightedIndex: (arg: number) => void;
|
11
|
+
onSelect: (option: Option) => void;
|
12
|
+
onKeyDown: (e: {
|
13
|
+
key: string;
|
14
|
+
preventDefault: () => void;
|
15
|
+
}) => void;
|
16
|
+
positionRelative: boolean;
|
17
|
+
resultsBorder: boolean;
|
18
|
+
onNotFound?: (searchTerm: string) => void;
|
19
|
+
searchTerm: string;
|
20
|
+
notFoundComponent?: ReactNode;
|
21
|
+
};
|
22
|
+
export declare const SearchOptions: FC<SearchOptionsProps>;
|
23
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SearchInput';
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Color } from '../theme';
|
2
|
+
import { default as React } from 'react';
|
3
|
+
export type SegmentedControlOption<T = string | number> = {
|
4
|
+
label: string;
|
5
|
+
/** value needs to be number or string */
|
6
|
+
value: T;
|
7
|
+
/** optional tag able to show in the toggle if showTag prop is passed */
|
8
|
+
tag?: string;
|
9
|
+
isDisabled?: boolean;
|
10
|
+
};
|
11
|
+
type StylingOptions = {
|
12
|
+
toggle?: Color;
|
13
|
+
background?: Color;
|
14
|
+
text?: Color;
|
15
|
+
selectedText?: Color;
|
16
|
+
tagBg?: Color;
|
17
|
+
tagBorder?: Color;
|
18
|
+
tagText?: Color;
|
19
|
+
};
|
20
|
+
export type SegmentedControlProps<T> = {
|
21
|
+
/** you can pass more than 2 options */
|
22
|
+
options: SegmentedControlOption<T>[];
|
23
|
+
value: T;
|
24
|
+
onChange: (value: T) => void;
|
25
|
+
/** pass this prop if you want to show the tag in the toggle */
|
26
|
+
showTag?: boolean;
|
27
|
+
/** pass a StylingOptions object with the needed styles if you want to style the SegmentedControl */
|
28
|
+
styles?: StylingOptions;
|
29
|
+
};
|
30
|
+
/**
|
31
|
+
* ### How do I pass state to the `SegmentedControl` component?
|
32
|
+
* We recommend pulling the state up to at least the component that renders `SegmentedControl` up to at least the component that renders `SegmentedControl`, this should make it easier to pass state to the `SegmentedControl` component
|
33
|
+
*/
|
34
|
+
export declare const SegmentedControl: <T>({ options, value, onChange, showTag, styles: { tagBorder, tagText, tagBg, selectedText, text, background, toggle, }, }: SegmentedControlProps<T>) => React.JSX.Element;
|
35
|
+
export {};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
2
|
+
type ToggleButtonProps<Value> = {
|
3
|
+
name: string;
|
4
|
+
value: Value;
|
5
|
+
onChange: (value: Value) => void;
|
6
|
+
isSelected: boolean;
|
7
|
+
isDisabled?: boolean;
|
8
|
+
children: ReactNode;
|
9
|
+
};
|
10
|
+
export declare const ToggleButton: <Value>({ name, value, onChange, isSelected, isDisabled, children, }: ToggleButtonProps<Value>) => React.JSX.Element;
|
11
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SegmentedControl';
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
export declare const SliderInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "value"> & MarginProps & {
|
4
|
+
onChange: (value: number) => void;
|
5
|
+
value: number;
|
6
|
+
min?: number;
|
7
|
+
max?: number;
|
8
|
+
step?: number;
|
9
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SliderInput';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { default as React, FC, ReactNode } from 'react';
|
2
|
+
import { SnackbarContextType } from './types';
|
3
|
+
export declare const SnackbarContext: React.Context<SnackbarContextType>;
|
4
|
+
export declare const useSnackbarContext: () => SnackbarContextType;
|
5
|
+
export declare const SnackbarContainer: FC<{
|
6
|
+
children?: ReactNode;
|
7
|
+
}>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Icons } from '../Icon/iconsList';
|
2
|
+
export interface Snackbar {
|
3
|
+
id: string;
|
4
|
+
message: string;
|
5
|
+
autoCloseTime?: 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
6
|
+
leadingIcon?: Icons;
|
7
|
+
canManuallyClose?: boolean;
|
8
|
+
showCloseIcon?: boolean;
|
9
|
+
}
|
10
|
+
export type CreateSnack = Omit<Snackbar, 'id'>;
|
11
|
+
export interface SnackbarContextType {
|
12
|
+
addSnackbar: (snackbar: CreateSnack) => void;
|
13
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { FC, MouseEventHandler, ReactElement } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
type SupportMessageType = 'info' | 'fallbackStyle' | 'alert' | 'warning' | 'success';
|
4
|
+
export type SupportMessageProps = {
|
5
|
+
className?: string;
|
6
|
+
description: string | ReactElement<any>;
|
7
|
+
onClick?: MouseEventHandler;
|
8
|
+
/**
|
9
|
+
* Right side content, usually an icon or a button
|
10
|
+
*/
|
11
|
+
rightSideComponent?: ReactElement<any>;
|
12
|
+
type: SupportMessageType;
|
13
|
+
title?: string;
|
14
|
+
} & MarginProps;
|
15
|
+
export declare const SupportMessage: FC<SupportMessageProps>;
|
16
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SupportMessage';
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { TableProps } from './types';
|
3
|
+
/**
|
4
|
+
* A table component that displays data with various features such as expandable rows, striped rows, and fixed headers.
|
5
|
+
*
|
6
|
+
* ## Caveats:
|
7
|
+
* - `subRows` should always have the same columns as the Parent table
|
8
|
+
* - `stripedColor` wont be applied to `subRows` or `subTables`
|
9
|
+
* - `rowActions` will always need an `onClick`, this will be automatically passed onto the `ReactNode` you place & will be selectable
|
10
|
+
* - Rows will scale depending on the cell content size
|
11
|
+
* - Using `clickableRow` with clickable cells, ensure you use `e.stopPropagation` in your cells `onClick`
|
12
|
+
*
|
13
|
+
* ## Improvements:
|
14
|
+
* - It would be nice if we expandable logic inside this component, e.g the presence of certain props would automatically add this
|
15
|
+
*/
|
16
|
+
export declare const Table: <T extends object>({ columns, data, fixedHeader, hasKeyline, expandable, subTable, subRows, headerHeight, headerColor, rowColor, stripedColor, rowBorderColor, rowActions, clickableRow, rowPadding, columnPadding, noDataContent, hideTableHeader, }: TableProps<T>) => React.JSX.Element;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { TableHeaderProps } from '../types';
|
3
|
+
export declare const TableHeader: <T extends object>({ columns, fixedHeader, headerColor, rowActions, headerHeight, columnPadding, expandable, hasKeyline, }: TableHeaderProps<T>) => React.JSX.Element;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { TableRowProps } from '../types';
|
3
|
+
export declare const TableRow: <T extends object>({ rowData, rowIndex, columns, subRows, subTable, stripedColor, rowActions, rowColor, rowBorderColor, rowPadding, columnPadding, showActions, expandable, clickableRow, }: TableRowProps<T>) => React.JSX.Element;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { TransientProps } from 'utils/utilTypes';
|
2
|
+
import { TableStylesProps } from '../types';
|
3
|
+
export declare const StyledTable: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>> & string;
|
4
|
+
export declare const StyledHeaderCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, TransientProps<TableStylesProps>>> & string;
|
5
|
+
export declare const StyledCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, TransientProps<TableStylesProps>>> & string;
|
6
|
+
export declare const StyledRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, TransientProps<TableStylesProps>>> & string;
|