@mrshmllw/smores-react 10.7.0-crumbs-feature-vite-bundling.1 → 10.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.ts +15 -0
- package/dist/Accordion/Accordion.js +49 -0
- package/dist/Accordion/Accordion.js.map +1 -0
- package/dist/Accordion/index.d.ts +1 -0
- package/dist/Accordion/index.js +2 -0
- package/dist/Accordion/index.js.map +1 -0
- package/dist/ActionDropdown/ActionDropdown.d.ts +16 -0
- package/dist/ActionDropdown/ActionDropdown.js +61 -0
- package/dist/ActionDropdown/ActionDropdown.js.map +1 -0
- package/dist/ActionDropdown/List.d.ts +14 -0
- package/dist/ActionDropdown/List.js +30 -0
- package/dist/ActionDropdown/List.js.map +1 -0
- package/dist/ActionDropdown/index.d.ts +1 -0
- package/dist/ActionDropdown/index.js +2 -0
- package/dist/ActionDropdown/index.js.map +1 -0
- package/dist/Badge/Badge.d.ts +16 -0
- package/dist/Badge/Badge.js +44 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/BadgeFallbackImage.d.ts +6 -0
- package/dist/Badge/BadgeFallbackImage.js +24 -0
- package/dist/Badge/BadgeFallbackImage.js.map +1 -0
- package/dist/Badge/index.d.ts +1 -0
- package/dist/Badge/index.js +2 -0
- package/dist/Badge/index.js.map +1 -0
- package/dist/BadgeList/BadgeList.d.ts +26 -0
- package/dist/BadgeList/BadgeList.js +77 -0
- package/dist/BadgeList/BadgeList.js.map +1 -0
- package/dist/BadgeList/index.d.ts +1 -0
- package/dist/BadgeList/index.js +2 -0
- package/dist/BadgeList/index.js.map +1 -0
- package/dist/Banner/BannerContainer.d.ts +7 -0
- package/dist/Banner/BannerContainer.js +43 -0
- package/dist/Banner/BannerContainer.js.map +1 -0
- package/dist/Banner/BannerItem.d.ts +7 -0
- package/dist/Banner/BannerItem.js +64 -0
- package/dist/Banner/BannerItem.js.map +1 -0
- package/dist/Banner/hooks.d.ts +3 -0
- package/dist/Banner/hooks.js +6 -0
- package/dist/Banner/hooks.js.map +1 -0
- package/dist/Banner/index.d.ts +2 -0
- package/dist/Banner/index.js +3 -0
- package/dist/Banner/index.js.map +1 -0
- package/dist/Banner/types.d.ts +19 -0
- package/dist/Banner/types.js +2 -0
- package/dist/Banner/types.js.map +1 -0
- package/dist/Box/Box.d.ts +14 -0
- package/dist/Box/Box.js +17 -0
- package/dist/Box/Box.js.map +1 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/Box/index.js +2 -0
- package/dist/Box/index.js.map +1 -0
- package/dist/BrandCard/BrandCard.d.ts +27 -0
- package/dist/BrandCard/BrandCard.js +48 -0
- package/dist/BrandCard/BrandCard.js.map +1 -0
- package/dist/BrandCard/index.d.ts +1 -0
- package/dist/BrandCard/index.js +2 -0
- package/dist/BrandCard/index.js.map +1 -0
- package/dist/Button/Button.d.ts +23 -0
- package/dist/Button/Button.js +122 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.js +2 -0
- package/dist/Button/index.js.map +1 -0
- package/dist/Card/Card.d.ts +38 -0
- package/dist/Card/Card.js +72 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/index.d.ts +1 -0
- package/dist/Card/index.js +2 -0
- package/dist/Card/index.js.map +1 -0
- package/dist/CheckBox/CheckBox.d.ts +10 -0
- package/dist/CheckBox/CheckBox.js +107 -0
- package/dist/CheckBox/CheckBox.js.map +1 -0
- package/dist/CheckBox/index.d.ts +1 -0
- package/dist/CheckBox/index.js +2 -0
- package/dist/CheckBox/index.js.map +1 -0
- package/dist/CheckBoxGroup/CheckBoxGroup.d.ts +15 -0
- package/dist/CheckBoxGroup/CheckBoxGroup.js +11 -0
- package/dist/CheckBoxGroup/CheckBoxGroup.js.map +1 -0
- package/dist/CheckBoxGroup/index.d.ts +1 -0
- package/dist/CheckBoxGroup/index.js +2 -0
- package/dist/CheckBoxGroup/index.js.map +1 -0
- package/dist/Chip/Chip.d.ts +15 -0
- package/dist/Chip/Chip.js +53 -0
- package/dist/Chip/Chip.js.map +1 -0
- package/dist/Chip/index.d.ts +1 -0
- package/dist/Chip/index.js +2 -0
- package/dist/Chip/index.js.map +1 -0
- package/dist/CurrencyInput/CurrencyInput.d.ts +24 -0
- package/dist/CurrencyInput/CurrencyInput.js +51 -0
- package/dist/CurrencyInput/CurrencyInput.js.map +1 -0
- package/dist/CurrencyInput/index.d.ts +1 -0
- package/dist/CurrencyInput/index.js +2 -0
- package/dist/CurrencyInput/index.js.map +1 -0
- package/dist/Datepicker/Datepicker.d.ts +18 -0
- package/dist/Datepicker/Datepicker.js +133 -0
- package/dist/Datepicker/Datepicker.js.map +1 -0
- package/dist/Datepicker/DatesList.d.ts +9 -0
- package/dist/Datepicker/DatesList.js +77 -0
- package/dist/Datepicker/DatesList.js.map +1 -0
- package/dist/Datepicker/index.d.ts +1 -0
- package/dist/Datepicker/index.js +2 -0
- package/dist/Datepicker/index.js.map +1 -0
- package/dist/Datepicker/types.d.ts +6 -0
- package/dist/Datepicker/types.js +2 -0
- package/dist/Datepicker/types.js.map +1 -0
- package/dist/Divider/Divider.d.ts +9 -0
- package/dist/Divider/Divider.js +18 -0
- package/dist/Divider/Divider.js.map +1 -0
- package/dist/Divider/index.d.ts +1 -0
- package/dist/Divider/index.js +2 -0
- package/dist/Divider/index.js.map +1 -0
- package/dist/Dropdown/Dropdown.d.ts +32 -0
- package/dist/Dropdown/Dropdown.js +98 -0
- package/dist/Dropdown/Dropdown.js.map +1 -0
- package/dist/Dropdown/index.d.ts +1 -0
- package/dist/Dropdown/index.js +2 -0
- package/dist/Dropdown/index.js.map +1 -0
- package/dist/Emoji/Emoji.d.ts +13 -0
- package/dist/Emoji/Emoji.js +8 -0
- package/dist/Emoji/Emoji.js.map +1 -0
- package/dist/Emoji/index.d.ts +1 -0
- package/dist/Emoji/index.js +2 -0
- package/dist/Emoji/index.js.map +1 -0
- package/dist/Icon/Icon.d.ts +17 -0
- package/dist/Icon/Icon.js +25 -0
- package/dist/Icon/Icon.js.map +1 -0
- package/dist/Icon/iconFiles/Aa.d.ts +3 -0
- package/dist/Icon/iconFiles/Aa.js +9 -0
- package/dist/Icon/iconFiles/Aa.js.map +1 -0
- package/dist/Icon/iconFiles/AaInverted.d.ts +3 -0
- package/dist/Icon/iconFiles/AaInverted.js +9 -0
- package/dist/Icon/iconFiles/AaInverted.js.map +1 -0
- package/dist/Icon/iconFiles/AccidentalDamage.d.ts +3 -0
- package/dist/Icon/iconFiles/AccidentalDamage.js +5 -0
- package/dist/Icon/iconFiles/AccidentalDamage.js.map +1 -0
- package/dist/Icon/iconFiles/AccountBreakdown.d.ts +3 -0
- package/dist/Icon/iconFiles/AccountBreakdown.js +8 -0
- package/dist/Icon/iconFiles/AccountBreakdown.js.map +1 -0
- package/dist/Icon/iconFiles/AccountMlp.d.ts +3 -0
- package/dist/Icon/iconFiles/AccountMlp.js +6 -0
- package/dist/Icon/iconFiles/AccountMlp.js.map +1 -0
- package/dist/Icon/iconFiles/ActivityClipboard.d.ts +3 -0
- package/dist/Icon/iconFiles/ActivityClipboard.js +5 -0
- package/dist/Icon/iconFiles/ActivityClipboard.js.map +1 -0
- package/dist/Icon/iconFiles/AddOns.d.ts +3 -0
- package/dist/Icon/iconFiles/AddOns.js +5 -0
- package/dist/Icon/iconFiles/AddOns.js.map +1 -0
- package/dist/Icon/iconFiles/AddressMta.d.ts +3 -0
- package/dist/Icon/iconFiles/AddressMta.js +19 -0
- package/dist/Icon/iconFiles/AddressMta.js.map +1 -0
- package/dist/Icon/iconFiles/Ai.d.ts +3 -0
- package/dist/Icon/iconFiles/Ai.js +9 -0
- package/dist/Icon/iconFiles/Ai.js.map +1 -0
- package/dist/Icon/iconFiles/AlbumAudio.d.ts +3 -0
- package/dist/Icon/iconFiles/AlbumAudio.js +5 -0
- package/dist/Icon/iconFiles/AlbumAudio.js.map +1 -0
- package/dist/Icon/iconFiles/Alert.d.ts +3 -0
- package/dist/Icon/iconFiles/Alert.js +5 -0
- package/dist/Icon/iconFiles/Alert.js.map +1 -0
- package/dist/Icon/iconFiles/AlertEngine.d.ts +3 -0
- package/dist/Icon/iconFiles/AlertEngine.js +8 -0
- package/dist/Icon/iconFiles/AlertEngine.js.map +1 -0
- package/dist/Icon/iconFiles/Amex.d.ts +3 -0
- package/dist/Icon/iconFiles/Amex.js +10 -0
- package/dist/Icon/iconFiles/Amex.js.map +1 -0
- package/dist/Icon/iconFiles/ApplePay.d.ts +3 -0
- package/dist/Icon/iconFiles/ApplePay.js +8 -0
- package/dist/Icon/iconFiles/ApplePay.js.map +1 -0
- package/dist/Icon/iconFiles/ApprovedFile.d.ts +3 -0
- package/dist/Icon/iconFiles/ApprovedFile.js +6 -0
- package/dist/Icon/iconFiles/ApprovedFile.js.map +1 -0
- package/dist/Icon/iconFiles/Archive.d.ts +3 -0
- package/dist/Icon/iconFiles/Archive.js +5 -0
- package/dist/Icon/iconFiles/Archive.js.map +1 -0
- package/dist/Icon/iconFiles/Arrow.d.ts +3 -0
- package/dist/Icon/iconFiles/Arrow.js +5 -0
- package/dist/Icon/iconFiles/Arrow.js.map +1 -0
- package/dist/Icon/iconFiles/At.d.ts +3 -0
- package/dist/Icon/iconFiles/At.js +5 -0
- package/dist/Icon/iconFiles/At.js.map +1 -0
- package/dist/Icon/iconFiles/Axa.d.ts +3 -0
- package/dist/Icon/iconFiles/Axa.js +9 -0
- package/dist/Icon/iconFiles/Axa.js.map +1 -0
- package/dist/Icon/iconFiles/Bank.d.ts +3 -0
- package/dist/Icon/iconFiles/Bank.js +5 -0
- package/dist/Icon/iconFiles/Bank.js.map +1 -0
- package/dist/Icon/iconFiles/Basket.d.ts +3 -0
- package/dist/Icon/iconFiles/Basket.js +5 -0
- package/dist/Icon/iconFiles/Basket.js.map +1 -0
- package/dist/Icon/iconFiles/Bicycle.d.ts +3 -0
- package/dist/Icon/iconFiles/Bicycle.js +5 -0
- package/dist/Icon/iconFiles/Bicycle.js.map +1 -0
- package/dist/Icon/iconFiles/Boost.d.ts +3 -0
- package/dist/Icon/iconFiles/Boost.js +8 -0
- package/dist/Icon/iconFiles/Boost.js.map +1 -0
- package/dist/Icon/iconFiles/Breakdown.d.ts +3 -0
- package/dist/Icon/iconFiles/Breakdown.js +10 -0
- package/dist/Icon/iconFiles/Breakdown.js.map +1 -0
- package/dist/Icon/iconFiles/BreakdownAlt.d.ts +3 -0
- package/dist/Icon/iconFiles/BreakdownAlt.js +9 -0
- package/dist/Icon/iconFiles/BreakdownAlt.js.map +1 -0
- package/dist/Icon/iconFiles/Briefcase.d.ts +3 -0
- package/dist/Icon/iconFiles/Briefcase.js +5 -0
- package/dist/Icon/iconFiles/Briefcase.js.map +1 -0
- package/dist/Icon/iconFiles/Bullets.d.ts +3 -0
- package/dist/Icon/iconFiles/Bullets.js +8 -0
- package/dist/Icon/iconFiles/Bullets.js.map +1 -0
- package/dist/Icon/iconFiles/Burger.d.ts +3 -0
- package/dist/Icon/iconFiles/Burger.js +5 -0
- package/dist/Icon/iconFiles/Burger.js.map +1 -0
- package/dist/Icon/iconFiles/Calendar.d.ts +3 -0
- package/dist/Icon/iconFiles/Calendar.js +5 -0
- package/dist/Icon/iconFiles/Calendar.js.map +1 -0
- package/dist/Icon/iconFiles/Camera.d.ts +3 -0
- package/dist/Icon/iconFiles/Camera.js +5 -0
- package/dist/Icon/iconFiles/Camera.js.map +1 -0
- package/dist/Icon/iconFiles/Cancel.d.ts +3 -0
- package/dist/Icon/iconFiles/Cancel.js +9 -0
- package/dist/Icon/iconFiles/Cancel.js.map +1 -0
- package/dist/Icon/iconFiles/CancelBw.d.ts +3 -0
- package/dist/Icon/iconFiles/CancelBw.js +9 -0
- package/dist/Icon/iconFiles/CancelBw.js.map +1 -0
- package/dist/Icon/iconFiles/Car.d.ts +3 -0
- package/dist/Icon/iconFiles/Car.js +5 -0
- package/dist/Icon/iconFiles/Car.js.map +1 -0
- package/dist/Icon/iconFiles/CarMta.d.ts +3 -0
- package/dist/Icon/iconFiles/CarMta.js +10 -0
- package/dist/Icon/iconFiles/CarMta.js.map +1 -0
- package/dist/Icon/iconFiles/CarRepairs.d.ts +3 -0
- package/dist/Icon/iconFiles/CarRepairs.js +6 -0
- package/dist/Icon/iconFiles/CarRepairs.js.map +1 -0
- package/dist/Icon/iconFiles/CarReplacement.d.ts +3 -0
- package/dist/Icon/iconFiles/CarReplacement.js +7 -0
- package/dist/Icon/iconFiles/CarReplacement.js.map +1 -0
- package/dist/Icon/iconFiles/CarUsage.d.ts +3 -0
- package/dist/Icon/iconFiles/CarUsage.js +7 -0
- package/dist/Icon/iconFiles/CarUsage.js.map +1 -0
- package/dist/Icon/iconFiles/Card.d.ts +3 -0
- package/dist/Icon/iconFiles/Card.js +5 -0
- package/dist/Icon/iconFiles/Card.js.map +1 -0
- package/dist/Icon/iconFiles/Caret.d.ts +5 -0
- package/dist/Icon/iconFiles/Caret.js +5 -0
- package/dist/Icon/iconFiles/Caret.js.map +1 -0
- package/dist/Icon/iconFiles/CaretUp.d.ts +6 -0
- package/dist/Icon/iconFiles/CaretUp.js +7 -0
- package/dist/Icon/iconFiles/CaretUp.js.map +1 -0
- package/dist/Icon/iconFiles/Charge.d.ts +3 -0
- package/dist/Icon/iconFiles/Charge.js +8 -0
- package/dist/Icon/iconFiles/Charge.js.map +1 -0
- package/dist/Icon/iconFiles/Chat.d.ts +3 -0
- package/dist/Icon/iconFiles/Chat.js +5 -0
- package/dist/Icon/iconFiles/Chat.js.map +1 -0
- package/dist/Icon/iconFiles/ChatBubble.d.ts +3 -0
- package/dist/Icon/iconFiles/ChatBubble.js +7 -0
- package/dist/Icon/iconFiles/ChatBubble.js.map +1 -0
- package/dist/Icon/iconFiles/Checkout.d.ts +3 -0
- package/dist/Icon/iconFiles/Checkout.js +5 -0
- package/dist/Icon/iconFiles/Checkout.js.map +1 -0
- package/dist/Icon/iconFiles/CheckoutWithText.d.ts +3 -0
- package/dist/Icon/iconFiles/CheckoutWithText.js +21 -0
- package/dist/Icon/iconFiles/CheckoutWithText.js.map +1 -0
- package/dist/Icon/iconFiles/CircleTick.d.ts +3 -0
- package/dist/Icon/iconFiles/CircleTick.js +5 -0
- package/dist/Icon/iconFiles/CircleTick.js.map +1 -0
- package/dist/Icon/iconFiles/City.d.ts +3 -0
- package/dist/Icon/iconFiles/City.js +5 -0
- package/dist/Icon/iconFiles/City.js.map +1 -0
- package/dist/Icon/iconFiles/Claim.d.ts +3 -0
- package/dist/Icon/iconFiles/Claim.js +8 -0
- package/dist/Icon/iconFiles/Claim.js.map +1 -0
- package/dist/Icon/iconFiles/ClaimLine.d.ts +3 -0
- package/dist/Icon/iconFiles/ClaimLine.js +10 -0
- package/dist/Icon/iconFiles/ClaimLine.js.map +1 -0
- package/dist/Icon/iconFiles/Clipboard.d.ts +3 -0
- package/dist/Icon/iconFiles/Clipboard.js +6 -0
- package/dist/Icon/iconFiles/Clipboard.js.map +1 -0
- package/dist/Icon/iconFiles/ClipboardCheck.d.ts +3 -0
- package/dist/Icon/iconFiles/ClipboardCheck.js +5 -0
- package/dist/Icon/iconFiles/ClipboardCheck.js.map +1 -0
- package/dist/Icon/iconFiles/Clock.d.ts +3 -0
- package/dist/Icon/iconFiles/Clock.js +5 -0
- package/dist/Icon/iconFiles/Clock.js.map +1 -0
- package/dist/Icon/iconFiles/ClosePanel.d.ts +3 -0
- package/dist/Icon/iconFiles/ClosePanel.js +5 -0
- package/dist/Icon/iconFiles/ClosePanel.js.map +1 -0
- package/dist/Icon/iconFiles/Collapse.d.ts +3 -0
- package/dist/Icon/iconFiles/Collapse.js +5 -0
- package/dist/Icon/iconFiles/Collapse.js.map +1 -0
- package/dist/Icon/iconFiles/Confused.d.ts +3 -0
- package/dist/Icon/iconFiles/Confused.js +5 -0
- package/dist/Icon/iconFiles/Confused.js.map +1 -0
- package/dist/Icon/iconFiles/ConfusedBlue.d.ts +3 -0
- package/dist/Icon/iconFiles/ConfusedBlue.js +5 -0
- package/dist/Icon/iconFiles/ConfusedBlue.js.map +1 -0
- package/dist/Icon/iconFiles/ContactEmail.d.ts +3 -0
- package/dist/Icon/iconFiles/ContactEmail.js +5 -0
- package/dist/Icon/iconFiles/ContactEmail.js.map +1 -0
- package/dist/Icon/iconFiles/Copy.d.ts +3 -0
- package/dist/Icon/iconFiles/Copy.js +5 -0
- package/dist/Icon/iconFiles/Copy.js.map +1 -0
- package/dist/Icon/iconFiles/Crop.d.ts +3 -0
- package/dist/Icon/iconFiles/Crop.js +5 -0
- package/dist/Icon/iconFiles/Crop.js.map +1 -0
- package/dist/Icon/iconFiles/Cross.d.ts +3 -0
- package/dist/Icon/iconFiles/Cross.js +5 -0
- package/dist/Icon/iconFiles/Cross.js.map +1 -0
- package/dist/Icon/iconFiles/DashboardHigh.d.ts +3 -0
- package/dist/Icon/iconFiles/DashboardHigh.js +8 -0
- package/dist/Icon/iconFiles/DashboardHigh.js.map +1 -0
- package/dist/Icon/iconFiles/DirectDebit.d.ts +3 -0
- package/dist/Icon/iconFiles/DirectDebit.js +5 -0
- package/dist/Icon/iconFiles/DirectDebit.js.map +1 -0
- package/dist/Icon/iconFiles/DocDownload.d.ts +3 -0
- package/dist/Icon/iconFiles/DocDownload.js +5 -0
- package/dist/Icon/iconFiles/DocDownload.js.map +1 -0
- package/dist/Icon/iconFiles/DocUpload.d.ts +3 -0
- package/dist/Icon/iconFiles/DocUpload.js +5 -0
- package/dist/Icon/iconFiles/DocUpload.js.map +1 -0
- package/dist/Icon/iconFiles/Download.d.ts +3 -0
- package/dist/Icon/iconFiles/Download.js +5 -0
- package/dist/Icon/iconFiles/Download.js.map +1 -0
- package/dist/Icon/iconFiles/Earth.d.ts +3 -0
- package/dist/Icon/iconFiles/Earth.js +9 -0
- package/dist/Icon/iconFiles/Earth.js.map +1 -0
- package/dist/Icon/iconFiles/Edit.d.ts +3 -0
- package/dist/Icon/iconFiles/Edit.js +5 -0
- package/dist/Icon/iconFiles/Edit.js.map +1 -0
- package/dist/Icon/iconFiles/EditContact.d.ts +3 -0
- package/dist/Icon/iconFiles/EditContact.js +6 -0
- package/dist/Icon/iconFiles/EditContact.js.map +1 -0
- package/dist/Icon/iconFiles/EditOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/EditOutline.js +5 -0
- package/dist/Icon/iconFiles/EditOutline.js.map +1 -0
- package/dist/Icon/iconFiles/EmailFilled.d.ts +3 -0
- package/dist/Icon/iconFiles/EmailFilled.js +5 -0
- package/dist/Icon/iconFiles/EmailFilled.js.map +1 -0
- package/dist/Icon/iconFiles/Engine.d.ts +3 -0
- package/dist/Icon/iconFiles/Engine.js +9 -0
- package/dist/Icon/iconFiles/Engine.js.map +1 -0
- package/dist/Icon/iconFiles/Europe.d.ts +3 -0
- package/dist/Icon/iconFiles/Europe.js +5 -0
- package/dist/Icon/iconFiles/Europe.js.map +1 -0
- package/dist/Icon/iconFiles/Excluded.d.ts +3 -0
- package/dist/Icon/iconFiles/Excluded.js +7 -0
- package/dist/Icon/iconFiles/Excluded.js.map +1 -0
- package/dist/Icon/iconFiles/Expand.d.ts +3 -0
- package/dist/Icon/iconFiles/Expand.js +5 -0
- package/dist/Icon/iconFiles/Expand.js.map +1 -0
- package/dist/Icon/iconFiles/Facebook.d.ts +3 -0
- package/dist/Icon/iconFiles/Facebook.js +5 -0
- package/dist/Icon/iconFiles/Facebook.js.map +1 -0
- package/dist/Icon/iconFiles/FallingItems.d.ts +3 -0
- package/dist/Icon/iconFiles/FallingItems.js +5 -0
- package/dist/Icon/iconFiles/FallingItems.js.map +1 -0
- package/dist/Icon/iconFiles/Fence.d.ts +3 -0
- package/dist/Icon/iconFiles/Fence.js +5 -0
- package/dist/Icon/iconFiles/Fence.js.map +1 -0
- package/dist/Icon/iconFiles/File.d.ts +3 -0
- package/dist/Icon/iconFiles/File.js +5 -0
- package/dist/Icon/iconFiles/File.js.map +1 -0
- package/dist/Icon/iconFiles/FileBadge2.d.ts +3 -0
- package/dist/Icon/iconFiles/FileBadge2.js +7 -0
- package/dist/Icon/iconFiles/FileBadge2.js.map +1 -0
- package/dist/Icon/iconFiles/FileCabinet.d.ts +3 -0
- package/dist/Icon/iconFiles/FileCabinet.js +10 -0
- package/dist/Icon/iconFiles/FileCabinet.js.map +1 -0
- package/dist/Icon/iconFiles/Filter.d.ts +3 -0
- package/dist/Icon/iconFiles/Filter.js +5 -0
- package/dist/Icon/iconFiles/Filter.js.map +1 -0
- package/dist/Icon/iconFiles/Fire.d.ts +3 -0
- package/dist/Icon/iconFiles/Fire.js +9 -0
- package/dist/Icon/iconFiles/Fire.js.map +1 -0
- package/dist/Icon/iconFiles/Flag.d.ts +3 -0
- package/dist/Icon/iconFiles/Flag.js +5 -0
- package/dist/Icon/iconFiles/Flag.js.map +1 -0
- package/dist/Icon/iconFiles/Folder.d.ts +3 -0
- package/dist/Icon/iconFiles/Folder.js +5 -0
- package/dist/Icon/iconFiles/Folder.js.map +1 -0
- package/dist/Icon/iconFiles/FraudAlert.d.ts +3 -0
- package/dist/Icon/iconFiles/FraudAlert.js +5 -0
- package/dist/Icon/iconFiles/FraudAlert.js.map +1 -0
- package/dist/Icon/iconFiles/FreezerFood.d.ts +3 -0
- package/dist/Icon/iconFiles/FreezerFood.js +5 -0
- package/dist/Icon/iconFiles/FreezerFood.js.map +1 -0
- package/dist/Icon/iconFiles/Fuel.d.ts +3 -0
- package/dist/Icon/iconFiles/Fuel.js +5 -0
- package/dist/Icon/iconFiles/Fuel.js.map +1 -0
- package/dist/Icon/iconFiles/Globe.d.ts +3 -0
- package/dist/Icon/iconFiles/Globe.js +5 -0
- package/dist/Icon/iconFiles/Globe.js.map +1 -0
- package/dist/Icon/iconFiles/GooglePlayBadge.d.ts +3 -0
- package/dist/Icon/iconFiles/GooglePlayBadge.js +94 -0
- package/dist/Icon/iconFiles/GooglePlayBadge.js.map +1 -0
- package/dist/Icon/iconFiles/Gpay.d.ts +3 -0
- package/dist/Icon/iconFiles/Gpay.js +12 -0
- package/dist/Icon/iconFiles/Gpay.js.map +1 -0
- package/dist/Icon/iconFiles/HelpAboutus.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpAboutus.js +5 -0
- package/dist/Icon/iconFiles/HelpAboutus.js.map +1 -0
- package/dist/Icon/iconFiles/HelpBuypolicy.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpBuypolicy.js +11 -0
- package/dist/Icon/iconFiles/HelpBuypolicy.js.map +1 -0
- package/dist/Icon/iconFiles/HelpCenter.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpCenter.js +8 -0
- package/dist/Icon/iconFiles/HelpCenter.js.map +1 -0
- package/dist/Icon/iconFiles/HelpIdcheck.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpIdcheck.js +13 -0
- package/dist/Icon/iconFiles/HelpIdcheck.js.map +1 -0
- package/dist/Icon/iconFiles/HelpManagePolicy.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpManagePolicy.js +7 -0
- package/dist/Icon/iconFiles/HelpManagePolicy.js.map +1 -0
- package/dist/Icon/iconFiles/HelpNcd.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpNcd.js +12 -0
- package/dist/Icon/iconFiles/HelpNcd.js.map +1 -0
- package/dist/Icon/iconFiles/HelpVerification.d.ts +3 -0
- package/dist/Icon/iconFiles/HelpVerification.js +6 -0
- package/dist/Icon/iconFiles/HelpVerification.js.map +1 -0
- package/dist/Icon/iconFiles/HomeExcluded.d.ts +3 -0
- package/dist/Icon/iconFiles/HomeExcluded.js +7 -0
- package/dist/Icon/iconFiles/HomeExcluded.js.map +1 -0
- package/dist/Icon/iconFiles/House.d.ts +3 -0
- package/dist/Icon/iconFiles/House.js +5 -0
- package/dist/Icon/iconFiles/House.js.map +1 -0
- package/dist/Icon/iconFiles/HouseTree.d.ts +3 -0
- package/dist/Icon/iconFiles/HouseTree.js +9 -0
- package/dist/Icon/iconFiles/HouseTree.js.map +1 -0
- package/dist/Icon/iconFiles/Id.d.ts +3 -0
- package/dist/Icon/iconFiles/Id.js +5 -0
- package/dist/Icon/iconFiles/Id.js.map +1 -0
- package/dist/Icon/iconFiles/Inbox.d.ts +3 -0
- package/dist/Icon/iconFiles/Inbox.js +7 -0
- package/dist/Icon/iconFiles/Inbox.js.map +1 -0
- package/dist/Icon/iconFiles/Included.d.ts +3 -0
- package/dist/Icon/iconFiles/Included.js +6 -0
- package/dist/Icon/iconFiles/Included.js.map +1 -0
- package/dist/Icon/iconFiles/Info.d.ts +3 -0
- package/dist/Icon/iconFiles/Info.js +5 -0
- package/dist/Icon/iconFiles/Info.js.map +1 -0
- package/dist/Icon/iconFiles/Injury.d.ts +3 -0
- package/dist/Icon/iconFiles/Injury.js +19 -0
- package/dist/Icon/iconFiles/Injury.js.map +1 -0
- package/dist/Icon/iconFiles/Instagram.d.ts +3 -0
- package/dist/Icon/iconFiles/Instagram.js +5 -0
- package/dist/Icon/iconFiles/Instagram.js.map +1 -0
- package/dist/Icon/iconFiles/Intercom.d.ts +3 -0
- package/dist/Icon/iconFiles/Intercom.js +5 -0
- package/dist/Icon/iconFiles/Intercom.js.map +1 -0
- package/dist/Icon/iconFiles/Intercom2.d.ts +3 -0
- package/dist/Icon/iconFiles/Intercom2.js +5 -0
- package/dist/Icon/iconFiles/Intercom2.js.map +1 -0
- package/dist/Icon/iconFiles/IosStoreBadge.d.ts +3 -0
- package/dist/Icon/iconFiles/IosStoreBadge.js +18 -0
- package/dist/Icon/iconFiles/IosStoreBadge.js.map +1 -0
- package/dist/Icon/iconFiles/Iphone.d.ts +3 -0
- package/dist/Icon/iconFiles/Iphone.js +5 -0
- package/dist/Icon/iconFiles/Iphone.js.map +1 -0
- package/dist/Icon/iconFiles/Jewellery.d.ts +3 -0
- package/dist/Icon/iconFiles/Jewellery.js +5 -0
- package/dist/Icon/iconFiles/Jewellery.js.map +1 -0
- package/dist/Icon/iconFiles/Key.d.ts +3 -0
- package/dist/Icon/iconFiles/Key.js +9 -0
- package/dist/Icon/iconFiles/Key.js.map +1 -0
- package/dist/Icon/iconFiles/Laptop.d.ts +3 -0
- package/dist/Icon/iconFiles/Laptop.js +5 -0
- package/dist/Icon/iconFiles/Laptop.js.map +1 -0
- package/dist/Icon/iconFiles/Leaks.d.ts +3 -0
- package/dist/Icon/iconFiles/Leaks.js +5 -0
- package/dist/Icon/iconFiles/Leaks.js.map +1 -0
- package/dist/Icon/iconFiles/Lightbulb.d.ts +3 -0
- package/dist/Icon/iconFiles/Lightbulb.js +6 -0
- package/dist/Icon/iconFiles/Lightbulb.js.map +1 -0
- package/dist/Icon/iconFiles/Link.d.ts +3 -0
- package/dist/Icon/iconFiles/Link.js +5 -0
- package/dist/Icon/iconFiles/Link.js.map +1 -0
- package/dist/Icon/iconFiles/Linkedin.d.ts +3 -0
- package/dist/Icon/iconFiles/Linkedin.js +5 -0
- package/dist/Icon/iconFiles/Linkedin.js.map +1 -0
- package/dist/Icon/iconFiles/LiveChat.d.ts +3 -0
- package/dist/Icon/iconFiles/LiveChat.js +8 -0
- package/dist/Icon/iconFiles/LiveChat.js.map +1 -0
- package/dist/Icon/iconFiles/LiveChat2.d.ts +3 -0
- package/dist/Icon/iconFiles/LiveChat2.js +7 -0
- package/dist/Icon/iconFiles/LiveChat2.js.map +1 -0
- package/dist/Icon/iconFiles/Location.d.ts +3 -0
- package/dist/Icon/iconFiles/Location.js +5 -0
- package/dist/Icon/iconFiles/Location.js.map +1 -0
- package/dist/Icon/iconFiles/LogOut.d.ts +3 -0
- package/dist/Icon/iconFiles/LogOut.js +6 -0
- package/dist/Icon/iconFiles/LogOut.js.map +1 -0
- package/dist/Icon/iconFiles/ManageDrivers.d.ts +3 -0
- package/dist/Icon/iconFiles/ManageDrivers.js +6 -0
- package/dist/Icon/iconFiles/ManageDrivers.js.map +1 -0
- package/dist/Icon/iconFiles/ManagePolicy.d.ts +3 -0
- package/dist/Icon/iconFiles/ManagePolicy.js +6 -0
- package/dist/Icon/iconFiles/ManagePolicy.js.map +1 -0
- package/dist/Icon/iconFiles/Marshmallow.d.ts +3 -0
- package/dist/Icon/iconFiles/Marshmallow.js +7 -0
- package/dist/Icon/iconFiles/Marshmallow.js.map +1 -0
- package/dist/Icon/iconFiles/Mastercard.d.ts +3 -0
- package/dist/Icon/iconFiles/Mastercard.js +9 -0
- package/dist/Icon/iconFiles/Mastercard.js.map +1 -0
- package/dist/Icon/iconFiles/Maximise.d.ts +3 -0
- package/dist/Icon/iconFiles/Maximise.js +9 -0
- package/dist/Icon/iconFiles/Maximise.js.map +1 -0
- package/dist/Icon/iconFiles/MaximiseWindow.d.ts +3 -0
- package/dist/Icon/iconFiles/MaximiseWindow.js +5 -0
- package/dist/Icon/iconFiles/MaximiseWindow.js.map +1 -0
- package/dist/Icon/iconFiles/Medical.d.ts +3 -0
- package/dist/Icon/iconFiles/Medical.js +5 -0
- package/dist/Icon/iconFiles/Medical.js.map +1 -0
- package/dist/Icon/iconFiles/Minimise.d.ts +3 -0
- package/dist/Icon/iconFiles/Minimise.js +5 -0
- package/dist/Icon/iconFiles/Minimise.js.map +1 -0
- package/dist/Icon/iconFiles/Minus.d.ts +3 -0
- package/dist/Icon/iconFiles/Minus.js +5 -0
- package/dist/Icon/iconFiles/Minus.js.map +1 -0
- package/dist/Icon/iconFiles/MinusCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/MinusCircle.js +5 -0
- package/dist/Icon/iconFiles/MinusCircle.js.map +1 -0
- package/dist/Icon/iconFiles/MoneyBag.d.ts +3 -0
- package/dist/Icon/iconFiles/MoneyBag.js +5 -0
- package/dist/Icon/iconFiles/MoneyBag.js.map +1 -0
- package/dist/Icon/iconFiles/MoneyHeart.d.ts +3 -0
- package/dist/Icon/iconFiles/MoneyHeart.js +9 -0
- package/dist/Icon/iconFiles/MoneyHeart.js.map +1 -0
- package/dist/Icon/iconFiles/MoreDots.d.ts +3 -0
- package/dist/Icon/iconFiles/MoreDots.js +8 -0
- package/dist/Icon/iconFiles/MoreDots.js.map +1 -0
- package/dist/Icon/iconFiles/Mulsanne.d.ts +3 -0
- package/dist/Icon/iconFiles/Mulsanne.js +6 -0
- package/dist/Icon/iconFiles/Mulsanne.js.map +1 -0
- package/dist/Icon/iconFiles/NewWindow.d.ts +3 -0
- package/dist/Icon/iconFiles/NewWindow.js +5 -0
- package/dist/Icon/iconFiles/NewWindow.js.map +1 -0
- package/dist/Icon/iconFiles/NoExcess.d.ts +3 -0
- package/dist/Icon/iconFiles/NoExcess.js +5 -0
- package/dist/Icon/iconFiles/NoExcess.js.map +1 -0
- package/dist/Icon/iconFiles/Notes.d.ts +3 -0
- package/dist/Icon/iconFiles/Notes.js +5 -0
- package/dist/Icon/iconFiles/Notes.js.map +1 -0
- package/dist/Icon/iconFiles/Notification.d.ts +3 -0
- package/dist/Icon/iconFiles/Notification.js +6 -0
- package/dist/Icon/iconFiles/Notification.js.map +1 -0
- package/dist/Icon/iconFiles/Onfido.d.ts +3 -0
- package/dist/Icon/iconFiles/Onfido.js +9 -0
- package/dist/Icon/iconFiles/Onfido.js.map +1 -0
- package/dist/Icon/iconFiles/OpenPanel.d.ts +3 -0
- package/dist/Icon/iconFiles/OpenPanel.js +5 -0
- package/dist/Icon/iconFiles/OpenPanel.js.map +1 -0
- package/dist/Icon/iconFiles/Other.d.ts +3 -0
- package/dist/Icon/iconFiles/Other.js +5 -0
- package/dist/Icon/iconFiles/Other.js.map +1 -0
- package/dist/Icon/iconFiles/OutOfHome.d.ts +3 -0
- package/dist/Icon/iconFiles/OutOfHome.js +5 -0
- package/dist/Icon/iconFiles/OutOfHome.js.map +1 -0
- package/dist/Icon/iconFiles/Padlock.d.ts +3 -0
- package/dist/Icon/iconFiles/Padlock.js +5 -0
- package/dist/Icon/iconFiles/Padlock.js.map +1 -0
- package/dist/Icon/iconFiles/PadlockOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/PadlockOutline.js +7 -0
- package/dist/Icon/iconFiles/PadlockOutline.js.map +1 -0
- package/dist/Icon/iconFiles/Paperclip.d.ts +3 -0
- package/dist/Icon/iconFiles/Paperclip.js +5 -0
- package/dist/Icon/iconFiles/Paperclip.js.map +1 -0
- package/dist/Icon/iconFiles/People.d.ts +3 -0
- package/dist/Icon/iconFiles/People.js +5 -0
- package/dist/Icon/iconFiles/People.js.map +1 -0
- package/dist/Icon/iconFiles/Person.d.ts +3 -0
- package/dist/Icon/iconFiles/Person.js +5 -0
- package/dist/Icon/iconFiles/Person.js.map +1 -0
- package/dist/Icon/iconFiles/PhoneFilled.d.ts +3 -0
- package/dist/Icon/iconFiles/PhoneFilled.js +5 -0
- package/dist/Icon/iconFiles/PhoneFilled.js.map +1 -0
- package/dist/Icon/iconFiles/PhoneOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/PhoneOutline.js +5 -0
- package/dist/Icon/iconFiles/PhoneOutline.js.map +1 -0
- package/dist/Icon/iconFiles/Photo.d.ts +3 -0
- package/dist/Icon/iconFiles/Photo.js +5 -0
- package/dist/Icon/iconFiles/Photo.js.map +1 -0
- package/dist/Icon/iconFiles/PinCode.d.ts +3 -0
- package/dist/Icon/iconFiles/PinCode.js +9 -0
- package/dist/Icon/iconFiles/PinCode.js.map +1 -0
- package/dist/Icon/iconFiles/Plus.d.ts +3 -0
- package/dist/Icon/iconFiles/Plus.js +5 -0
- package/dist/Icon/iconFiles/Plus.js.map +1 -0
- package/dist/Icon/iconFiles/PlusCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/PlusCircle.js +5 -0
- package/dist/Icon/iconFiles/PlusCircle.js.map +1 -0
- package/dist/Icon/iconFiles/Policy.d.ts +3 -0
- package/dist/Icon/iconFiles/Policy.js +5 -0
- package/dist/Icon/iconFiles/Policy.js.map +1 -0
- package/dist/Icon/iconFiles/PolicyDetails.d.ts +3 -0
- package/dist/Icon/iconFiles/PolicyDetails.js +15 -0
- package/dist/Icon/iconFiles/PolicyDetails.js.map +1 -0
- package/dist/Icon/iconFiles/PolicyDoc.d.ts +3 -0
- package/dist/Icon/iconFiles/PolicyDoc.js +7 -0
- package/dist/Icon/iconFiles/PolicyDoc.js.map +1 -0
- package/dist/Icon/iconFiles/PolicyDocs.d.ts +3 -0
- package/dist/Icon/iconFiles/PolicyDocs.js +9 -0
- package/dist/Icon/iconFiles/PolicyDocs.js.map +1 -0
- package/dist/Icon/iconFiles/PoundBold.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundBold.js +5 -0
- package/dist/Icon/iconFiles/PoundBold.js.map +1 -0
- package/dist/Icon/iconFiles/PoundFilledCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundFilledCircle.js +6 -0
- package/dist/Icon/iconFiles/PoundFilledCircle.js.map +1 -0
- package/dist/Icon/iconFiles/PoundMedium.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundMedium.js +5 -0
- package/dist/Icon/iconFiles/PoundMedium.js.map +1 -0
- package/dist/Icon/iconFiles/PoundOutline.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundOutline.js +7 -0
- package/dist/Icon/iconFiles/PoundOutline.js.map +1 -0
- package/dist/Icon/iconFiles/PoundRegular.d.ts +3 -0
- package/dist/Icon/iconFiles/PoundRegular.js +5 -0
- package/dist/Icon/iconFiles/PoundRegular.js.map +1 -0
- package/dist/Icon/iconFiles/Premfina.d.ts +3 -0
- package/dist/Icon/iconFiles/Premfina.js +7 -0
- package/dist/Icon/iconFiles/Premfina.js.map +1 -0
- package/dist/Icon/iconFiles/Profile.d.ts +3 -0
- package/dist/Icon/iconFiles/Profile.js +5 -0
- package/dist/Icon/iconFiles/Profile.js.map +1 -0
- package/dist/Icon/iconFiles/Progress.d.ts +2 -0
- package/dist/Icon/iconFiles/Progress.js +5 -0
- package/dist/Icon/iconFiles/Progress.js.map +1 -0
- package/dist/Icon/iconFiles/Prohibited.d.ts +3 -0
- package/dist/Icon/iconFiles/Prohibited.js +5 -0
- package/dist/Icon/iconFiles/Prohibited.js.map +1 -0
- package/dist/Icon/iconFiles/Property.d.ts +3 -0
- package/dist/Icon/iconFiles/Property.js +9 -0
- package/dist/Icon/iconFiles/Property.js.map +1 -0
- package/dist/Icon/iconFiles/QuestionHelp.d.ts +3 -0
- package/dist/Icon/iconFiles/QuestionHelp.js +7 -0
- package/dist/Icon/iconFiles/QuestionHelp.js.map +1 -0
- package/dist/Icon/iconFiles/Rac.d.ts +3 -0
- package/dist/Icon/iconFiles/Rac.js +9 -0
- package/dist/Icon/iconFiles/Rac.js.map +1 -0
- package/dist/Icon/iconFiles/Ravelin.d.ts +3 -0
- package/dist/Icon/iconFiles/Ravelin.js +5 -0
- package/dist/Icon/iconFiles/Ravelin.js.map +1 -0
- package/dist/Icon/iconFiles/ReferAFriend.d.ts +3 -0
- package/dist/Icon/iconFiles/ReferAFriend.js +8 -0
- package/dist/Icon/iconFiles/ReferAFriend.js.map +1 -0
- package/dist/Icon/iconFiles/Refund.d.ts +3 -0
- package/dist/Icon/iconFiles/Refund.js +8 -0
- package/dist/Icon/iconFiles/Refund.js.map +1 -0
- package/dist/Icon/iconFiles/RegPlate.d.ts +3 -0
- package/dist/Icon/iconFiles/RegPlate.js +8 -0
- package/dist/Icon/iconFiles/RegPlate.js.map +1 -0
- package/dist/Icon/iconFiles/Renewal.d.ts +3 -0
- package/dist/Icon/iconFiles/Renewal.js +10 -0
- package/dist/Icon/iconFiles/Renewal.js.map +1 -0
- package/dist/Icon/iconFiles/RenewalLine.d.ts +3 -0
- package/dist/Icon/iconFiles/RenewalLine.js +5 -0
- package/dist/Icon/iconFiles/RenewalLine.js.map +1 -0
- package/dist/Icon/iconFiles/RepeatCharge.d.ts +3 -0
- package/dist/Icon/iconFiles/RepeatCharge.js +9 -0
- package/dist/Icon/iconFiles/RepeatCharge.js.map +1 -0
- package/dist/Icon/iconFiles/Reply.d.ts +3 -0
- package/dist/Icon/iconFiles/Reply.js +7 -0
- package/dist/Icon/iconFiles/Reply.js.map +1 -0
- package/dist/Icon/iconFiles/Return.d.ts +3 -0
- package/dist/Icon/iconFiles/Return.js +5 -0
- package/dist/Icon/iconFiles/Return.js.map +1 -0
- package/dist/Icon/iconFiles/ScheduleQuote.d.ts +3 -0
- package/dist/Icon/iconFiles/ScheduleQuote.js +9 -0
- package/dist/Icon/iconFiles/ScheduleQuote.js.map +1 -0
- package/dist/Icon/iconFiles/Search.d.ts +3 -0
- package/dist/Icon/iconFiles/Search.js +5 -0
- package/dist/Icon/iconFiles/Search.js.map +1 -0
- package/dist/Icon/iconFiles/Security.d.ts +3 -0
- package/dist/Icon/iconFiles/Security.js +5 -0
- package/dist/Icon/iconFiles/Security.js.map +1 -0
- package/dist/Icon/iconFiles/SendMessage.d.ts +3 -0
- package/dist/Icon/iconFiles/SendMessage.js +9 -0
- package/dist/Icon/iconFiles/SendMessage.js.map +1 -0
- package/dist/Icon/iconFiles/Settings.d.ts +3 -0
- package/dist/Icon/iconFiles/Settings.js +7 -0
- package/dist/Icon/iconFiles/Settings.js.map +1 -0
- package/dist/Icon/iconFiles/Shield.d.ts +3 -0
- package/dist/Icon/iconFiles/Shield.js +5 -0
- package/dist/Icon/iconFiles/Shield.js.map +1 -0
- package/dist/Icon/iconFiles/ShieldCheck.d.ts +3 -0
- package/dist/Icon/iconFiles/ShieldCheck.js +7 -0
- package/dist/Icon/iconFiles/ShieldCheck.js.map +1 -0
- package/dist/Icon/iconFiles/Shopping.d.ts +3 -0
- package/dist/Icon/iconFiles/Shopping.js +6 -0
- package/dist/Icon/iconFiles/Shopping.js.map +1 -0
- package/dist/Icon/iconFiles/Sofa.d.ts +3 -0
- package/dist/Icon/iconFiles/Sofa.js +5 -0
- package/dist/Icon/iconFiles/Sofa.js.map +1 -0
- package/dist/Icon/iconFiles/Stack.d.ts +3 -0
- package/dist/Icon/iconFiles/Stack.js +9 -0
- package/dist/Icon/iconFiles/Stack.js.map +1 -0
- package/dist/Icon/iconFiles/Storm.d.ts +3 -0
- package/dist/Icon/iconFiles/Storm.js +5 -0
- package/dist/Icon/iconFiles/Storm.js.map +1 -0
- package/dist/Icon/iconFiles/Stripe.d.ts +3 -0
- package/dist/Icon/iconFiles/Stripe.js +5 -0
- package/dist/Icon/iconFiles/Stripe.js.map +1 -0
- package/dist/Icon/iconFiles/Subsidence.d.ts +3 -0
- package/dist/Icon/iconFiles/Subsidence.js +7 -0
- package/dist/Icon/iconFiles/Subsidence.js.map +1 -0
- package/dist/Icon/iconFiles/Theft.d.ts +3 -0
- package/dist/Icon/iconFiles/Theft.js +5 -0
- package/dist/Icon/iconFiles/Theft.js.map +1 -0
- package/dist/Icon/iconFiles/ThumbsDown.d.ts +3 -0
- package/dist/Icon/iconFiles/ThumbsDown.js +7 -0
- package/dist/Icon/iconFiles/ThumbsDown.js.map +1 -0
- package/dist/Icon/iconFiles/ThumbsUp.d.ts +3 -0
- package/dist/Icon/iconFiles/ThumbsUp.js +7 -0
- package/dist/Icon/iconFiles/ThumbsUp.js.map +1 -0
- package/dist/Icon/iconFiles/Tick.d.ts +3 -0
- package/dist/Icon/iconFiles/Tick.js +5 -0
- package/dist/Icon/iconFiles/Tick.js.map +1 -0
- package/dist/Icon/iconFiles/TowTruck.d.ts +3 -0
- package/dist/Icon/iconFiles/TowTruck.js +5 -0
- package/dist/Icon/iconFiles/TowTruck.js.map +1 -0
- package/dist/Icon/iconFiles/TraceAndAccess.d.ts +3 -0
- package/dist/Icon/iconFiles/TraceAndAccess.js +5 -0
- package/dist/Icon/iconFiles/TraceAndAccess.js.map +1 -0
- package/dist/Icon/iconFiles/Training.d.ts +3 -0
- package/dist/Icon/iconFiles/Training.js +5 -0
- package/dist/Icon/iconFiles/Training.js.map +1 -0
- package/dist/Icon/iconFiles/Trash.d.ts +3 -0
- package/dist/Icon/iconFiles/Trash.js +5 -0
- package/dist/Icon/iconFiles/Trash.js.map +1 -0
- package/dist/Icon/iconFiles/Twitter.d.ts +3 -0
- package/dist/Icon/iconFiles/Twitter.js +5 -0
- package/dist/Icon/iconFiles/Twitter.js.map +1 -0
- package/dist/Icon/iconFiles/UpDown.d.ts +3 -0
- package/dist/Icon/iconFiles/UpDown.js +6 -0
- package/dist/Icon/iconFiles/UpDown.js.map +1 -0
- package/dist/Icon/iconFiles/Upload.d.ts +3 -0
- package/dist/Icon/iconFiles/Upload.js +5 -0
- package/dist/Icon/iconFiles/Upload.js.map +1 -0
- package/dist/Icon/iconFiles/UploadDocuments.d.ts +3 -0
- package/dist/Icon/iconFiles/UploadDocuments.js +10 -0
- package/dist/Icon/iconFiles/UploadDocuments.js.map +1 -0
- package/dist/Icon/iconFiles/UploadEmail.d.ts +3 -0
- package/dist/Icon/iconFiles/UploadEmail.js +5 -0
- package/dist/Icon/iconFiles/UploadEmail.js.map +1 -0
- package/dist/Icon/iconFiles/Vandalism.d.ts +3 -0
- package/dist/Icon/iconFiles/Vandalism.js +5 -0
- package/dist/Icon/iconFiles/Vandalism.js.map +1 -0
- package/dist/Icon/iconFiles/Village.d.ts +3 -0
- package/dist/Icon/iconFiles/Village.js +5 -0
- package/dist/Icon/iconFiles/Village.js.map +1 -0
- package/dist/Icon/iconFiles/Visa.d.ts +3 -0
- package/dist/Icon/iconFiles/Visa.js +9 -0
- package/dist/Icon/iconFiles/Visa.js.map +1 -0
- package/dist/Icon/iconFiles/Warning.d.ts +3 -0
- package/dist/Icon/iconFiles/Warning.js +5 -0
- package/dist/Icon/iconFiles/Warning.js.map +1 -0
- package/dist/Icon/iconFiles/WarningCircle.d.ts +3 -0
- package/dist/Icon/iconFiles/WarningCircle.js +6 -0
- package/dist/Icon/iconFiles/WarningCircle.js.map +1 -0
- package/dist/Icon/iconFiles/Watch.d.ts +3 -0
- package/dist/Icon/iconFiles/Watch.js +5 -0
- package/dist/Icon/iconFiles/Watch.js.map +1 -0
- package/dist/Icon/iconFiles/Wave.d.ts +3 -0
- package/dist/Icon/iconFiles/Wave.js +5 -0
- package/dist/Icon/iconFiles/Wave.js.map +1 -0
- package/dist/Icon/iconFiles/Wellbeing.d.ts +3 -0
- package/dist/Icon/iconFiles/Wellbeing.js +5 -0
- package/dist/Icon/iconFiles/Wellbeing.js.map +1 -0
- package/dist/Icon/iconFiles/WheelFlat.d.ts +3 -0
- package/dist/Icon/iconFiles/WheelFlat.js +9 -0
- package/dist/Icon/iconFiles/WheelFlat.js.map +1 -0
- package/dist/Icon/iconFiles/Windscreen.d.ts +3 -0
- package/dist/Icon/iconFiles/Windscreen.js +5 -0
- package/dist/Icon/iconFiles/Windscreen.js.map +1 -0
- package/dist/Icon/iconFiles/WindscreenRepair.d.ts +3 -0
- package/dist/Icon/iconFiles/WindscreenRepair.js +5 -0
- package/dist/Icon/iconFiles/WindscreenRepair.js.map +1 -0
- package/dist/Icon/iconFiles/WindscreenReplacement.d.ts +3 -0
- package/dist/Icon/iconFiles/WindscreenReplacement.js +5 -0
- package/dist/Icon/iconFiles/WindscreenReplacement.js.map +1 -0
- package/dist/Icon/iconsList.d.ts +227 -0
- package/dist/Icon/iconsList.js +438 -0
- package/dist/Icon/iconsList.js.map +1 -0
- package/dist/Icon/index.d.ts +1 -0
- package/dist/Icon/index.js +2 -0
- package/dist/Icon/index.js.map +1 -0
- package/dist/IconStrict/IconStrict.d.ts +22 -0
- package/dist/IconStrict/IconStrict.js +53 -0
- package/dist/IconStrict/IconStrict.js.map +1 -0
- package/dist/IconStrict/index.d.ts +1 -0
- package/dist/IconStrict/index.js +2 -0
- package/dist/IconStrict/index.js.map +1 -0
- package/dist/IconWrapper/IconWrapper.d.ts +18 -0
- package/dist/IconWrapper/IconWrapper.js +24 -0
- package/dist/IconWrapper/IconWrapper.js.map +1 -0
- package/dist/IconWrapper/index.d.ts +1 -0
- package/dist/IconWrapper/index.js +2 -0
- package/dist/IconWrapper/index.js.map +1 -0
- package/dist/LabelledText/LabelledText.d.ts +8 -0
- package/dist/LabelledText/LabelledText.js +16 -0
- package/dist/LabelledText/LabelledText.js.map +1 -0
- package/dist/LabelledText/index.d.ts +1 -0
- package/dist/LabelledText/index.js +2 -0
- package/dist/LabelledText/index.js.map +1 -0
- package/dist/Link/Link.d.ts +24 -0
- package/dist/Link/Link.js +77 -0
- package/dist/Link/Link.js.map +1 -0
- package/dist/Link/index.d.ts +1 -0
- package/dist/Link/index.js +2 -0
- package/dist/Link/index.js.map +1 -0
- package/dist/Loader/Loader.d.ts +7 -0
- package/dist/Loader/Loader.js +251 -0
- package/dist/Loader/Loader.js.map +1 -0
- package/dist/Loader/index.d.ts +1 -0
- package/dist/Loader/index.js +2 -0
- package/dist/Loader/index.js.map +1 -0
- package/dist/Logo/Logo.d.ts +35 -0
- package/dist/Logo/Logo.js +55 -0
- package/dist/Logo/Logo.js.map +1 -0
- package/dist/Logo/index.d.ts +1 -0
- package/dist/Logo/index.js +2 -0
- package/dist/Logo/index.js.map +1 -0
- package/dist/Modal/Modal.d.ts +32 -0
- package/dist/Modal/Modal.js +82 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.js +2 -0
- package/dist/Modal/index.js.map +1 -0
- package/dist/NumberInput/NumberInput.d.ts +25 -0
- package/dist/NumberInput/NumberInput.js +91 -0
- package/dist/NumberInput/NumberInput.js.map +1 -0
- package/dist/NumberInput/index.d.ts +1 -0
- package/dist/NumberInput/index.js +2 -0
- package/dist/NumberInput/index.js.map +1 -0
- package/dist/Pagination/Pagination.d.ts +13 -0
- package/dist/Pagination/Pagination.js +139 -0
- package/dist/Pagination/Pagination.js.map +1 -0
- package/dist/Pagination/index.d.ts +1 -0
- package/dist/Pagination/index.js +2 -0
- package/dist/Pagination/index.js.map +1 -0
- package/dist/RadioGroup/RadioElement.d.ts +12 -0
- package/dist/RadioGroup/RadioElement.js +38 -0
- package/dist/RadioGroup/RadioElement.js.map +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +23 -0
- package/dist/RadioGroup/RadioGroup.js +44 -0
- package/dist/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/RadioGroup/RadioItem.d.ts +20 -0
- package/dist/RadioGroup/RadioItem.js +98 -0
- package/dist/RadioGroup/RadioItem.js.map +1 -0
- package/dist/RadioGroup/constants.d.ts +1 -0
- package/dist/RadioGroup/constants.js +2 -0
- package/dist/RadioGroup/constants.js.map +1 -0
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/RadioGroup/index.js +2 -0
- package/dist/RadioGroup/index.js.map +1 -0
- package/dist/RadioGroup/types.d.ts +3 -0
- package/dist/RadioGroup/types.js +2 -0
- package/dist/RadioGroup/types.js.map +1 -0
- package/dist/RichText/RichText.d.ts +6 -0
- package/dist/RichText/RichText.js +35 -0
- package/dist/RichText/RichText.js.map +1 -0
- package/dist/RichText/index.d.ts +1 -0
- package/dist/RichText/index.js +2 -0
- package/dist/RichText/index.js.map +1 -0
- package/dist/RichTextEditor/RichTextEditor.d.ts +10 -0
- package/dist/RichTextEditor/RichTextEditor.js +88 -0
- package/dist/RichTextEditor/RichTextEditor.js.map +1 -0
- package/dist/RichTextEditor/index.d.ts +1 -0
- package/dist/RichTextEditor/index.js +2 -0
- package/dist/RichTextEditor/index.js.map +1 -0
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.js +28 -0
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.d.ts +4 -0
- package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.js +21 -0
- package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.js.map +1 -0
- package/dist/RichTextEditor/plugins/EditorUpdatePlugin.d.ts +4 -0
- package/dist/RichTextEditor/plugins/EditorUpdatePlugin.js +18 -0
- package/dist/RichTextEditor/plugins/EditorUpdatePlugin.js.map +1 -0
- package/dist/RichTextEditor/plugins/ToolbarPlugin.d.ts +2 -0
- package/dist/RichTextEditor/plugins/ToolbarPlugin.js +227 -0
- package/dist/RichTextEditor/plugins/ToolbarPlugin.js.map +1 -0
- package/dist/RichTextEditor/plugins/index.d.ts +1 -0
- package/dist/RichTextEditor/plugins/index.js +2 -0
- package/dist/RichTextEditor/plugins/index.js.map +1 -0
- package/dist/RichTextEditor/utils.d.ts +2 -0
- package/dist/RichTextEditor/utils.js +15 -0
- package/dist/RichTextEditor/utils.js.map +1 -0
- package/dist/Row/Row.d.ts +18 -0
- package/dist/Row/Row.js +50 -0
- package/dist/Row/Row.js.map +1 -0
- package/dist/Row/index.d.ts +1 -0
- package/dist/Row/index.js +2 -0
- package/dist/Row/index.js.map +1 -0
- package/dist/SearchInput/SearchInput.d.ts +50 -0
- package/dist/SearchInput/SearchInput.js +165 -0
- package/dist/SearchInput/SearchInput.js.map +1 -0
- package/dist/SearchInput/components/EmptyResults.d.ts +8 -0
- package/dist/SearchInput/components/EmptyResults.js +11 -0
- package/dist/SearchInput/components/EmptyResults.js.map +1 -0
- package/dist/SearchInput/components/SearchOptions.d.ts +23 -0
- package/dist/SearchInput/components/SearchOptions.js +96 -0
- package/dist/SearchInput/components/SearchOptions.js.map +1 -0
- package/dist/SearchInput/index.d.ts +1 -0
- package/dist/SearchInput/index.js +2 -0
- package/dist/SearchInput/index.js.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts +35 -0
- package/dist/SegmentedControl/SegmentedControl.js +59 -0
- package/dist/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/SegmentedControl/ToggleButton.d.ts +11 -0
- package/dist/SegmentedControl/ToggleButton.js +32 -0
- package/dist/SegmentedControl/ToggleButton.js.map +1 -0
- package/dist/SegmentedControl/index.d.ts +1 -0
- package/dist/SegmentedControl/index.js +2 -0
- package/dist/SegmentedControl/index.js.map +1 -0
- package/dist/SliderInput/SliderInput.d.ts +9 -0
- package/dist/SliderInput/SliderInput.js +56 -0
- package/dist/SliderInput/SliderInput.js.map +1 -0
- package/dist/SliderInput/index.d.ts +1 -0
- package/dist/SliderInput/index.js +2 -0
- package/dist/SliderInput/index.js.map +1 -0
- package/dist/Snackbar/SnackbarContainer.d.ts +7 -0
- package/dist/Snackbar/SnackbarContainer.js +45 -0
- package/dist/Snackbar/SnackbarContainer.js.map +1 -0
- package/dist/Snackbar/SnackbarItem.d.ts +7 -0
- package/dist/Snackbar/SnackbarItem.js +26 -0
- package/dist/Snackbar/SnackbarItem.js.map +1 -0
- package/dist/Snackbar/hooks.d.ts +3 -0
- package/dist/Snackbar/hooks.js +6 -0
- package/dist/Snackbar/hooks.js.map +1 -0
- package/dist/Snackbar/index.d.ts +2 -0
- package/dist/Snackbar/index.js +3 -0
- package/dist/Snackbar/index.js.map +1 -0
- package/dist/Snackbar/types.d.ts +13 -0
- package/dist/Snackbar/types.js +2 -0
- package/dist/Snackbar/types.js.map +1 -0
- package/dist/SupportMessage/SupportMessage.d.ts +16 -0
- package/dist/SupportMessage/SupportMessage.js +86 -0
- package/dist/SupportMessage/SupportMessage.js.map +1 -0
- package/dist/SupportMessage/index.d.ts +1 -0
- package/dist/SupportMessage/index.js +2 -0
- package/dist/SupportMessage/index.js.map +1 -0
- package/dist/Table/Table.d.ts +16 -0
- package/dist/Table/Table.js +31 -0
- package/dist/Table/Table.js.map +1 -0
- package/dist/Table/components/RowActions.d.ts +3 -0
- package/dist/Table/components/RowActions.js +59 -0
- package/dist/Table/components/RowActions.js.map +1 -0
- package/dist/Table/components/TableHeader.d.ts +3 -0
- package/dist/Table/components/TableHeader.js +8 -0
- package/dist/Table/components/TableHeader.js.map +1 -0
- package/dist/Table/components/TableRow.d.ts +3 -0
- package/dist/Table/components/TableRow.js +71 -0
- package/dist/Table/components/TableRow.js.map +1 -0
- package/dist/Table/components/commonComponents.d.ts +6 -0
- package/dist/Table/components/commonComponents.js +138 -0
- package/dist/Table/components/commonComponents.js.map +1 -0
- package/dist/Table/helpers.d.ts +2 -0
- package/dist/Table/helpers.js +12 -0
- package/dist/Table/helpers.js.map +1 -0
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +3 -0
- package/dist/Table/index.js.map +1 -0
- package/dist/Table/types.d.ts +114 -0
- package/dist/Table/types.js +2 -0
- package/dist/Table/types.js.map +1 -0
- package/dist/Tag/Tag.d.ts +11 -0
- package/dist/Tag/Tag.js +28 -0
- package/dist/Tag/Tag.js.map +1 -0
- package/dist/Tag/index.d.ts +1 -0
- package/dist/Tag/index.js +2 -0
- package/dist/Tag/index.js.map +1 -0
- package/dist/Text/Text.d.ts +21 -0
- package/dist/Text/Text.js +152 -0
- package/dist/Text/Text.js.map +1 -0
- package/dist/Text/fontMapping.d.ts +2 -0
- package/dist/Text/fontMapping.js +87 -0
- package/dist/Text/fontMapping.js.map +1 -0
- package/dist/Text/index.d.ts +1 -0
- package/dist/Text/index.js +2 -0
- package/dist/Text/index.js.map +1 -0
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.d.ts +36 -0
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.js +48 -0
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.js.map +1 -0
- package/dist/TextDateOfBirthInput/index.d.ts +1 -0
- package/dist/TextDateOfBirthInput/index.js +2 -0
- package/dist/TextDateOfBirthInput/index.js.map +1 -0
- package/dist/TextInput/TextInput.d.ts +39 -0
- package/dist/TextInput/TextInput.js +30 -0
- package/dist/TextInput/TextInput.js.map +1 -0
- package/dist/TextInput/index.d.ts +1 -0
- package/dist/TextInput/index.js +2 -0
- package/dist/TextInput/index.js.map +1 -0
- package/dist/Textarea/Textarea.d.ts +27 -0
- package/dist/Textarea/Textarea.js +37 -0
- package/dist/Textarea/Textarea.js.map +1 -0
- package/dist/Textarea/index.d.ts +1 -0
- package/dist/Textarea/index.js +2 -0
- package/dist/Textarea/index.js.map +1 -0
- package/dist/Toggle/Toggle.d.ts +12 -0
- package/dist/Toggle/Toggle.js +74 -0
- package/dist/Toggle/Toggle.js.map +1 -0
- package/dist/Toggle/index.d.ts +1 -0
- package/dist/Toggle/index.js +2 -0
- package/dist/Toggle/index.js.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +33 -0
- package/dist/Tooltip/Tooltip.js +86 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/Tooltip/index.d.ts +1 -0
- package/dist/Tooltip/index.js +2 -0
- package/dist/Tooltip/index.js.map +1 -0
- package/dist/fields/Field/Field.d.ts +7 -0
- package/dist/fields/Field/Field.js +6 -0
- package/dist/fields/Field/Field.js.map +1 -0
- package/dist/fields/Field/index.d.ts +1 -0
- package/dist/fields/Field/index.js +2 -0
- package/dist/fields/Field/index.js.map +1 -0
- package/dist/fields/Fieldset/Fieldset.d.ts +5 -0
- package/dist/fields/Fieldset/Fieldset.js +6 -0
- package/dist/fields/Fieldset/Fieldset.js.map +1 -0
- package/dist/fields/Fieldset/index.d.ts +1 -0
- package/dist/fields/Fieldset/index.js +2 -0
- package/dist/fields/Fieldset/index.js.map +1 -0
- package/dist/fields/commonFieldTypes.d.ts +19 -0
- package/dist/fields/commonFieldTypes.js +2 -0
- package/dist/fields/commonFieldTypes.js.map +1 -0
- package/dist/fields/components/CommonInput.d.ts +30 -0
- package/dist/fields/components/CommonInput.js +81 -0
- package/dist/fields/components/CommonInput.js.map +1 -0
- package/dist/fields/components/InternalField.d.ts +10 -0
- package/dist/fields/components/InternalField.js +54 -0
- package/dist/fields/components/InternalField.js.map +1 -0
- package/dist/fields/components/Placeholder.d.ts +2 -0
- package/dist/fields/components/Placeholder.js +25 -0
- package/dist/fields/components/Placeholder.js.map +1 -0
- package/dist/fontStyle.d.ts +1 -0
- package/dist/fontStyle.js +35 -0
- package/dist/fontStyle.js.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useBodyScrollLock/index.d.ts +4 -0
- package/dist/hooks/useBodyScrollLock/index.js +25 -0
- package/dist/hooks/useBodyScrollLock/index.js.map +1 -0
- package/dist/hooks/useClickOutside/index.d.ts +6 -0
- package/dist/hooks/useClickOutside/index.js +24 -0
- package/dist/hooks/useClickOutside/index.js.map +1 -0
- package/dist/hooks/useEventListener/index.d.ts +8 -0
- package/dist/hooks/useEventListener/index.js +14 -0
- package/dist/hooks/useEventListener/index.js.map +1 -0
- package/dist/hooks/useScript/index.d.ts +4 -0
- package/dist/hooks/useScript/index.js +13 -0
- package/dist/hooks/useScript/index.js.map +1 -0
- package/dist/hooks/useTimeout/index.d.ts +1 -0
- package/dist/hooks/useTimeout/index.js +12 -0
- package/dist/hooks/useTimeout/index.js.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/theme.d.ts +98 -0
- package/dist/theme.js +62 -0
- package/dist/theme.js.map +1 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/date.d.ts +1 -0
- package/dist/utils/date.js +9 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.d.ts +11 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.js +29 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.js.map +1 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.utils.d.ts +18 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.utils.js +89 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.utils.js.map +1 -0
- package/dist/utils/dateOfBirth/schema.d.ts +11 -0
- package/dist/utils/dateOfBirth/schema.js +22 -0
- package/dist/utils/dateOfBirth/schema.js.map +1 -0
- package/dist/utils/debounce.d.ts +7 -0
- package/dist/utils/debounce.js +19 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/deprecated.d.ts +9 -0
- package/dist/utils/deprecated.js +30 -0
- package/dist/utils/deprecated.js.map +1 -0
- package/dist/utils/flex.d.ts +19 -0
- package/dist/utils/flex.js +32 -0
- package/dist/utils/flex.js.map +1 -0
- package/dist/utils/focusOutline.d.ts +4 -0
- package/dist/utils/focusOutline.js +17 -0
- package/dist/utils/focusOutline.js.map +1 -0
- package/dist/utils/id.d.ts +2 -0
- package/dist/utils/id.js +13 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/isReactElement.d.ts +2 -0
- package/dist/utils/isReactElement.js +5 -0
- package/dist/utils/isReactElement.js.map +1 -0
- package/dist/utils/measure.d.ts +13 -0
- package/dist/utils/measure.js +12 -0
- package/dist/utils/measure.js.map +1 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/noop.js +3 -0
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/responsiveProp.d.ts +10 -0
- package/dist/utils/responsiveProp.js +31 -0
- package/dist/utils/responsiveProp.js.map +1 -0
- package/dist/utils/space.d.ts +30 -0
- package/dist/utils/space.js +75 -0
- package/dist/utils/space.js.map +1 -0
- package/dist/utils/useControlledState.d.ts +5 -0
- package/dist/utils/useControlledState.js +13 -0
- package/dist/utils/useControlledState.js.map +1 -0
- package/dist/utils/utilTypes.d.ts +7 -0
- package/dist/utils/utilTypes.js +2 -0
- package/dist/utils/utilTypes.js.map +1 -0
- package/dist/utils/visuallyHidden.d.ts +5 -0
- package/dist/utils/visuallyHidden.js +14 -0
- package/dist/utils/visuallyHidden.js.map +1 -0
- package/package.json +2 -4
- package/dist/.gitkeep +0 -0
- 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,114 @@
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
2
|
+
import { ButtonProps } from '../Button/Button';
|
3
|
+
import { IconStrictProps } from '../IconStrict';
|
4
|
+
import { Color } from '../theme';
|
5
|
+
export type TableStylesProps = {
|
6
|
+
hasKeyline?: boolean;
|
7
|
+
fixedHeader?: boolean;
|
8
|
+
headerHeight?: string;
|
9
|
+
stripedColor?: Color;
|
10
|
+
stickyCell?: boolean;
|
11
|
+
headerColor?: Color;
|
12
|
+
rowColor?: Color;
|
13
|
+
rowBorderColor?: Color;
|
14
|
+
rowActionsBgColor?: Color;
|
15
|
+
minWidth?: string;
|
16
|
+
maxWidth?: string;
|
17
|
+
noWrapContent?: boolean;
|
18
|
+
truncateContent?: boolean;
|
19
|
+
rowPadding?: string;
|
20
|
+
columnPadding?: string;
|
21
|
+
hideOverflow?: boolean;
|
22
|
+
clickableRow?: boolean;
|
23
|
+
};
|
24
|
+
export type Primitive = string | number | boolean | bigint;
|
25
|
+
export type BaseRowAction<T> = {
|
26
|
+
onClick: (rowData: T) => void;
|
27
|
+
showCondition?: (rowData: T) => boolean;
|
28
|
+
};
|
29
|
+
export type RowAction<T> = RowActionButtonDefault<T> | RowActionElementOverride<T>;
|
30
|
+
export type RowActionButtonDefault<T> = {
|
31
|
+
iconButton?: Pick<IconStrictProps, 'size' | 'render' | 'iconColor' | 'backgroundColor' | 'id' | 'title'> & {
|
32
|
+
tooltipText?: string;
|
33
|
+
};
|
34
|
+
genericButton?: Pick<ButtonProps, 'children' | 'loading' | 'disabled' | 'primary' | 'secondary' | 'fallbackStyle' | 'textBtn' | 'smallButton' | 'id'>;
|
35
|
+
} & BaseRowAction<T>;
|
36
|
+
export type RowActionElementOverride<T> = {
|
37
|
+
element: ReactElement<any>;
|
38
|
+
} & BaseRowAction<T>;
|
39
|
+
export type RowActions<T> = {
|
40
|
+
actions: RowAction<T>[];
|
41
|
+
minWidth?: string;
|
42
|
+
bgColor?: Color;
|
43
|
+
};
|
44
|
+
type RowCellRenderer<T> = (row: T, rowIndex: number, column: TableColumn<T>, id: string | number) => React.ReactNode;
|
45
|
+
export interface TableColumn<T> {
|
46
|
+
name?: string | number | React.ReactNode;
|
47
|
+
minWidth?: string;
|
48
|
+
maxWidth?: string;
|
49
|
+
noWrapContent?: boolean;
|
50
|
+
truncateContent?: boolean;
|
51
|
+
hideOverflow?: boolean;
|
52
|
+
cell?: RowCellRenderer<T>;
|
53
|
+
}
|
54
|
+
/** @template T - The type of data the table displays. */
|
55
|
+
interface CommonTableProps<T> {
|
56
|
+
/** Array of columns to display in the table. */
|
57
|
+
columns: TableColumn<T>[];
|
58
|
+
/** Sets the height of the header. */
|
59
|
+
headerHeight?: string;
|
60
|
+
/** If true, the table header will be fixed/sticky. */
|
61
|
+
fixedHeader?: boolean;
|
62
|
+
/** If true, the table header will have a key line. */
|
63
|
+
hasKeyline?: boolean;
|
64
|
+
/** If present, the table rows will have alternating colors. */
|
65
|
+
stripedColor?: Color;
|
66
|
+
/** A function to determine if a row is expandable. */
|
67
|
+
expandable?: (rowData: T) => boolean;
|
68
|
+
/** The color for the table header. */
|
69
|
+
headerColor?: Color;
|
70
|
+
/** The default color for each table row. */
|
71
|
+
rowColor?: Color;
|
72
|
+
/** The default color for each table row border. */
|
73
|
+
rowBorderColor?: Color;
|
74
|
+
/** A React element to show when a row is expanded. */
|
75
|
+
subTable?: {
|
76
|
+
table: (rowData: T) => ReactElement<any>;
|
77
|
+
showOnExpand?: (rowData: T) => boolean;
|
78
|
+
};
|
79
|
+
/** Settings for sub rows. */
|
80
|
+
subRows?: {
|
81
|
+
/** Function that returns a React element for the sub row. */
|
82
|
+
rows: (rowData: T) => ReactElement<any> | ReactElement<any>[];
|
83
|
+
/** If true, the sub rows will only be shown when the row is expanded. */
|
84
|
+
showOnExpand?: (rowData: T) => boolean;
|
85
|
+
};
|
86
|
+
/** Function to apply to a row, to make the entire row clickable, useful for navigation. */
|
87
|
+
clickableRow?: (rowData: T) => void;
|
88
|
+
/** Array of actions that can be performed on each row. */
|
89
|
+
rowActions?: RowActions<T>;
|
90
|
+
/** The Y padding for each row. */
|
91
|
+
rowPadding?: string;
|
92
|
+
/** The X padding for each row. */
|
93
|
+
columnPadding?: string;
|
94
|
+
/** Hides the table header. Table defaults to always showing the header. */
|
95
|
+
hideTableHeader?: boolean;
|
96
|
+
}
|
97
|
+
export interface TableProps<T> extends CommonTableProps<T> {
|
98
|
+
/** Array of data to be displayed in the table. */
|
99
|
+
data: T[];
|
100
|
+
/** The text to show when there is no available data to map through. */
|
101
|
+
noDataContent?: ReactNode;
|
102
|
+
}
|
103
|
+
export interface TableRowProps<T> extends CommonTableProps<T> {
|
104
|
+
rowData: T;
|
105
|
+
rowIndex: number;
|
106
|
+
showActions?: boolean;
|
107
|
+
}
|
108
|
+
export interface RowActionsProps<T> extends Pick<CommonTableProps<T>, 'expandable' | 'rowActions'> {
|
109
|
+
rowData: T;
|
110
|
+
toggleExpansion: () => void;
|
111
|
+
isExpanded?: boolean;
|
112
|
+
}
|
113
|
+
export type TableHeaderProps<T> = CommonTableProps<T>;
|
114
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Table/types.ts"],"names":[],"mappings":"","sourcesContent":["import React, { ReactElement, ReactNode } from 'react'\nimport { ButtonProps } from '../Button/Button'\nimport { IconStrictProps } from '../IconStrict'\nimport { Color } from '../theme'\n\nexport type TableStylesProps = {\n hasKeyline?: boolean\n fixedHeader?: boolean\n headerHeight?: string\n stripedColor?: Color\n stickyCell?: boolean\n headerColor?: Color\n rowColor?: Color\n rowBorderColor?: Color\n rowActionsBgColor?: Color\n minWidth?: string\n maxWidth?: string\n noWrapContent?: boolean\n truncateContent?: boolean\n rowPadding?: string\n columnPadding?: string\n hideOverflow?: boolean\n clickableRow?: boolean\n}\n\nexport type Primitive = string | number | boolean | bigint\n\nexport type BaseRowAction<T> = {\n onClick: (rowData: T) => void\n showCondition?: (rowData: T) => boolean\n}\n\nexport type RowAction<T> =\n | RowActionButtonDefault<T>\n | RowActionElementOverride<T>\n\nexport type RowActionButtonDefault<T> = {\n iconButton?: Pick<\n IconStrictProps,\n 'size' | 'render' | 'iconColor' | 'backgroundColor' | 'id' | 'title'\n > & { tooltipText?: string }\n genericButton?: Pick<\n ButtonProps,\n | 'children'\n | 'loading'\n | 'disabled'\n | 'primary'\n | 'secondary'\n | 'fallbackStyle'\n | 'textBtn'\n | 'smallButton'\n | 'id'\n >\n} & BaseRowAction<T>\n\nexport type RowActionElementOverride<T> = {\n element: ReactElement<any>\n} & BaseRowAction<T>\n\nexport type RowActions<T> = {\n actions: RowAction<T>[]\n minWidth?: string\n bgColor?: Color\n}\n\ntype RowCellRenderer<T> = (\n row: T,\n rowIndex: number,\n column: TableColumn<T>,\n id: string | number,\n) => React.ReactNode\n\nexport interface TableColumn<T> {\n name?: string | number | React.ReactNode\n minWidth?: string\n maxWidth?: string\n noWrapContent?: boolean\n truncateContent?: boolean\n hideOverflow?: boolean\n cell?: RowCellRenderer<T>\n}\n\n/** @template T - The type of data the table displays. */\ninterface CommonTableProps<T> {\n /** Array of columns to display in the table. */\n columns: TableColumn<T>[]\n /** Sets the height of the header. */\n headerHeight?: string\n /** If true, the table header will be fixed/sticky. */\n fixedHeader?: boolean\n /** If true, the table header will have a key line. */\n hasKeyline?: boolean\n /** If present, the table rows will have alternating colors. */\n stripedColor?: Color\n /** A function to determine if a row is expandable. */\n expandable?: (rowData: T) => boolean\n /** The color for the table header. */\n headerColor?: Color\n /** The default color for each table row. */\n rowColor?: Color\n /** The default color for each table row border. */\n rowBorderColor?: Color\n /** A React element to show when a row is expanded. */\n subTable?: {\n table: (rowData: T) => ReactElement<any>\n showOnExpand?: (rowData: T) => boolean\n }\n /** Settings for sub rows. */\n subRows?: {\n /** Function that returns a React element for the sub row. */\n rows: (rowData: T) => ReactElement<any> | ReactElement<any>[]\n /** If true, the sub rows will only be shown when the row is expanded. */\n showOnExpand?: (rowData: T) => boolean\n }\n /** Function to apply to a row, to make the entire row clickable, useful for navigation. */\n clickableRow?: (rowData: T) => void\n /** Array of actions that can be performed on each row. */\n rowActions?: RowActions<T>\n /** The Y padding for each row. */\n rowPadding?: string\n /** The X padding for each row. */\n columnPadding?: string\n /** Hides the table header. Table defaults to always showing the header. */\n hideTableHeader?: boolean\n}\n\nexport interface TableProps<T> extends CommonTableProps<T> {\n /** Array of data to be displayed in the table. */\n data: T[]\n /** The text to show when there is no available data to map through. */\n noDataContent?: ReactNode\n}\n\nexport interface TableRowProps<T> extends CommonTableProps<T> {\n rowData: T\n rowIndex: number\n showActions?: boolean\n}\n\nexport interface RowActionsProps<T>\n extends Pick<CommonTableProps<T>, 'expandable' | 'rowActions'> {\n rowData: T\n toggleExpansion: () => void\n isExpanded?: boolean\n}\n\nexport type TableHeaderProps<T> = CommonTableProps<T>\n"]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { MarginProps } from '../utils/space';
|
3
|
+
import { Color } from '../theme';
|
4
|
+
export type TagProps = {
|
5
|
+
label: string;
|
6
|
+
color: Color;
|
7
|
+
bgColor: Color;
|
8
|
+
borderColor?: Color;
|
9
|
+
className?: string;
|
10
|
+
} & MarginProps;
|
11
|
+
export declare const Tag: FC<TagProps>;
|
package/dist/Tag/Tag.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import styled from 'styled-components';
|
3
|
+
import { Box } from '../Box';
|
4
|
+
import { Text } from '../Text';
|
5
|
+
import { theme } from '../theme';
|
6
|
+
export const Tag = ({ label, color, borderColor, bgColor, className, ...marginProps }) => (React.createElement(Wrapper, { "$bgColor": bgColor, className: className, "$borderColor": borderColor, ...marginProps, alignContent: "center", justifyContent: "center" },
|
7
|
+
React.createElement(TagText, { tag: "span", typo: "label", color: color }, label)));
|
8
|
+
const Wrapper = styled(Box) `
|
9
|
+
background-color: ${({ $bgColor }) => $bgColor && theme.colors[$bgColor]};
|
10
|
+
border: ${({ $borderColor }) => $borderColor && `1px solid ${theme.colors[$borderColor]}`};
|
11
|
+
|
12
|
+
border-radius: 6px;
|
13
|
+
padding: 4px 8px;
|
14
|
+
|
15
|
+
height: 22px;
|
16
|
+
|
17
|
+
box-sizing: border-box;
|
18
|
+
display: inline-flex;
|
19
|
+
`;
|
20
|
+
const TagText = styled(Text) `
|
21
|
+
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
font-size: 10px;
|
24
|
+
font-weight: 500;
|
25
|
+
line-height: 12px;
|
26
|
+
text-transform: uppercase;
|
27
|
+
`;
|
28
|
+
//# sourceMappingURL=Tag.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../src/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAItC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAS,KAAK,EAAE,MAAM,UAAU,CAAA;AAUvC,MAAM,CAAC,MAAM,GAAG,GAAiB,CAAC,EAChC,KAAK,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,GAAG,WAAW,EACf,EAAE,EAAE,CAAC,CACJ,oBAAC,OAAO,gBACI,OAAO,EACjB,SAAS,EAAE,SAAS,kBACN,WAAW,KACrB,WAAW,EACf,YAAY,EAAC,QAAQ,EACrB,cAAc,EAAC,QAAQ;IAEvB,oBAAC,OAAO,IAAC,GAAG,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,KAAK,IAC1C,KAAK,CACE,CACF,CACX,CAAA;AAID,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAc;sBACnB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;YAC9D,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAC7B,YAAY,IAAI,aAAa,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;;;;;;;;;CAS5D,CAAA;AAED,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;;;CAO3B,CAAA","sourcesContent":["import React, { FC } from 'react'\nimport styled from 'styled-components'\nimport { MarginProps } from '../utils/space'\n\nimport { TransientProps } from 'utils/utilTypes'\nimport { Box } from '../Box'\nimport { Text } from '../Text'\nimport { Color, theme } from '../theme'\n\nexport type TagProps = {\n label: string\n color: Color\n bgColor: Color\n borderColor?: Color\n className?: string\n} & MarginProps\n\nexport const Tag: FC<TagProps> = ({\n label,\n color,\n borderColor,\n bgColor,\n className,\n ...marginProps\n}) => (\n <Wrapper\n $bgColor={bgColor}\n className={className}\n $borderColor={borderColor}\n {...marginProps}\n alignContent=\"center\"\n justifyContent=\"center\"\n >\n <TagText tag=\"span\" typo=\"label\" color={color}>\n {label}\n </TagText>\n </Wrapper>\n)\n\ntype WrapperProps = TransientProps<Pick<TagProps, 'bgColor' | 'borderColor'>>\n\nconst Wrapper = styled(Box)<WrapperProps>`\n background-color: ${({ $bgColor }) => $bgColor && theme.colors[$bgColor]};\n border: ${({ $borderColor }) =>\n $borderColor && `1px solid ${theme.colors[$borderColor]}`};\n\n border-radius: 6px;\n padding: 4px 8px;\n\n height: 22px;\n\n box-sizing: border-box;\n display: inline-flex;\n`\n\nconst TagText = styled(Text)`\n display: flex;\n align-items: center;\n font-size: 10px;\n font-weight: 500;\n line-height: 12px;\n text-transform: uppercase;\n`\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Tag } from './Tag';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA","sourcesContent":["export { Tag } from './Tag'\n"]}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { FC, LabelHTMLAttributes, ReactNode } from 'react';
|
2
|
+
import { Color } from '../theme';
|
3
|
+
import { MarginProps } from '../utils/space';
|
4
|
+
/**
|
5
|
+
* @deprecated Use only new Typo
|
6
|
+
*/
|
7
|
+
export type DeprecatedTypo = 'header-large' | 'header-medium' | 'header-small' | 'desc-heavy' | 'desc-medium' | 'desc-light' | 'desc-small' | 'base' | 'base-small' | 'base-xsmall' | 'label-large';
|
8
|
+
export type Typo = 'hero-alternate' | 'hero' | 'heading-alternate' | 'heading-large' | 'heading-medium' | 'heading-small' | 'headline-regular' | 'headline-small' | 'body-standfirst' | 'body-regular' | 'body-small' | 'caption' | 'label';
|
9
|
+
type Props = {
|
10
|
+
children: ReactNode;
|
11
|
+
tag?: any;
|
12
|
+
className?: string;
|
13
|
+
typo?: Typo | (string & Record<never, never>);
|
14
|
+
align?: string;
|
15
|
+
color?: Color;
|
16
|
+
cursor?: string;
|
17
|
+
title?: string;
|
18
|
+
} & MarginProps;
|
19
|
+
export type TextProps = Props & Omit<LabelHTMLAttributes<HTMLElement>, 'color'>;
|
20
|
+
export declare const Text: FC<TextProps>;
|
21
|
+
export {};
|
@@ -0,0 +1,152 @@
|
|
1
|
+
import React, { forwardRef } from 'react';
|
2
|
+
import styled, { css } from 'styled-components';
|
3
|
+
import { Box } from '../Box';
|
4
|
+
import { linkStyleOverride } from '../Link/Link';
|
5
|
+
import { theme } from '../theme';
|
6
|
+
import { fontStyleMapping } from './fontMapping';
|
7
|
+
export const Text = forwardRef(({ children, typo = 'body-regular', className = '', tag = 'p', align = 'left', color = 'liquorice', cursor = 'inherit', title = '', ...props }, ref) => (React.createElement(Container, { forwardedAs: tag, className: className, "$typo": typo, "$align": align, "$color": color, cursor: cursor, title: title, ...props, ref: ref }, children)));
|
8
|
+
Text.displayName = 'Text';
|
9
|
+
const isNewTypo = (value) => {
|
10
|
+
return Object.keys(fontStyleMapping).includes(value);
|
11
|
+
};
|
12
|
+
const Container = styled(Box)(({ $align, $color, $cursor, $typo }) => css `
|
13
|
+
/** TYPOGRAPHY STYLES */
|
14
|
+
|
15
|
+
${isNewTypo($typo) && fontStyleMapping[$typo]}
|
16
|
+
|
17
|
+
/** DEPRECATED TYPOGRAPHY STYLES */
|
18
|
+
${$typo === 'header-large' &&
|
19
|
+
css `
|
20
|
+
font-size: 24px;
|
21
|
+
line-height: 31px;
|
22
|
+
font-weight: 500;
|
23
|
+
|
24
|
+
@media (min-width: 768px) {
|
25
|
+
font-size: 42px;
|
26
|
+
line-height: 54px;
|
27
|
+
}
|
28
|
+
`}
|
29
|
+
|
30
|
+
${$typo === 'header-medium' &&
|
31
|
+
css `
|
32
|
+
font-size: 21px;
|
33
|
+
line-height: 27px;
|
34
|
+
font-weight: 500;
|
35
|
+
|
36
|
+
@media (min-width: 768px) {
|
37
|
+
font-size: 32px;
|
38
|
+
line-height: 41px;
|
39
|
+
}
|
40
|
+
`}
|
41
|
+
|
42
|
+
${$typo === 'header-small' &&
|
43
|
+
css `
|
44
|
+
font-size: 18px;
|
45
|
+
line-height: 23px;
|
46
|
+
font-weight: 500;
|
47
|
+
|
48
|
+
@media (min-width: 768px) {
|
49
|
+
font-size: 21px;
|
50
|
+
line-height: 27px;
|
51
|
+
}
|
52
|
+
`}
|
53
|
+
|
54
|
+
${$typo === 'desc-heavy' &&
|
55
|
+
css `
|
56
|
+
font-size: 14px;
|
57
|
+
line-height: 20px;
|
58
|
+
font-weight: 700;
|
59
|
+
|
60
|
+
@media (min-width: 768px) {
|
61
|
+
font-size: 16px;
|
62
|
+
line-height: 23px;
|
63
|
+
}
|
64
|
+
`}
|
65
|
+
|
66
|
+
${$typo === 'desc-medium' &&
|
67
|
+
css `
|
68
|
+
font-size: 14px;
|
69
|
+
line-height: 20px;
|
70
|
+
font-weight: 500;
|
71
|
+
|
72
|
+
@media (min-width: 768px) {
|
73
|
+
font-size: 16px;
|
74
|
+
line-height: 23px;
|
75
|
+
}
|
76
|
+
`}
|
77
|
+
|
78
|
+
${$typo === 'desc-light' &&
|
79
|
+
css `
|
80
|
+
font-size: 14px;
|
81
|
+
line-height: 20px;
|
82
|
+
font-weight: 400;
|
83
|
+
|
84
|
+
@media (min-width: 768px) {
|
85
|
+
font-size: 16px;
|
86
|
+
line-height: 23px;
|
87
|
+
}
|
88
|
+
`}
|
89
|
+
|
90
|
+
${$typo === 'desc-small' &&
|
91
|
+
css `
|
92
|
+
font-size: 12px;
|
93
|
+
line-height: 16px;
|
94
|
+
font-weight: 400;
|
95
|
+
|
96
|
+
@media (min-width: 768px) {
|
97
|
+
font-size: 14px;
|
98
|
+
line-height: 18px;
|
99
|
+
}
|
100
|
+
`}
|
101
|
+
|
102
|
+
${$typo === 'base' &&
|
103
|
+
css `
|
104
|
+
font-size: 14px;
|
105
|
+
line-height: 23px;
|
106
|
+
font-weight: 400;
|
107
|
+
|
108
|
+
@media (min-width: 768px) {
|
109
|
+
font-size: 16px;
|
110
|
+
line-height: 26px;
|
111
|
+
}
|
112
|
+
`}
|
113
|
+
|
114
|
+
${$typo === 'base-small' &&
|
115
|
+
css `
|
116
|
+
font-size: 12px;
|
117
|
+
line-height: 20px;
|
118
|
+
font-weight: 400;
|
119
|
+
|
120
|
+
@media (min-width: 768px) {
|
121
|
+
font-size: 14px;
|
122
|
+
line-height: 23px;
|
123
|
+
}
|
124
|
+
`}
|
125
|
+
|
126
|
+
${$typo === 'base-xsmall' &&
|
127
|
+
css `
|
128
|
+
font-size: 10px;
|
129
|
+
line-height: 16px;
|
130
|
+
font-weight: 400;
|
131
|
+
|
132
|
+
@media (min-width: 768px) {
|
133
|
+
font-size: 12px;
|
134
|
+
line-height: 19px;
|
135
|
+
}
|
136
|
+
`}
|
137
|
+
|
138
|
+
${$typo === 'label-large' &&
|
139
|
+
css `
|
140
|
+
font-size: 12px;
|
141
|
+
line-height: 100%;
|
142
|
+
font-weight: 700;
|
143
|
+
text-transform: uppercase;
|
144
|
+
letter-spacing: 0.75px;
|
145
|
+
`}
|
146
|
+
|
147
|
+
text-align: ${$align};
|
148
|
+
cursor: ${$cursor};
|
149
|
+
color: ${theme.colors[$color]};
|
150
|
+
${linkStyleOverride({ color: theme.colors[$color] })}
|
151
|
+
`);
|
152
|
+
//# sourceMappingURL=Text.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../src/Text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,UAAU,EAAkC,MAAM,OAAO,CAAA;AAC7E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAS,KAAK,EAAE,MAAM,UAAU,CAAA;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AA2DhD,MAAM,CAAC,MAAM,IAAI,GAAkB,UAAU,CAC3C,CACE,EACE,QAAQ,EACR,IAAI,GAAG,cAAc,EACrB,SAAS,GAAG,EAAE,EACd,GAAG,GAAG,GAAG,EACT,KAAK,GAAG,MAAM,EACd,KAAK,GAAG,WAAW,EACnB,MAAM,GAAG,SAAS,EAClB,KAAK,GAAG,EAAE,EACV,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE,CAAC,CACH,oBAAC,SAAS,IACR,WAAW,EAAE,GAAG,EAChB,SAAS,EAAE,SAAS,WACb,IAAI,YACH,KAAK,YACL,KAAK,EACb,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,KACR,KAAK,EACT,GAAG,EAAE,GAAG,IAEP,QAAQ,CACC,CACb,CACF,CAAA;AAED,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA;AAEzB,MAAM,SAAS,GAAG,CAAC,KAAa,EAAiB,EAAE;IACjD,OAAO,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AACtD,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAC3B,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;;;MAGvC,SAAS,CAAC,KAAK,CAAC,IAAI,gBAAgB,CAAC,KAAK,CAAC;;;MAG3C,KAAK,KAAK,cAAc;IAC1B,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,eAAe;IACzB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,cAAc;IACxB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,YAAY;IACtB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,aAAa;IACvB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,YAAY;IACtB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,YAAY;IACtB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,MAAM;IAChB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,YAAY;IACtB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,aAAa;IACvB,GAAG,CAAA;;;;;;;;;KASF;;IAED,KAAK,KAAK,aAAa;IACvB,GAAG,CAAA;;;;;;KAMF;;kBAEa,MAAM;cACV,OAAO;aACR,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;MAC3B,iBAAiB,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;GACrD,CACF,CAAA","sourcesContent":["import React, { FC, forwardRef, LabelHTMLAttributes, ReactNode } from 'react'\nimport styled, { css } from 'styled-components'\n\nimport { Box } from '../Box'\nimport { linkStyleOverride } from '../Link/Link'\nimport { Color, theme } from '../theme'\nimport { MarginProps } from '../utils/space'\nimport { fontStyleMapping } from './fontMapping'\n\ninterface IText {\n /** typography class name to apply predefined styles */\n $typo: string\n /** text-align */\n $align: string\n /** color from the theme */\n $color: Color\n $cursor: string\n}\n\n/**\n * @deprecated Use only new Typo\n */\n\nexport type DeprecatedTypo =\n | 'header-large'\n | 'header-medium'\n | 'header-small'\n | 'desc-heavy'\n | 'desc-medium'\n | 'desc-light'\n | 'desc-small'\n | 'base'\n | 'base-small'\n | 'base-xsmall'\n | 'label-large'\n\nexport type Typo =\n | 'hero-alternate'\n | 'hero'\n | 'heading-alternate'\n | 'heading-large'\n | 'heading-medium'\n | 'heading-small'\n | 'headline-regular'\n | 'headline-small'\n | 'body-standfirst'\n | 'body-regular'\n | 'body-small'\n | 'caption'\n | 'label'\n\ntype Props = {\n children: ReactNode\n tag?: any\n className?: string\n // Record<never, never> matches any non-null and non-undefined type so\n // IntelliSense can suggest Typo to autocomplete\n typo?: Typo | (string & Record<never, never>)\n align?: string\n color?: Color\n cursor?: string\n title?: string\n} & MarginProps\n\nexport type TextProps = Props & Omit<LabelHTMLAttributes<HTMLElement>, 'color'>\n\nexport const Text: FC<TextProps> = forwardRef<HTMLElement, TextProps>(\n (\n {\n children,\n typo = 'body-regular',\n className = '',\n tag = 'p',\n align = 'left',\n color = 'liquorice',\n cursor = 'inherit',\n title = '',\n ...props\n },\n ref,\n ) => (\n <Container\n forwardedAs={tag}\n className={className}\n $typo={typo}\n $align={align}\n $color={color}\n cursor={cursor}\n title={title}\n {...props}\n ref={ref}\n >\n {children}\n </Container>\n ),\n)\n\nText.displayName = 'Text'\n\nconst isNewTypo = (value: string): value is Typo => {\n return Object.keys(fontStyleMapping).includes(value)\n}\n\nconst Container = styled(Box)<IText>(\n ({ $align, $color, $cursor, $typo }) => css`\n /** TYPOGRAPHY STYLES */\n\n ${isNewTypo($typo) && fontStyleMapping[$typo]}\n\n /** DEPRECATED TYPOGRAPHY STYLES */\n ${$typo === 'header-large' &&\n css`\n font-size: 24px;\n line-height: 31px;\n font-weight: 500;\n\n @media (min-width: 768px) {\n font-size: 42px;\n line-height: 54px;\n }\n `}\n\n ${$typo === 'header-medium' &&\n css`\n font-size: 21px;\n line-height: 27px;\n font-weight: 500;\n\n @media (min-width: 768px) {\n font-size: 32px;\n line-height: 41px;\n }\n `}\n\n ${$typo === 'header-small' &&\n css`\n font-size: 18px;\n line-height: 23px;\n font-weight: 500;\n\n @media (min-width: 768px) {\n font-size: 21px;\n line-height: 27px;\n }\n `}\n\n ${$typo === 'desc-heavy' &&\n css`\n font-size: 14px;\n line-height: 20px;\n font-weight: 700;\n\n @media (min-width: 768px) {\n font-size: 16px;\n line-height: 23px;\n }\n `}\n\n ${$typo === 'desc-medium' &&\n css`\n font-size: 14px;\n line-height: 20px;\n font-weight: 500;\n\n @media (min-width: 768px) {\n font-size: 16px;\n line-height: 23px;\n }\n `}\n\n ${$typo === 'desc-light' &&\n css`\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n\n @media (min-width: 768px) {\n font-size: 16px;\n line-height: 23px;\n }\n `}\n\n ${$typo === 'desc-small' &&\n css`\n font-size: 12px;\n line-height: 16px;\n font-weight: 400;\n\n @media (min-width: 768px) {\n font-size: 14px;\n line-height: 18px;\n }\n `}\n\n ${$typo === 'base' &&\n css`\n font-size: 14px;\n line-height: 23px;\n font-weight: 400;\n\n @media (min-width: 768px) {\n font-size: 16px;\n line-height: 26px;\n }\n `}\n\n ${$typo === 'base-small' &&\n css`\n font-size: 12px;\n line-height: 20px;\n font-weight: 400;\n\n @media (min-width: 768px) {\n font-size: 14px;\n line-height: 23px;\n }\n `}\n\n ${$typo === 'base-xsmall' &&\n css`\n font-size: 10px;\n line-height: 16px;\n font-weight: 400;\n\n @media (min-width: 768px) {\n font-size: 12px;\n line-height: 19px;\n }\n `}\n \n ${$typo === 'label-large' &&\n css`\n font-size: 12px;\n line-height: 100%;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.75px;\n `}\n\n text-align: ${$align};\n cursor: ${$cursor};\n color: ${theme.colors[$color]};\n ${linkStyleOverride({ color: theme.colors[$color] })}\n `,\n)\n"]}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { theme } from '../theme';
|
2
|
+
export const fontStyleMapping = {
|
3
|
+
'hero-alternate': `
|
4
|
+
font-size: 40px;
|
5
|
+
font-family: 'MarshmallowYouth';
|
6
|
+
font-weight: ${theme.font.weight.bold};
|
7
|
+
line-height: 40px;
|
8
|
+
|
9
|
+
@media (min-width: 768px) {
|
10
|
+
font-size: 56px;
|
11
|
+
line-height: 52px;
|
12
|
+
}
|
13
|
+
`,
|
14
|
+
hero: `
|
15
|
+
font-size: 32px;
|
16
|
+
font-weight: ${theme.font.weight.medium};
|
17
|
+
line-height: 40px;
|
18
|
+
|
19
|
+
@media (min-width: 768px) {
|
20
|
+
font-size: 40px;
|
21
|
+
line-height: 44px;
|
22
|
+
}
|
23
|
+
`,
|
24
|
+
'heading-alternate': `
|
25
|
+
font-size: 40px;
|
26
|
+
font-family: 'MarshmallowYouth';
|
27
|
+
font-weight: ${theme.font.weight.bold};
|
28
|
+
line-height: 40px;
|
29
|
+
`,
|
30
|
+
'heading-large': `
|
31
|
+
font-size: 28px;
|
32
|
+
font-weight: ${theme.font.weight.medium};
|
33
|
+
line-height: 32px;
|
34
|
+
|
35
|
+
@media (min-width: 768px) {
|
36
|
+
font-size: 32px;
|
37
|
+
line-height: 40px;
|
38
|
+
}
|
39
|
+
`,
|
40
|
+
'heading-medium': `
|
41
|
+
font-size: 24px;
|
42
|
+
font-weight: ${theme.font.weight.medium};
|
43
|
+
line-height: 32px;
|
44
|
+
`,
|
45
|
+
'heading-small': `
|
46
|
+
font-size: 20px;
|
47
|
+
font-weight: ${theme.font.weight.medium};
|
48
|
+
line-height: 28px;
|
49
|
+
`,
|
50
|
+
'headline-regular': `
|
51
|
+
font-size: 16px;
|
52
|
+
font-weight: ${theme.font.weight.medium};
|
53
|
+
line-height: 20px;
|
54
|
+
`,
|
55
|
+
'headline-small': `
|
56
|
+
font-size: 14px;
|
57
|
+
font-weight: ${theme.font.weight.medium};
|
58
|
+
line-height: 20px;
|
59
|
+
`,
|
60
|
+
'body-standfirst': `
|
61
|
+
font-size: 18px;
|
62
|
+
font-weight: ${theme.font.weight.normal};
|
63
|
+
line-height: 24px;
|
64
|
+
`,
|
65
|
+
'body-regular': `
|
66
|
+
font-size: 16px;
|
67
|
+
font-weight: ${theme.font.weight.normal};
|
68
|
+
line-height: 20px;
|
69
|
+
`,
|
70
|
+
'body-small': `
|
71
|
+
font-size: 14px;
|
72
|
+
font-weight: ${theme.font.weight.normal};
|
73
|
+
line-height: 20px;
|
74
|
+
`,
|
75
|
+
caption: `
|
76
|
+
font-size: 12px;
|
77
|
+
font-weight: ${theme.font.weight.normal};
|
78
|
+
line-height: 16px;
|
79
|
+
`,
|
80
|
+
label: `
|
81
|
+
font-size: 10px;
|
82
|
+
line-height: 12px;
|
83
|
+
font-weight: ${theme.font.weight.medium};
|
84
|
+
text-transform: uppercase;
|
85
|
+
`,
|
86
|
+
};
|
87
|
+
//# sourceMappingURL=fontMapping.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fontMapping.js","sourceRoot":"","sources":["../../src/Text/fontMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAGhC,MAAM,CAAC,MAAM,gBAAgB,GAAyB;IACpD,gBAAgB,EAAE;;;mBAGD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;;;;;;;GAOtC;IACD,IAAI,EAAE;;mBAEW,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;;;;;;GAOxC;IACD,mBAAmB,EAAE;;;mBAGJ,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;;GAEtC;IACD,eAAe,EAAE;;mBAEA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;;;;;;GAOxC;IACD,gBAAgB,EAAE;;mBAED,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,eAAe,EAAE;;mBAEA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,kBAAkB,EAAE;;mBAEH,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,gBAAgB,EAAE;;mBAED,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,iBAAiB,EAAE;;mBAEF,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,cAAc,EAAE;;mBAEC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,YAAY,EAAE;;mBAEG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,OAAO,EAAE;;mBAEQ,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;IACD,KAAK,EAAE;;;mBAGU,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;;GAExC;CACF,CAAA","sourcesContent":["import { theme } from '../theme'\nimport { Typo } from './Text'\n\nexport const fontStyleMapping: Record<Typo, string> = {\n 'hero-alternate': `\n font-size: 40px;\n font-family: 'MarshmallowYouth';\n font-weight: ${theme.font.weight.bold};\n line-height: 40px;\n\n @media (min-width: 768px) {\n font-size: 56px;\n line-height: 52px;\n }\n `,\n hero: `\n font-size: 32px;\n font-weight: ${theme.font.weight.medium};\n line-height: 40px;\n\n @media (min-width: 768px) {\n font-size: 40px;\n line-height: 44px;\n }\n `,\n 'heading-alternate': `\n font-size: 40px;\n font-family: 'MarshmallowYouth';\n font-weight: ${theme.font.weight.bold};\n line-height: 40px;\n `,\n 'heading-large': `\n font-size: 28px;\n font-weight: ${theme.font.weight.medium};\n line-height: 32px;\n\n @media (min-width: 768px) {\n font-size: 32px;\n line-height: 40px;\n }\n `,\n 'heading-medium': `\n font-size: 24px;\n font-weight: ${theme.font.weight.medium};\n line-height: 32px;\n `,\n 'heading-small': `\n font-size: 20px;\n font-weight: ${theme.font.weight.medium};\n line-height: 28px;\n `,\n 'headline-regular': `\n font-size: 16px;\n font-weight: ${theme.font.weight.medium};\n line-height: 20px;\n `,\n 'headline-small': `\n font-size: 14px;\n font-weight: ${theme.font.weight.medium};\n line-height: 20px;\n `,\n 'body-standfirst': `\n font-size: 18px;\n font-weight: ${theme.font.weight.normal};\n line-height: 24px;\n `,\n 'body-regular': `\n font-size: 16px;\n font-weight: ${theme.font.weight.normal};\n line-height: 20px;\n `,\n 'body-small': `\n font-size: 14px;\n font-weight: ${theme.font.weight.normal};\n line-height: 20px;\n `,\n caption: `\n font-size: 12px;\n font-weight: ${theme.font.weight.normal};\n line-height: 16px;\n `,\n label: `\n font-size: 10px;\n line-height: 12px;\n font-weight: ${theme.font.weight.medium};\n text-transform: uppercase;\n `,\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Text';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Text/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA","sourcesContent":["export * from './Text'\n"]}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { FieldsetProps } from '../fields/Fieldset';
|
3
|
+
export type DateObject = {
|
4
|
+
day?: string | null;
|
5
|
+
month?: string | null;
|
6
|
+
year?: string | null;
|
7
|
+
};
|
8
|
+
export type TextDateOfBirthInputProps = {
|
9
|
+
value: DateObject;
|
10
|
+
onChange: (value: DateObject) => void;
|
11
|
+
showCompleted?: boolean;
|
12
|
+
hookformError?: {
|
13
|
+
type: string;
|
14
|
+
message?: string;
|
15
|
+
};
|
16
|
+
dataTestId?: string;
|
17
|
+
} & Pick<FieldsetProps, 'label' | 'assistiveText'>;
|
18
|
+
/**
|
19
|
+
* Renders a set of input fields to collect a date of birth as separate day, month,
|
20
|
+
* and year fields.
|
21
|
+
*
|
22
|
+
* ### Date of birth input validations
|
23
|
+
* - All fields are present and correctly formatted.
|
24
|
+
* - The age is at least 17 years old.
|
25
|
+
* - The year is not before 1900.
|
26
|
+
*/
|
27
|
+
export declare const TextDateOfBirthInput: React.ForwardRefExoticComponent<{
|
28
|
+
value: DateObject;
|
29
|
+
onChange: (value: DateObject) => void;
|
30
|
+
showCompleted?: boolean;
|
31
|
+
hookformError?: {
|
32
|
+
type: string;
|
33
|
+
message?: string;
|
34
|
+
};
|
35
|
+
dataTestId?: string;
|
36
|
+
} & Pick<FieldsetProps, "label" | "assistiveText"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import React, { forwardRef } from 'react';
|
2
|
+
import styled from 'styled-components';
|
3
|
+
import { Box } from '../Box';
|
4
|
+
import { Fieldset } from '../fields/Fieldset';
|
5
|
+
import { TextInput } from '../TextInput';
|
6
|
+
import { InputValidationError } from '../utils/dateOfBirth/schema';
|
7
|
+
/**
|
8
|
+
* Renders a set of input fields to collect a date of birth as separate day, month,
|
9
|
+
* and year fields.
|
10
|
+
*
|
11
|
+
* ### Date of birth input validations
|
12
|
+
* - All fields are present and correctly formatted.
|
13
|
+
* - The age is at least 17 years old.
|
14
|
+
* - The year is not before 1900.
|
15
|
+
*/
|
16
|
+
export const TextDateOfBirthInput = forwardRef(function TextDateOfBirthInput({ onChange, value, label, assistiveText, hookformError, showCompleted = false, dataTestId, }, ref) {
|
17
|
+
const inputValidationErrorValues = Object.values(InputValidationError);
|
18
|
+
return (React.createElement(Fieldset, { label: label, assistiveText: assistiveText, completed: showCompleted && Boolean(value.day && value.month && value.year), error: Boolean(hookformError), errorMsg: hookformError?.message, "data-testid": dataTestId },
|
19
|
+
React.createElement(Box, { flex: true, gap: "16px" },
|
20
|
+
React.createElement(SetWidthTextInput, { ref: ref, label: "day", autoCompleteAttr: "bday-day", inputModeAttr: "numeric", "$width": 60, value: value.day || '', placeholder: "", onChange: (day) => {
|
21
|
+
onChange({
|
22
|
+
...value,
|
23
|
+
day,
|
24
|
+
});
|
25
|
+
}, error: Boolean(hookformError?.type?.includes('day') ||
|
26
|
+
(hookformError?.type &&
|
27
|
+
inputValidationErrorValues.includes(hookformError.type))) }),
|
28
|
+
React.createElement(SetWidthTextInput, { label: "month", autoCompleteAttr: "bday-month", inputModeAttr: "numeric", "$width": 60, value: value.month || '', placeholder: "", onChange: (month) => {
|
29
|
+
onChange({
|
30
|
+
...value,
|
31
|
+
month,
|
32
|
+
});
|
33
|
+
}, error: Boolean(hookformError?.type?.includes('month') ||
|
34
|
+
(hookformError?.type &&
|
35
|
+
inputValidationErrorValues.includes(hookformError.type))) }),
|
36
|
+
React.createElement(SetWidthTextInput, { label: "year", autoCompleteAttr: "bday-year", inputModeAttr: "numeric", "$width": 80, value: value.year || '', placeholder: "", onChange: (year) => {
|
37
|
+
onChange({
|
38
|
+
...value,
|
39
|
+
year,
|
40
|
+
});
|
41
|
+
}, error: Boolean(hookformError?.type?.includes('year') ||
|
42
|
+
(hookformError?.type &&
|
43
|
+
inputValidationErrorValues.includes(hookformError.type))) }))));
|
44
|
+
});
|
45
|
+
const SetWidthTextInput = styled(TextInput) `
|
46
|
+
width: ${({ $width }) => `${$width}px`};
|
47
|
+
`;
|
48
|
+
//# sourceMappingURL=TextDateOfBirthInput.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TextDateOfBirthInput.js","sourceRoot":"","sources":["../../src/TextDateOfBirthInput/TextDateOfBirthInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAC5B,OAAO,EAAE,QAAQ,EAAiB,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAmBlE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAG5C,SAAS,oBAAoB,CAC7B,EACE,QAAQ,EACR,KAAK,EACL,KAAK,EACL,aAAa,EACb,aAAa,EACb,aAAa,GAAG,KAAK,EACrB,UAAU,GACX,EACD,GAAG;IAEH,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAEtE,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,SAAS,EACP,aAAa,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,EAElE,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,EAC7B,QAAQ,EAAE,aAAa,EAAE,OAAO,iBACnB,UAAU;QAEvB,oBAAC,GAAG,IAAC,IAAI,QAAC,GAAG,EAAC,MAAM;YAClB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,GAAG,EACR,KAAK,EAAC,KAAK,EACX,gBAAgB,EAAC,UAAU,EAC3B,aAAa,EAAC,SAAS,YACf,EAAE,EACV,KAAK,EAAE,KAAK,CAAC,GAAG,IAAI,EAAE,EACtB,WAAW,EAAC,EAAE,EACd,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;oBAChB,QAAQ,CAAC;wBACP,GAAG,KAAK;wBACR,GAAG;qBACJ,CAAC,CAAA;gBACJ,CAAC,EACD,KAAK,EAAE,OAAO,CACZ,aAAa,EAAE,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC;oBAClC,CAAC,aAAa,EAAE,IAAI;wBAClB,0BAA0B,CAAC,QAAQ,CACjC,aAAa,CAAC,IAA4B,CAC3C,CAAC,CACP,GACD;YACF,oBAAC,iBAAiB,IAChB,KAAK,EAAC,OAAO,EACb,gBAAgB,EAAC,YAAY,EAC7B,aAAa,EAAC,SAAS,YACf,EAAE,EACV,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,EAAE,EACxB,WAAW,EAAC,EAAE,EACd,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;oBAClB,QAAQ,CAAC;wBACP,GAAG,KAAK;wBACR,KAAK;qBACN,CAAC,CAAA;gBACJ,CAAC,EACD,KAAK,EAAE,OAAO,CACZ,aAAa,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;oBACpC,CAAC,aAAa,EAAE,IAAI;wBAClB,0BAA0B,CAAC,QAAQ,CACjC,aAAa,CAAC,IAA4B,CAC3C,CAAC,CACP,GACD;YACF,oBAAC,iBAAiB,IAChB,KAAK,EAAC,MAAM,EACZ,gBAAgB,EAAC,WAAW,EAC5B,aAAa,EAAC,SAAS,YACf,EAAE,EACV,KAAK,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,EACvB,WAAW,EAAC,EAAE,EACd,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;oBACjB,QAAQ,CAAC;wBACP,GAAG,KAAK;wBACR,IAAI;qBACL,CAAC,CAAA;gBACJ,CAAC,EACD,KAAK,EAAE,OAAO,CACZ,aAAa,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC;oBACnC,CAAC,aAAa,EAAE,IAAI;wBAClB,0BAA0B,CAAC,QAAQ,CACjC,aAAa,CAAC,IAA4B,CAC3C,CAAC,CACP,GACD,CACE,CACG,CACZ,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAoB;WACpD,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,IAAI;CACvC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport styled from 'styled-components'\n\nimport { Box } from '../Box'\nimport { Fieldset, FieldsetProps } from '../fields/Fieldset'\nimport { TextInput } from '../TextInput'\nimport { InputValidationError } from '../utils/dateOfBirth/schema'\n\nexport type DateObject = {\n day?: string | null\n month?: string | null\n year?: string | null\n}\n\nexport type TextDateOfBirthInputProps = {\n value: DateObject\n onChange: (value: DateObject) => void\n showCompleted?: boolean\n hookformError?: {\n type: string\n message?: string\n }\n dataTestId?: string\n} & Pick<FieldsetProps, 'label' | 'assistiveText'>\n\n/**\n * Renders a set of input fields to collect a date of birth as separate day, month,\n * and year fields.\n *\n * ### Date of birth input validations\n * - All fields are present and correctly formatted.\n * - The age is at least 17 years old.\n * - The year is not before 1900.\n */\nexport const TextDateOfBirthInput = forwardRef<\n HTMLInputElement,\n TextDateOfBirthInputProps\n>(function TextDateOfBirthInput(\n {\n onChange,\n value,\n label,\n assistiveText,\n hookformError,\n showCompleted = false,\n dataTestId,\n },\n ref,\n) {\n const inputValidationErrorValues = Object.values(InputValidationError)\n\n return (\n <Fieldset\n label={label}\n assistiveText={assistiveText}\n completed={\n showCompleted && Boolean(value.day && value.month && value.year)\n }\n error={Boolean(hookformError)}\n errorMsg={hookformError?.message}\n data-testid={dataTestId}\n >\n <Box flex gap=\"16px\">\n <SetWidthTextInput\n ref={ref}\n label=\"day\"\n autoCompleteAttr=\"bday-day\"\n inputModeAttr=\"numeric\"\n $width={60}\n value={value.day || ''}\n placeholder=\"\"\n onChange={(day) => {\n onChange({\n ...value,\n day,\n })\n }}\n error={Boolean(\n hookformError?.type?.includes('day') ||\n (hookformError?.type &&\n inputValidationErrorValues.includes(\n hookformError.type as InputValidationError,\n )),\n )}\n />\n <SetWidthTextInput\n label=\"month\"\n autoCompleteAttr=\"bday-month\"\n inputModeAttr=\"numeric\"\n $width={60}\n value={value.month || ''}\n placeholder=\"\"\n onChange={(month) => {\n onChange({\n ...value,\n month,\n })\n }}\n error={Boolean(\n hookformError?.type?.includes('month') ||\n (hookformError?.type &&\n inputValidationErrorValues.includes(\n hookformError.type as InputValidationError,\n )),\n )}\n />\n <SetWidthTextInput\n label=\"year\"\n autoCompleteAttr=\"bday-year\"\n inputModeAttr=\"numeric\"\n $width={80}\n value={value.year || ''}\n placeholder=\"\"\n onChange={(year) => {\n onChange({\n ...value,\n year,\n })\n }}\n error={Boolean(\n hookformError?.type?.includes('year') ||\n (hookformError?.type &&\n inputValidationErrorValues.includes(\n hookformError.type as InputValidationError,\n )),\n )}\n />\n </Box>\n </Fieldset>\n )\n})\n\nconst SetWidthTextInput = styled(TextInput)<{ $width: number }>`\n width: ${({ $width }) => `${$width}px`};\n`\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './TextDateOfBirthInput';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TextDateOfBirthInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA","sourcesContent":["export * from './TextDateOfBirthInput'\n"]}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import React, { FocusEvent, FormEvent, HTMLInputAutoCompleteAttribute } from 'react';
|
2
|
+
import { CommonFieldProps } from '../fields/commonFieldTypes';
|
3
|
+
interface Props extends CommonFieldProps {
|
4
|
+
type?: 'text' | 'email' | 'password' | 'time' | 'date' | 'tel';
|
5
|
+
placeholder: string;
|
6
|
+
name?: string;
|
7
|
+
value: string;
|
8
|
+
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
9
|
+
/**
|
10
|
+
* Triggers after animation end (animation duration is 2s),
|
11
|
+
* the animation starts when a user selects or hovers over an autofill option
|
12
|
+
*/
|
13
|
+
onAutoFill?: () => void;
|
14
|
+
}
|
15
|
+
type InputMode = 'text' | 'email' | 'numeric';
|
16
|
+
/** on change or on input required */
|
17
|
+
type InputProps = ({
|
18
|
+
/** on change is required and on input optional */
|
19
|
+
onChange: (e: string) => void;
|
20
|
+
onInputChange?: (e: FormEvent<HTMLInputElement>) => void;
|
21
|
+
} | {
|
22
|
+
/** on input is required and on change optional */
|
23
|
+
onChange?: (e: string) => void;
|
24
|
+
onInputChange: (e: FormEvent<HTMLInputElement>) => void;
|
25
|
+
}) & {
|
26
|
+
autoCompleteAttr?: HTMLInputAutoCompleteAttribute;
|
27
|
+
inputModeAttr?: InputMode;
|
28
|
+
};
|
29
|
+
export type TextInputProps = Props & InputProps;
|
30
|
+
/**
|
31
|
+
* A reusable TextInput component that supports various input types, custom styling, icons,
|
32
|
+
* and autofill detection.
|
33
|
+
*
|
34
|
+
* ### Caveats:
|
35
|
+
* - `onAutoFill` triggers after animation end (animation duration is 2s),
|
36
|
+
* the animation starts when a user selects or hovers over an autofill option
|
37
|
+
*/
|
38
|
+
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
39
|
+
export {};
|