@mrshmllw/smores-react 10.7.0-crumbs-feature-vite-bundling.2 → 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.js +49 -0
- package/dist/Accordion/Accordion.js.map +1 -0
- package/dist/Accordion/index.js +2 -0
- package/dist/Accordion/index.js.map +1 -0
- package/dist/ActionDropdown/ActionDropdown.js +61 -0
- package/dist/ActionDropdown/ActionDropdown.js.map +1 -0
- package/dist/ActionDropdown/List.js +30 -0
- package/dist/ActionDropdown/List.js.map +1 -0
- package/dist/ActionDropdown/index.js +2 -0
- package/dist/ActionDropdown/index.js.map +1 -0
- package/dist/Badge/Badge.d.ts +2 -2
- package/dist/Badge/Badge.js +44 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/BadgeFallbackImage.d.ts +1 -1
- package/dist/Badge/BadgeFallbackImage.js +24 -0
- package/dist/Badge/BadgeFallbackImage.js.map +1 -0
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/index.js +2 -0
- package/dist/Badge/index.js.map +1 -0
- package/dist/BadgeList/BadgeList.d.ts +3 -3
- package/dist/BadgeList/BadgeList.js +77 -0
- package/dist/BadgeList/BadgeList.js.map +1 -0
- package/dist/BadgeList/index.d.ts +1 -1
- package/dist/BadgeList/index.js +2 -0
- package/dist/BadgeList/index.js.map +1 -0
- package/dist/Banner/BannerContainer.d.ts +1 -1
- package/dist/Banner/BannerContainer.js +43 -0
- package/dist/Banner/BannerContainer.js.map +1 -0
- package/dist/Banner/BannerItem.js +64 -0
- package/dist/Banner/BannerItem.js.map +1 -0
- package/dist/Banner/hooks.d.ts +1 -1
- package/dist/Banner/hooks.js +6 -0
- package/dist/Banner/hooks.js.map +1 -0
- package/dist/Banner/index.js +3 -0
- package/dist/Banner/index.js.map +1 -0
- package/dist/Banner/types.js +2 -0
- package/dist/Banner/types.js.map +1 -0
- package/dist/Box/Box.d.ts +2 -2
- package/dist/Box/Box.js +17 -0
- package/dist/Box/Box.js.map +1 -0
- package/dist/Box/index.js +2 -0
- package/dist/Box/index.js.map +1 -0
- package/dist/BrandCard/BrandCard.js +48 -0
- package/dist/BrandCard/BrandCard.js.map +1 -0
- package/dist/BrandCard/index.js +2 -0
- package/dist/BrandCard/index.js.map +1 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +122 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/Button/index.js +2 -0
- package/dist/Button/index.js.map +1 -0
- package/dist/Card/Card.js +72 -0
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/index.js +2 -0
- package/dist/Card/index.js.map +1 -0
- package/dist/CheckBox/CheckBox.d.ts +1 -1
- package/dist/CheckBox/CheckBox.js +107 -0
- package/dist/CheckBox/CheckBox.js.map +1 -0
- package/dist/CheckBox/index.js +2 -0
- package/dist/CheckBox/index.js.map +1 -0
- package/dist/CheckBoxGroup/CheckBoxGroup.js +11 -0
- package/dist/CheckBoxGroup/CheckBoxGroup.js.map +1 -0
- package/dist/CheckBoxGroup/index.js +2 -0
- package/dist/CheckBoxGroup/index.js.map +1 -0
- package/dist/Chip/Chip.d.ts +1 -1
- package/dist/Chip/Chip.js +53 -0
- package/dist/Chip/Chip.js.map +1 -0
- package/dist/Chip/index.js +2 -0
- package/dist/Chip/index.js.map +1 -0
- package/dist/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/dist/CurrencyInput/CurrencyInput.js +51 -0
- package/dist/CurrencyInput/CurrencyInput.js.map +1 -0
- package/dist/CurrencyInput/index.js +2 -0
- package/dist/CurrencyInput/index.js.map +1 -0
- package/dist/Datepicker/Datepicker.js +133 -0
- package/dist/Datepicker/Datepicker.js.map +1 -0
- package/dist/Datepicker/DatesList.js +77 -0
- package/dist/Datepicker/DatesList.js.map +1 -0
- package/dist/Datepicker/index.js +2 -0
- package/dist/Datepicker/index.js.map +1 -0
- package/dist/Datepicker/types.js +2 -0
- package/dist/Datepicker/types.js.map +1 -0
- package/dist/Divider/Divider.js +18 -0
- package/dist/Divider/Divider.js.map +1 -0
- package/dist/Divider/index.js +2 -0
- package/dist/Divider/index.js.map +1 -0
- package/dist/Dropdown/Dropdown.d.ts +1 -1
- package/dist/Dropdown/Dropdown.js +98 -0
- package/dist/Dropdown/Dropdown.js.map +1 -0
- package/dist/Dropdown/index.js +2 -0
- package/dist/Dropdown/index.js.map +1 -0
- package/dist/Emoji/Emoji.js +8 -0
- package/dist/Emoji/Emoji.js.map +1 -0
- package/dist/Emoji/index.js +2 -0
- package/dist/Emoji/index.js.map +1 -0
- package/dist/Icon/Icon.js +25 -0
- package/dist/Icon/Icon.js.map +1 -0
- package/dist/Icon/iconFiles/Aa.d.ts +1 -1
- package/dist/Icon/iconFiles/Aa.js +9 -0
- package/dist/Icon/iconFiles/Aa.js.map +1 -0
- package/dist/Icon/iconFiles/AaInverted.d.ts +1 -1
- package/dist/Icon/iconFiles/AaInverted.js +9 -0
- package/dist/Icon/iconFiles/AaInverted.js.map +1 -0
- package/dist/Icon/iconFiles/AccidentalDamage.d.ts +1 -1
- package/dist/Icon/iconFiles/AccidentalDamage.js +5 -0
- package/dist/Icon/iconFiles/AccidentalDamage.js.map +1 -0
- package/dist/Icon/iconFiles/AccountBreakdown.d.ts +1 -1
- package/dist/Icon/iconFiles/AccountBreakdown.js +8 -0
- package/dist/Icon/iconFiles/AccountBreakdown.js.map +1 -0
- package/dist/Icon/iconFiles/AccountMlp.d.ts +1 -1
- package/dist/Icon/iconFiles/AccountMlp.js +6 -0
- package/dist/Icon/iconFiles/AccountMlp.js.map +1 -0
- package/dist/Icon/iconFiles/ActivityClipboard.d.ts +1 -1
- package/dist/Icon/iconFiles/ActivityClipboard.js +5 -0
- package/dist/Icon/iconFiles/ActivityClipboard.js.map +1 -0
- package/dist/Icon/iconFiles/AddOns.d.ts +1 -1
- package/dist/Icon/iconFiles/AddOns.js +5 -0
- package/dist/Icon/iconFiles/AddOns.js.map +1 -0
- package/dist/Icon/iconFiles/AddressMta.d.ts +1 -1
- package/dist/Icon/iconFiles/AddressMta.js +19 -0
- package/dist/Icon/iconFiles/AddressMta.js.map +1 -0
- package/dist/Icon/iconFiles/Ai.d.ts +1 -1
- package/dist/Icon/iconFiles/Ai.js +9 -0
- package/dist/Icon/iconFiles/Ai.js.map +1 -0
- package/dist/Icon/iconFiles/AlbumAudio.d.ts +1 -1
- package/dist/Icon/iconFiles/AlbumAudio.js +5 -0
- package/dist/Icon/iconFiles/AlbumAudio.js.map +1 -0
- package/dist/Icon/iconFiles/Alert.d.ts +1 -1
- package/dist/Icon/iconFiles/Alert.js +5 -0
- package/dist/Icon/iconFiles/Alert.js.map +1 -0
- package/dist/Icon/iconFiles/AlertEngine.d.ts +1 -1
- package/dist/Icon/iconFiles/AlertEngine.js +8 -0
- package/dist/Icon/iconFiles/AlertEngine.js.map +1 -0
- package/dist/Icon/iconFiles/Amex.d.ts +1 -1
- package/dist/Icon/iconFiles/Amex.js +10 -0
- package/dist/Icon/iconFiles/Amex.js.map +1 -0
- package/dist/Icon/iconFiles/ApplePay.d.ts +1 -1
- package/dist/Icon/iconFiles/ApplePay.js +8 -0
- package/dist/Icon/iconFiles/ApplePay.js.map +1 -0
- package/dist/Icon/iconFiles/ApprovedFile.d.ts +1 -1
- package/dist/Icon/iconFiles/ApprovedFile.js +6 -0
- package/dist/Icon/iconFiles/ApprovedFile.js.map +1 -0
- package/dist/Icon/iconFiles/Archive.d.ts +1 -1
- package/dist/Icon/iconFiles/Archive.js +5 -0
- package/dist/Icon/iconFiles/Archive.js.map +1 -0
- package/dist/Icon/iconFiles/Arrow.d.ts +1 -1
- package/dist/Icon/iconFiles/Arrow.js +5 -0
- package/dist/Icon/iconFiles/Arrow.js.map +1 -0
- package/dist/Icon/iconFiles/At.d.ts +1 -1
- package/dist/Icon/iconFiles/At.js +5 -0
- package/dist/Icon/iconFiles/At.js.map +1 -0
- package/dist/Icon/iconFiles/Axa.d.ts +1 -1
- package/dist/Icon/iconFiles/Axa.js +9 -0
- package/dist/Icon/iconFiles/Axa.js.map +1 -0
- package/dist/Icon/iconFiles/Bank.d.ts +1 -1
- package/dist/Icon/iconFiles/Bank.js +5 -0
- package/dist/Icon/iconFiles/Bank.js.map +1 -0
- package/dist/Icon/iconFiles/Basket.d.ts +1 -1
- package/dist/Icon/iconFiles/Basket.js +5 -0
- package/dist/Icon/iconFiles/Basket.js.map +1 -0
- package/dist/Icon/iconFiles/Bicycle.d.ts +1 -1
- package/dist/Icon/iconFiles/Bicycle.js +5 -0
- package/dist/Icon/iconFiles/Bicycle.js.map +1 -0
- package/dist/Icon/iconFiles/Boost.d.ts +1 -1
- package/dist/Icon/iconFiles/Boost.js +8 -0
- package/dist/Icon/iconFiles/Boost.js.map +1 -0
- package/dist/Icon/iconFiles/Breakdown.d.ts +1 -1
- package/dist/Icon/iconFiles/Breakdown.js +10 -0
- package/dist/Icon/iconFiles/Breakdown.js.map +1 -0
- package/dist/Icon/iconFiles/BreakdownAlt.d.ts +1 -1
- package/dist/Icon/iconFiles/BreakdownAlt.js +9 -0
- package/dist/Icon/iconFiles/BreakdownAlt.js.map +1 -0
- package/dist/Icon/iconFiles/Briefcase.d.ts +1 -1
- package/dist/Icon/iconFiles/Briefcase.js +5 -0
- package/dist/Icon/iconFiles/Briefcase.js.map +1 -0
- package/dist/Icon/iconFiles/Bullets.d.ts +1 -1
- package/dist/Icon/iconFiles/Bullets.js +8 -0
- package/dist/Icon/iconFiles/Bullets.js.map +1 -0
- package/dist/Icon/iconFiles/Burger.d.ts +1 -1
- package/dist/Icon/iconFiles/Burger.js +5 -0
- package/dist/Icon/iconFiles/Burger.js.map +1 -0
- package/dist/Icon/iconFiles/Calendar.d.ts +1 -1
- package/dist/Icon/iconFiles/Calendar.js +5 -0
- package/dist/Icon/iconFiles/Calendar.js.map +1 -0
- package/dist/Icon/iconFiles/Camera.d.ts +1 -1
- package/dist/Icon/iconFiles/Camera.js +5 -0
- package/dist/Icon/iconFiles/Camera.js.map +1 -0
- package/dist/Icon/iconFiles/Cancel.d.ts +1 -1
- package/dist/Icon/iconFiles/Cancel.js +9 -0
- package/dist/Icon/iconFiles/Cancel.js.map +1 -0
- package/dist/Icon/iconFiles/CancelBw.d.ts +1 -1
- package/dist/Icon/iconFiles/CancelBw.js +9 -0
- package/dist/Icon/iconFiles/CancelBw.js.map +1 -0
- package/dist/Icon/iconFiles/Car.d.ts +1 -1
- package/dist/Icon/iconFiles/Car.js +5 -0
- package/dist/Icon/iconFiles/Car.js.map +1 -0
- package/dist/Icon/iconFiles/CarMta.d.ts +1 -1
- package/dist/Icon/iconFiles/CarMta.js +10 -0
- package/dist/Icon/iconFiles/CarMta.js.map +1 -0
- package/dist/Icon/iconFiles/CarRepairs.d.ts +1 -1
- package/dist/Icon/iconFiles/CarRepairs.js +6 -0
- package/dist/Icon/iconFiles/CarRepairs.js.map +1 -0
- package/dist/Icon/iconFiles/CarReplacement.d.ts +1 -1
- package/dist/Icon/iconFiles/CarReplacement.js +7 -0
- package/dist/Icon/iconFiles/CarReplacement.js.map +1 -0
- package/dist/Icon/iconFiles/CarUsage.d.ts +1 -1
- package/dist/Icon/iconFiles/CarUsage.js +7 -0
- package/dist/Icon/iconFiles/CarUsage.js.map +1 -0
- package/dist/Icon/iconFiles/Card.d.ts +1 -1
- package/dist/Icon/iconFiles/Card.js +5 -0
- package/dist/Icon/iconFiles/Card.js.map +1 -0
- package/dist/Icon/iconFiles/Caret.d.ts +1 -1
- package/dist/Icon/iconFiles/Caret.js +5 -0
- package/dist/Icon/iconFiles/Caret.js.map +1 -0
- package/dist/Icon/iconFiles/CaretUp.d.ts +2 -2
- package/dist/Icon/iconFiles/CaretUp.js +7 -0
- package/dist/Icon/iconFiles/CaretUp.js.map +1 -0
- package/dist/Icon/iconFiles/Charge.d.ts +1 -1
- package/dist/Icon/iconFiles/Charge.js +8 -0
- package/dist/Icon/iconFiles/Charge.js.map +1 -0
- package/dist/Icon/iconFiles/Chat.d.ts +1 -1
- package/dist/Icon/iconFiles/Chat.js +5 -0
- package/dist/Icon/iconFiles/Chat.js.map +1 -0
- package/dist/Icon/iconFiles/ChatBubble.d.ts +1 -1
- package/dist/Icon/iconFiles/ChatBubble.js +7 -0
- package/dist/Icon/iconFiles/ChatBubble.js.map +1 -0
- package/dist/Icon/iconFiles/Checkout.d.ts +1 -1
- package/dist/Icon/iconFiles/Checkout.js +5 -0
- package/dist/Icon/iconFiles/Checkout.js.map +1 -0
- package/dist/Icon/iconFiles/CheckoutWithText.d.ts +1 -1
- package/dist/Icon/iconFiles/CheckoutWithText.js +21 -0
- package/dist/Icon/iconFiles/CheckoutWithText.js.map +1 -0
- package/dist/Icon/iconFiles/CircleTick.d.ts +1 -1
- package/dist/Icon/iconFiles/CircleTick.js +5 -0
- package/dist/Icon/iconFiles/CircleTick.js.map +1 -0
- package/dist/Icon/iconFiles/City.d.ts +1 -1
- package/dist/Icon/iconFiles/City.js +5 -0
- package/dist/Icon/iconFiles/City.js.map +1 -0
- package/dist/Icon/iconFiles/Claim.d.ts +1 -1
- package/dist/Icon/iconFiles/Claim.js +8 -0
- package/dist/Icon/iconFiles/Claim.js.map +1 -0
- package/dist/Icon/iconFiles/ClaimLine.d.ts +1 -1
- package/dist/Icon/iconFiles/ClaimLine.js +10 -0
- package/dist/Icon/iconFiles/ClaimLine.js.map +1 -0
- package/dist/Icon/iconFiles/Clipboard.d.ts +1 -1
- package/dist/Icon/iconFiles/Clipboard.js +6 -0
- package/dist/Icon/iconFiles/Clipboard.js.map +1 -0
- package/dist/Icon/iconFiles/ClipboardCheck.d.ts +1 -1
- package/dist/Icon/iconFiles/ClipboardCheck.js +5 -0
- package/dist/Icon/iconFiles/ClipboardCheck.js.map +1 -0
- package/dist/Icon/iconFiles/Clock.d.ts +1 -1
- package/dist/Icon/iconFiles/Clock.js +5 -0
- package/dist/Icon/iconFiles/Clock.js.map +1 -0
- package/dist/Icon/iconFiles/ClosePanel.d.ts +1 -1
- package/dist/Icon/iconFiles/ClosePanel.js +5 -0
- package/dist/Icon/iconFiles/ClosePanel.js.map +1 -0
- package/dist/Icon/iconFiles/Collapse.d.ts +1 -1
- package/dist/Icon/iconFiles/Collapse.js +5 -0
- package/dist/Icon/iconFiles/Collapse.js.map +1 -0
- package/dist/Icon/iconFiles/Confused.d.ts +1 -1
- package/dist/Icon/iconFiles/Confused.js +5 -0
- package/dist/Icon/iconFiles/Confused.js.map +1 -0
- package/dist/Icon/iconFiles/ConfusedBlue.d.ts +1 -1
- package/dist/Icon/iconFiles/ConfusedBlue.js +5 -0
- package/dist/Icon/iconFiles/ConfusedBlue.js.map +1 -0
- package/dist/Icon/iconFiles/ContactEmail.d.ts +1 -1
- package/dist/Icon/iconFiles/ContactEmail.js +5 -0
- package/dist/Icon/iconFiles/ContactEmail.js.map +1 -0
- package/dist/Icon/iconFiles/Copy.d.ts +1 -1
- package/dist/Icon/iconFiles/Copy.js +5 -0
- package/dist/Icon/iconFiles/Copy.js.map +1 -0
- package/dist/Icon/iconFiles/Crop.d.ts +1 -1
- package/dist/Icon/iconFiles/Crop.js +5 -0
- package/dist/Icon/iconFiles/Crop.js.map +1 -0
- package/dist/Icon/iconFiles/Cross.d.ts +1 -1
- package/dist/Icon/iconFiles/Cross.js +5 -0
- package/dist/Icon/iconFiles/Cross.js.map +1 -0
- package/dist/Icon/iconFiles/DashboardHigh.d.ts +1 -1
- package/dist/Icon/iconFiles/DashboardHigh.js +8 -0
- package/dist/Icon/iconFiles/DashboardHigh.js.map +1 -0
- package/dist/Icon/iconFiles/DirectDebit.d.ts +1 -1
- package/dist/Icon/iconFiles/DirectDebit.js +5 -0
- package/dist/Icon/iconFiles/DirectDebit.js.map +1 -0
- package/dist/Icon/iconFiles/DocDownload.d.ts +1 -1
- package/dist/Icon/iconFiles/DocDownload.js +5 -0
- package/dist/Icon/iconFiles/DocDownload.js.map +1 -0
- package/dist/Icon/iconFiles/DocUpload.d.ts +1 -1
- package/dist/Icon/iconFiles/DocUpload.js +5 -0
- package/dist/Icon/iconFiles/DocUpload.js.map +1 -0
- package/dist/Icon/iconFiles/Download.d.ts +1 -1
- package/dist/Icon/iconFiles/Download.js +5 -0
- package/dist/Icon/iconFiles/Download.js.map +1 -0
- package/dist/Icon/iconFiles/Earth.d.ts +1 -1
- package/dist/Icon/iconFiles/Earth.js +9 -0
- package/dist/Icon/iconFiles/Earth.js.map +1 -0
- package/dist/Icon/iconFiles/Edit.d.ts +1 -1
- package/dist/Icon/iconFiles/Edit.js +5 -0
- package/dist/Icon/iconFiles/Edit.js.map +1 -0
- package/dist/Icon/iconFiles/EditContact.d.ts +1 -1
- package/dist/Icon/iconFiles/EditContact.js +6 -0
- package/dist/Icon/iconFiles/EditContact.js.map +1 -0
- package/dist/Icon/iconFiles/EditOutline.d.ts +1 -1
- package/dist/Icon/iconFiles/EditOutline.js +5 -0
- package/dist/Icon/iconFiles/EditOutline.js.map +1 -0
- package/dist/Icon/iconFiles/EmailFilled.d.ts +1 -1
- package/dist/Icon/iconFiles/EmailFilled.js +5 -0
- package/dist/Icon/iconFiles/EmailFilled.js.map +1 -0
- package/dist/Icon/iconFiles/Engine.d.ts +1 -1
- package/dist/Icon/iconFiles/Engine.js +9 -0
- package/dist/Icon/iconFiles/Engine.js.map +1 -0
- package/dist/Icon/iconFiles/Europe.d.ts +1 -1
- package/dist/Icon/iconFiles/Europe.js +5 -0
- package/dist/Icon/iconFiles/Europe.js.map +1 -0
- package/dist/Icon/iconFiles/Excluded.d.ts +1 -1
- package/dist/Icon/iconFiles/Excluded.js +7 -0
- package/dist/Icon/iconFiles/Excluded.js.map +1 -0
- package/dist/Icon/iconFiles/Expand.d.ts +1 -1
- package/dist/Icon/iconFiles/Expand.js +5 -0
- package/dist/Icon/iconFiles/Expand.js.map +1 -0
- package/dist/Icon/iconFiles/Facebook.d.ts +1 -1
- package/dist/Icon/iconFiles/Facebook.js +5 -0
- package/dist/Icon/iconFiles/Facebook.js.map +1 -0
- package/dist/Icon/iconFiles/FallingItems.d.ts +1 -1
- package/dist/Icon/iconFiles/FallingItems.js +5 -0
- package/dist/Icon/iconFiles/FallingItems.js.map +1 -0
- package/dist/Icon/iconFiles/Fence.d.ts +1 -1
- package/dist/Icon/iconFiles/Fence.js +5 -0
- package/dist/Icon/iconFiles/Fence.js.map +1 -0
- package/dist/Icon/iconFiles/File.d.ts +1 -1
- package/dist/Icon/iconFiles/File.js +5 -0
- package/dist/Icon/iconFiles/File.js.map +1 -0
- package/dist/Icon/iconFiles/FileBadge2.d.ts +1 -1
- package/dist/Icon/iconFiles/FileBadge2.js +7 -0
- package/dist/Icon/iconFiles/FileBadge2.js.map +1 -0
- package/dist/Icon/iconFiles/FileCabinet.d.ts +1 -1
- package/dist/Icon/iconFiles/FileCabinet.js +10 -0
- package/dist/Icon/iconFiles/FileCabinet.js.map +1 -0
- package/dist/Icon/iconFiles/Filter.d.ts +1 -1
- package/dist/Icon/iconFiles/Filter.js +5 -0
- package/dist/Icon/iconFiles/Filter.js.map +1 -0
- package/dist/Icon/iconFiles/Fire.d.ts +1 -1
- package/dist/Icon/iconFiles/Fire.js +9 -0
- package/dist/Icon/iconFiles/Fire.js.map +1 -0
- package/dist/Icon/iconFiles/Flag.d.ts +1 -1
- package/dist/Icon/iconFiles/Flag.js +5 -0
- package/dist/Icon/iconFiles/Flag.js.map +1 -0
- package/dist/Icon/iconFiles/Folder.d.ts +1 -1
- package/dist/Icon/iconFiles/Folder.js +5 -0
- package/dist/Icon/iconFiles/Folder.js.map +1 -0
- package/dist/Icon/iconFiles/FraudAlert.d.ts +1 -1
- package/dist/Icon/iconFiles/FraudAlert.js +5 -0
- package/dist/Icon/iconFiles/FraudAlert.js.map +1 -0
- package/dist/Icon/iconFiles/FreezerFood.d.ts +1 -1
- package/dist/Icon/iconFiles/FreezerFood.js +5 -0
- package/dist/Icon/iconFiles/FreezerFood.js.map +1 -0
- package/dist/Icon/iconFiles/Fuel.d.ts +1 -1
- package/dist/Icon/iconFiles/Fuel.js +5 -0
- package/dist/Icon/iconFiles/Fuel.js.map +1 -0
- package/dist/Icon/iconFiles/Globe.d.ts +1 -1
- package/dist/Icon/iconFiles/Globe.js +5 -0
- package/dist/Icon/iconFiles/Globe.js.map +1 -0
- package/dist/Icon/iconFiles/GooglePlayBadge.d.ts +1 -1
- package/dist/Icon/iconFiles/GooglePlayBadge.js +94 -0
- package/dist/Icon/iconFiles/GooglePlayBadge.js.map +1 -0
- package/dist/Icon/iconFiles/Gpay.d.ts +1 -1
- package/dist/Icon/iconFiles/Gpay.js +12 -0
- package/dist/Icon/iconFiles/Gpay.js.map +1 -0
- package/dist/Icon/iconFiles/HelpAboutus.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpAboutus.js +5 -0
- package/dist/Icon/iconFiles/HelpAboutus.js.map +1 -0
- package/dist/Icon/iconFiles/HelpBuypolicy.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpBuypolicy.js +11 -0
- package/dist/Icon/iconFiles/HelpBuypolicy.js.map +1 -0
- package/dist/Icon/iconFiles/HelpCenter.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpCenter.js +8 -0
- package/dist/Icon/iconFiles/HelpCenter.js.map +1 -0
- package/dist/Icon/iconFiles/HelpIdcheck.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpIdcheck.js +13 -0
- package/dist/Icon/iconFiles/HelpIdcheck.js.map +1 -0
- package/dist/Icon/iconFiles/HelpManagePolicy.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpManagePolicy.js +7 -0
- package/dist/Icon/iconFiles/HelpManagePolicy.js.map +1 -0
- package/dist/Icon/iconFiles/HelpNcd.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpNcd.js +12 -0
- package/dist/Icon/iconFiles/HelpNcd.js.map +1 -0
- package/dist/Icon/iconFiles/HelpVerification.d.ts +1 -1
- package/dist/Icon/iconFiles/HelpVerification.js +6 -0
- package/dist/Icon/iconFiles/HelpVerification.js.map +1 -0
- package/dist/Icon/iconFiles/HomeExcluded.d.ts +1 -1
- package/dist/Icon/iconFiles/HomeExcluded.js +7 -0
- package/dist/Icon/iconFiles/HomeExcluded.js.map +1 -0
- package/dist/Icon/iconFiles/House.d.ts +1 -1
- package/dist/Icon/iconFiles/House.js +5 -0
- package/dist/Icon/iconFiles/House.js.map +1 -0
- package/dist/Icon/iconFiles/HouseTree.d.ts +1 -1
- package/dist/Icon/iconFiles/HouseTree.js +9 -0
- package/dist/Icon/iconFiles/HouseTree.js.map +1 -0
- package/dist/Icon/iconFiles/Id.d.ts +1 -1
- package/dist/Icon/iconFiles/Id.js +5 -0
- package/dist/Icon/iconFiles/Id.js.map +1 -0
- package/dist/Icon/iconFiles/Inbox.d.ts +1 -1
- package/dist/Icon/iconFiles/Inbox.js +7 -0
- package/dist/Icon/iconFiles/Inbox.js.map +1 -0
- package/dist/Icon/iconFiles/Included.d.ts +1 -1
- package/dist/Icon/iconFiles/Included.js +6 -0
- package/dist/Icon/iconFiles/Included.js.map +1 -0
- package/dist/Icon/iconFiles/Info.d.ts +1 -1
- package/dist/Icon/iconFiles/Info.js +5 -0
- package/dist/Icon/iconFiles/Info.js.map +1 -0
- package/dist/Icon/iconFiles/Injury.d.ts +1 -1
- package/dist/Icon/iconFiles/Injury.js +19 -0
- package/dist/Icon/iconFiles/Injury.js.map +1 -0
- package/dist/Icon/iconFiles/Instagram.d.ts +1 -1
- package/dist/Icon/iconFiles/Instagram.js +5 -0
- package/dist/Icon/iconFiles/Instagram.js.map +1 -0
- package/dist/Icon/iconFiles/Intercom.d.ts +1 -1
- package/dist/Icon/iconFiles/Intercom.js +5 -0
- package/dist/Icon/iconFiles/Intercom.js.map +1 -0
- package/dist/Icon/iconFiles/Intercom2.d.ts +1 -1
- package/dist/Icon/iconFiles/Intercom2.js +5 -0
- package/dist/Icon/iconFiles/Intercom2.js.map +1 -0
- package/dist/Icon/iconFiles/IosStoreBadge.d.ts +1 -1
- package/dist/Icon/iconFiles/IosStoreBadge.js +18 -0
- package/dist/Icon/iconFiles/IosStoreBadge.js.map +1 -0
- package/dist/Icon/iconFiles/Iphone.d.ts +1 -1
- package/dist/Icon/iconFiles/Iphone.js +5 -0
- package/dist/Icon/iconFiles/Iphone.js.map +1 -0
- package/dist/Icon/iconFiles/Jewellery.d.ts +1 -1
- package/dist/Icon/iconFiles/Jewellery.js +5 -0
- package/dist/Icon/iconFiles/Jewellery.js.map +1 -0
- package/dist/Icon/iconFiles/Key.d.ts +1 -1
- package/dist/Icon/iconFiles/Key.js +9 -0
- package/dist/Icon/iconFiles/Key.js.map +1 -0
- package/dist/Icon/iconFiles/Laptop.d.ts +1 -1
- package/dist/Icon/iconFiles/Laptop.js +5 -0
- package/dist/Icon/iconFiles/Laptop.js.map +1 -0
- package/dist/Icon/iconFiles/Leaks.d.ts +1 -1
- package/dist/Icon/iconFiles/Leaks.js +5 -0
- package/dist/Icon/iconFiles/Leaks.js.map +1 -0
- package/dist/Icon/iconFiles/Lightbulb.d.ts +1 -1
- package/dist/Icon/iconFiles/Lightbulb.js +6 -0
- package/dist/Icon/iconFiles/Lightbulb.js.map +1 -0
- package/dist/Icon/iconFiles/Link.d.ts +1 -1
- package/dist/Icon/iconFiles/Link.js +5 -0
- package/dist/Icon/iconFiles/Link.js.map +1 -0
- package/dist/Icon/iconFiles/Linkedin.d.ts +1 -1
- package/dist/Icon/iconFiles/Linkedin.js +5 -0
- package/dist/Icon/iconFiles/Linkedin.js.map +1 -0
- package/dist/Icon/iconFiles/LiveChat.d.ts +1 -1
- package/dist/Icon/iconFiles/LiveChat.js +8 -0
- package/dist/Icon/iconFiles/LiveChat.js.map +1 -0
- package/dist/Icon/iconFiles/LiveChat2.d.ts +1 -1
- package/dist/Icon/iconFiles/LiveChat2.js +7 -0
- package/dist/Icon/iconFiles/LiveChat2.js.map +1 -0
- package/dist/Icon/iconFiles/Location.d.ts +1 -1
- package/dist/Icon/iconFiles/Location.js +5 -0
- package/dist/Icon/iconFiles/Location.js.map +1 -0
- package/dist/Icon/iconFiles/LogOut.d.ts +1 -1
- package/dist/Icon/iconFiles/LogOut.js +6 -0
- package/dist/Icon/iconFiles/LogOut.js.map +1 -0
- package/dist/Icon/iconFiles/ManageDrivers.d.ts +1 -1
- package/dist/Icon/iconFiles/ManageDrivers.js +6 -0
- package/dist/Icon/iconFiles/ManageDrivers.js.map +1 -0
- package/dist/Icon/iconFiles/ManagePolicy.d.ts +1 -1
- package/dist/Icon/iconFiles/ManagePolicy.js +6 -0
- package/dist/Icon/iconFiles/ManagePolicy.js.map +1 -0
- package/dist/Icon/iconFiles/Marshmallow.d.ts +1 -1
- package/dist/Icon/iconFiles/Marshmallow.js +7 -0
- package/dist/Icon/iconFiles/Marshmallow.js.map +1 -0
- package/dist/Icon/iconFiles/Mastercard.d.ts +1 -1
- package/dist/Icon/iconFiles/Mastercard.js +9 -0
- package/dist/Icon/iconFiles/Mastercard.js.map +1 -0
- package/dist/Icon/iconFiles/Maximise.d.ts +1 -1
- package/dist/Icon/iconFiles/Maximise.js +9 -0
- package/dist/Icon/iconFiles/Maximise.js.map +1 -0
- package/dist/Icon/iconFiles/MaximiseWindow.d.ts +1 -1
- package/dist/Icon/iconFiles/MaximiseWindow.js +5 -0
- package/dist/Icon/iconFiles/MaximiseWindow.js.map +1 -0
- package/dist/Icon/iconFiles/Medical.d.ts +1 -1
- package/dist/Icon/iconFiles/Medical.js +5 -0
- package/dist/Icon/iconFiles/Medical.js.map +1 -0
- package/dist/Icon/iconFiles/Minimise.d.ts +1 -1
- package/dist/Icon/iconFiles/Minimise.js +5 -0
- package/dist/Icon/iconFiles/Minimise.js.map +1 -0
- package/dist/Icon/iconFiles/Minus.d.ts +1 -1
- package/dist/Icon/iconFiles/Minus.js +5 -0
- package/dist/Icon/iconFiles/Minus.js.map +1 -0
- package/dist/Icon/iconFiles/MinusCircle.d.ts +1 -1
- package/dist/Icon/iconFiles/MinusCircle.js +5 -0
- package/dist/Icon/iconFiles/MinusCircle.js.map +1 -0
- package/dist/Icon/iconFiles/MoneyBag.d.ts +1 -1
- package/dist/Icon/iconFiles/MoneyBag.js +5 -0
- package/dist/Icon/iconFiles/MoneyBag.js.map +1 -0
- package/dist/Icon/iconFiles/MoneyHeart.d.ts +1 -1
- package/dist/Icon/iconFiles/MoneyHeart.js +9 -0
- package/dist/Icon/iconFiles/MoneyHeart.js.map +1 -0
- package/dist/Icon/iconFiles/MoreDots.d.ts +1 -1
- package/dist/Icon/iconFiles/MoreDots.js +8 -0
- package/dist/Icon/iconFiles/MoreDots.js.map +1 -0
- package/dist/Icon/iconFiles/Mulsanne.d.ts +1 -1
- package/dist/Icon/iconFiles/Mulsanne.js +6 -0
- package/dist/Icon/iconFiles/Mulsanne.js.map +1 -0
- package/dist/Icon/iconFiles/NewWindow.d.ts +1 -1
- package/dist/Icon/iconFiles/NewWindow.js +5 -0
- package/dist/Icon/iconFiles/NewWindow.js.map +1 -0
- package/dist/Icon/iconFiles/NoExcess.d.ts +1 -1
- package/dist/Icon/iconFiles/NoExcess.js +5 -0
- package/dist/Icon/iconFiles/NoExcess.js.map +1 -0
- package/dist/Icon/iconFiles/Notes.d.ts +1 -1
- package/dist/Icon/iconFiles/Notes.js +5 -0
- package/dist/Icon/iconFiles/Notes.js.map +1 -0
- package/dist/Icon/iconFiles/Notification.d.ts +1 -1
- package/dist/Icon/iconFiles/Notification.js +6 -0
- package/dist/Icon/iconFiles/Notification.js.map +1 -0
- package/dist/Icon/iconFiles/Onfido.d.ts +1 -1
- package/dist/Icon/iconFiles/Onfido.js +9 -0
- package/dist/Icon/iconFiles/Onfido.js.map +1 -0
- package/dist/Icon/iconFiles/OpenPanel.d.ts +1 -1
- package/dist/Icon/iconFiles/OpenPanel.js +5 -0
- package/dist/Icon/iconFiles/OpenPanel.js.map +1 -0
- package/dist/Icon/iconFiles/Other.d.ts +1 -1
- package/dist/Icon/iconFiles/Other.js +5 -0
- package/dist/Icon/iconFiles/Other.js.map +1 -0
- package/dist/Icon/iconFiles/OutOfHome.d.ts +1 -1
- package/dist/Icon/iconFiles/OutOfHome.js +5 -0
- package/dist/Icon/iconFiles/OutOfHome.js.map +1 -0
- package/dist/Icon/iconFiles/Padlock.d.ts +1 -1
- package/dist/Icon/iconFiles/Padlock.js +5 -0
- package/dist/Icon/iconFiles/Padlock.js.map +1 -0
- package/dist/Icon/iconFiles/PadlockOutline.d.ts +1 -1
- package/dist/Icon/iconFiles/PadlockOutline.js +7 -0
- package/dist/Icon/iconFiles/PadlockOutline.js.map +1 -0
- package/dist/Icon/iconFiles/Paperclip.d.ts +1 -1
- package/dist/Icon/iconFiles/Paperclip.js +5 -0
- package/dist/Icon/iconFiles/Paperclip.js.map +1 -0
- package/dist/Icon/iconFiles/People.d.ts +1 -1
- package/dist/Icon/iconFiles/People.js +5 -0
- package/dist/Icon/iconFiles/People.js.map +1 -0
- package/dist/Icon/iconFiles/Person.d.ts +1 -1
- package/dist/Icon/iconFiles/Person.js +5 -0
- package/dist/Icon/iconFiles/Person.js.map +1 -0
- package/dist/Icon/iconFiles/PhoneFilled.d.ts +1 -1
- package/dist/Icon/iconFiles/PhoneFilled.js +5 -0
- package/dist/Icon/iconFiles/PhoneFilled.js.map +1 -0
- package/dist/Icon/iconFiles/PhoneOutline.d.ts +1 -1
- package/dist/Icon/iconFiles/PhoneOutline.js +5 -0
- package/dist/Icon/iconFiles/PhoneOutline.js.map +1 -0
- package/dist/Icon/iconFiles/Photo.d.ts +1 -1
- package/dist/Icon/iconFiles/Photo.js +5 -0
- package/dist/Icon/iconFiles/Photo.js.map +1 -0
- package/dist/Icon/iconFiles/PinCode.d.ts +1 -1
- package/dist/Icon/iconFiles/PinCode.js +9 -0
- package/dist/Icon/iconFiles/PinCode.js.map +1 -0
- package/dist/Icon/iconFiles/Plus.d.ts +1 -1
- package/dist/Icon/iconFiles/Plus.js +5 -0
- package/dist/Icon/iconFiles/Plus.js.map +1 -0
- package/dist/Icon/iconFiles/PlusCircle.d.ts +1 -1
- package/dist/Icon/iconFiles/PlusCircle.js +5 -0
- package/dist/Icon/iconFiles/PlusCircle.js.map +1 -0
- package/dist/Icon/iconFiles/Policy.d.ts +1 -1
- package/dist/Icon/iconFiles/Policy.js +5 -0
- package/dist/Icon/iconFiles/Policy.js.map +1 -0
- package/dist/Icon/iconFiles/PolicyDetails.d.ts +1 -1
- package/dist/Icon/iconFiles/PolicyDetails.js +15 -0
- package/dist/Icon/iconFiles/PolicyDetails.js.map +1 -0
- package/dist/Icon/iconFiles/PolicyDoc.d.ts +1 -1
- package/dist/Icon/iconFiles/PolicyDoc.js +7 -0
- package/dist/Icon/iconFiles/PolicyDoc.js.map +1 -0
- package/dist/Icon/iconFiles/PolicyDocs.d.ts +1 -1
- package/dist/Icon/iconFiles/PolicyDocs.js +9 -0
- package/dist/Icon/iconFiles/PolicyDocs.js.map +1 -0
- package/dist/Icon/iconFiles/PoundBold.d.ts +1 -1
- package/dist/Icon/iconFiles/PoundBold.js +5 -0
- package/dist/Icon/iconFiles/PoundBold.js.map +1 -0
- package/dist/Icon/iconFiles/PoundFilledCircle.d.ts +1 -1
- package/dist/Icon/iconFiles/PoundFilledCircle.js +6 -0
- package/dist/Icon/iconFiles/PoundFilledCircle.js.map +1 -0
- package/dist/Icon/iconFiles/PoundMedium.d.ts +1 -1
- package/dist/Icon/iconFiles/PoundMedium.js +5 -0
- package/dist/Icon/iconFiles/PoundMedium.js.map +1 -0
- package/dist/Icon/iconFiles/PoundOutline.d.ts +1 -1
- package/dist/Icon/iconFiles/PoundOutline.js +7 -0
- package/dist/Icon/iconFiles/PoundOutline.js.map +1 -0
- package/dist/Icon/iconFiles/PoundRegular.d.ts +1 -1
- package/dist/Icon/iconFiles/PoundRegular.js +5 -0
- package/dist/Icon/iconFiles/PoundRegular.js.map +1 -0
- package/dist/Icon/iconFiles/Premfina.d.ts +1 -1
- package/dist/Icon/iconFiles/Premfina.js +7 -0
- package/dist/Icon/iconFiles/Premfina.js.map +1 -0
- package/dist/Icon/iconFiles/Profile.d.ts +1 -1
- package/dist/Icon/iconFiles/Profile.js +5 -0
- package/dist/Icon/iconFiles/Profile.js.map +1 -0
- package/dist/Icon/iconFiles/Progress.d.ts +1 -1
- package/dist/Icon/iconFiles/Progress.js +5 -0
- package/dist/Icon/iconFiles/Progress.js.map +1 -0
- package/dist/Icon/iconFiles/Prohibited.d.ts +1 -1
- package/dist/Icon/iconFiles/Prohibited.js +5 -0
- package/dist/Icon/iconFiles/Prohibited.js.map +1 -0
- package/dist/Icon/iconFiles/Property.d.ts +1 -1
- package/dist/Icon/iconFiles/Property.js +9 -0
- package/dist/Icon/iconFiles/Property.js.map +1 -0
- package/dist/Icon/iconFiles/QuestionHelp.d.ts +1 -1
- package/dist/Icon/iconFiles/QuestionHelp.js +7 -0
- package/dist/Icon/iconFiles/QuestionHelp.js.map +1 -0
- package/dist/Icon/iconFiles/Rac.d.ts +1 -1
- package/dist/Icon/iconFiles/Rac.js +9 -0
- package/dist/Icon/iconFiles/Rac.js.map +1 -0
- package/dist/Icon/iconFiles/Ravelin.d.ts +1 -1
- package/dist/Icon/iconFiles/Ravelin.js +5 -0
- package/dist/Icon/iconFiles/Ravelin.js.map +1 -0
- package/dist/Icon/iconFiles/ReferAFriend.d.ts +1 -1
- package/dist/Icon/iconFiles/ReferAFriend.js +8 -0
- package/dist/Icon/iconFiles/ReferAFriend.js.map +1 -0
- package/dist/Icon/iconFiles/Refund.d.ts +1 -1
- package/dist/Icon/iconFiles/Refund.js +8 -0
- package/dist/Icon/iconFiles/Refund.js.map +1 -0
- package/dist/Icon/iconFiles/RegPlate.d.ts +1 -1
- package/dist/Icon/iconFiles/RegPlate.js +8 -0
- package/dist/Icon/iconFiles/RegPlate.js.map +1 -0
- package/dist/Icon/iconFiles/Renewal.d.ts +1 -1
- package/dist/Icon/iconFiles/Renewal.js +10 -0
- package/dist/Icon/iconFiles/Renewal.js.map +1 -0
- package/dist/Icon/iconFiles/RenewalLine.d.ts +1 -1
- package/dist/Icon/iconFiles/RenewalLine.js +5 -0
- package/dist/Icon/iconFiles/RenewalLine.js.map +1 -0
- package/dist/Icon/iconFiles/RepeatCharge.d.ts +1 -1
- package/dist/Icon/iconFiles/RepeatCharge.js +9 -0
- package/dist/Icon/iconFiles/RepeatCharge.js.map +1 -0
- package/dist/Icon/iconFiles/Reply.d.ts +1 -1
- package/dist/Icon/iconFiles/Reply.js +7 -0
- package/dist/Icon/iconFiles/Reply.js.map +1 -0
- package/dist/Icon/iconFiles/Return.d.ts +1 -1
- package/dist/Icon/iconFiles/Return.js +5 -0
- package/dist/Icon/iconFiles/Return.js.map +1 -0
- package/dist/Icon/iconFiles/ScheduleQuote.d.ts +1 -1
- package/dist/Icon/iconFiles/ScheduleQuote.js +9 -0
- package/dist/Icon/iconFiles/ScheduleQuote.js.map +1 -0
- package/dist/Icon/iconFiles/Search.d.ts +1 -1
- package/dist/Icon/iconFiles/Search.js +5 -0
- package/dist/Icon/iconFiles/Search.js.map +1 -0
- package/dist/Icon/iconFiles/Security.d.ts +1 -1
- package/dist/Icon/iconFiles/Security.js +5 -0
- package/dist/Icon/iconFiles/Security.js.map +1 -0
- package/dist/Icon/iconFiles/SendMessage.d.ts +1 -1
- package/dist/Icon/iconFiles/SendMessage.js +9 -0
- package/dist/Icon/iconFiles/SendMessage.js.map +1 -0
- package/dist/Icon/iconFiles/Settings.d.ts +1 -1
- package/dist/Icon/iconFiles/Settings.js +7 -0
- package/dist/Icon/iconFiles/Settings.js.map +1 -0
- package/dist/Icon/iconFiles/Shield.d.ts +1 -1
- package/dist/Icon/iconFiles/Shield.js +5 -0
- package/dist/Icon/iconFiles/Shield.js.map +1 -0
- package/dist/Icon/iconFiles/ShieldCheck.d.ts +1 -1
- package/dist/Icon/iconFiles/ShieldCheck.js +7 -0
- package/dist/Icon/iconFiles/ShieldCheck.js.map +1 -0
- package/dist/Icon/iconFiles/Shopping.d.ts +1 -1
- package/dist/Icon/iconFiles/Shopping.js +6 -0
- package/dist/Icon/iconFiles/Shopping.js.map +1 -0
- package/dist/Icon/iconFiles/Sofa.d.ts +1 -1
- package/dist/Icon/iconFiles/Sofa.js +5 -0
- package/dist/Icon/iconFiles/Sofa.js.map +1 -0
- package/dist/Icon/iconFiles/Stack.d.ts +1 -1
- package/dist/Icon/iconFiles/Stack.js +9 -0
- package/dist/Icon/iconFiles/Stack.js.map +1 -0
- package/dist/Icon/iconFiles/Storm.d.ts +1 -1
- package/dist/Icon/iconFiles/Storm.js +5 -0
- package/dist/Icon/iconFiles/Storm.js.map +1 -0
- package/dist/Icon/iconFiles/Stripe.d.ts +1 -1
- package/dist/Icon/iconFiles/Stripe.js +5 -0
- package/dist/Icon/iconFiles/Stripe.js.map +1 -0
- package/dist/Icon/iconFiles/Subsidence.d.ts +1 -1
- package/dist/Icon/iconFiles/Subsidence.js +7 -0
- package/dist/Icon/iconFiles/Subsidence.js.map +1 -0
- package/dist/Icon/iconFiles/Theft.d.ts +1 -1
- package/dist/Icon/iconFiles/Theft.js +5 -0
- package/dist/Icon/iconFiles/Theft.js.map +1 -0
- package/dist/Icon/iconFiles/ThumbsDown.d.ts +1 -1
- package/dist/Icon/iconFiles/ThumbsDown.js +7 -0
- package/dist/Icon/iconFiles/ThumbsDown.js.map +1 -0
- package/dist/Icon/iconFiles/ThumbsUp.d.ts +1 -1
- package/dist/Icon/iconFiles/ThumbsUp.js +7 -0
- package/dist/Icon/iconFiles/ThumbsUp.js.map +1 -0
- package/dist/Icon/iconFiles/Tick.d.ts +1 -1
- package/dist/Icon/iconFiles/Tick.js +5 -0
- package/dist/Icon/iconFiles/Tick.js.map +1 -0
- package/dist/Icon/iconFiles/TowTruck.d.ts +1 -1
- package/dist/Icon/iconFiles/TowTruck.js +5 -0
- package/dist/Icon/iconFiles/TowTruck.js.map +1 -0
- package/dist/Icon/iconFiles/TraceAndAccess.d.ts +1 -1
- package/dist/Icon/iconFiles/TraceAndAccess.js +5 -0
- package/dist/Icon/iconFiles/TraceAndAccess.js.map +1 -0
- package/dist/Icon/iconFiles/Training.d.ts +1 -1
- package/dist/Icon/iconFiles/Training.js +5 -0
- package/dist/Icon/iconFiles/Training.js.map +1 -0
- package/dist/Icon/iconFiles/Trash.d.ts +1 -1
- package/dist/Icon/iconFiles/Trash.js +5 -0
- package/dist/Icon/iconFiles/Trash.js.map +1 -0
- package/dist/Icon/iconFiles/Twitter.d.ts +1 -1
- package/dist/Icon/iconFiles/Twitter.js +5 -0
- package/dist/Icon/iconFiles/Twitter.js.map +1 -0
- package/dist/Icon/iconFiles/UpDown.d.ts +1 -1
- package/dist/Icon/iconFiles/UpDown.js +6 -0
- package/dist/Icon/iconFiles/UpDown.js.map +1 -0
- package/dist/Icon/iconFiles/Upload.d.ts +1 -1
- package/dist/Icon/iconFiles/Upload.js +5 -0
- package/dist/Icon/iconFiles/Upload.js.map +1 -0
- package/dist/Icon/iconFiles/UploadDocuments.d.ts +1 -1
- package/dist/Icon/iconFiles/UploadDocuments.js +10 -0
- package/dist/Icon/iconFiles/UploadDocuments.js.map +1 -0
- package/dist/Icon/iconFiles/UploadEmail.d.ts +1 -1
- package/dist/Icon/iconFiles/UploadEmail.js +5 -0
- package/dist/Icon/iconFiles/UploadEmail.js.map +1 -0
- package/dist/Icon/iconFiles/Vandalism.d.ts +1 -1
- package/dist/Icon/iconFiles/Vandalism.js +5 -0
- package/dist/Icon/iconFiles/Vandalism.js.map +1 -0
- package/dist/Icon/iconFiles/Village.d.ts +1 -1
- package/dist/Icon/iconFiles/Village.js +5 -0
- package/dist/Icon/iconFiles/Village.js.map +1 -0
- package/dist/Icon/iconFiles/Visa.d.ts +1 -1
- package/dist/Icon/iconFiles/Visa.js +9 -0
- package/dist/Icon/iconFiles/Visa.js.map +1 -0
- package/dist/Icon/iconFiles/Warning.d.ts +1 -1
- package/dist/Icon/iconFiles/Warning.js +5 -0
- package/dist/Icon/iconFiles/Warning.js.map +1 -0
- package/dist/Icon/iconFiles/WarningCircle.d.ts +1 -1
- package/dist/Icon/iconFiles/WarningCircle.js +6 -0
- package/dist/Icon/iconFiles/WarningCircle.js.map +1 -0
- package/dist/Icon/iconFiles/Watch.d.ts +1 -1
- package/dist/Icon/iconFiles/Watch.js +5 -0
- package/dist/Icon/iconFiles/Watch.js.map +1 -0
- package/dist/Icon/iconFiles/Wave.d.ts +1 -1
- package/dist/Icon/iconFiles/Wave.js +5 -0
- package/dist/Icon/iconFiles/Wave.js.map +1 -0
- package/dist/Icon/iconFiles/Wellbeing.d.ts +1 -1
- package/dist/Icon/iconFiles/Wellbeing.js +5 -0
- package/dist/Icon/iconFiles/Wellbeing.js.map +1 -0
- package/dist/Icon/iconFiles/WheelFlat.d.ts +1 -1
- package/dist/Icon/iconFiles/WheelFlat.js +9 -0
- package/dist/Icon/iconFiles/WheelFlat.js.map +1 -0
- package/dist/Icon/iconFiles/Windscreen.d.ts +1 -1
- package/dist/Icon/iconFiles/Windscreen.js +5 -0
- package/dist/Icon/iconFiles/Windscreen.js.map +1 -0
- package/dist/Icon/iconFiles/WindscreenRepair.d.ts +1 -1
- package/dist/Icon/iconFiles/WindscreenRepair.js +5 -0
- package/dist/Icon/iconFiles/WindscreenRepair.js.map +1 -0
- package/dist/Icon/iconFiles/WindscreenReplacement.d.ts +1 -1
- package/dist/Icon/iconFiles/WindscreenReplacement.js +5 -0
- package/dist/Icon/iconFiles/WindscreenReplacement.js.map +1 -0
- package/dist/Icon/iconsList.d.ts +2 -2
- package/dist/Icon/iconsList.js +438 -0
- package/dist/Icon/iconsList.js.map +1 -0
- package/dist/Icon/index.js +2 -0
- package/dist/Icon/index.js.map +1 -0
- package/dist/IconStrict/IconStrict.js +53 -0
- package/dist/IconStrict/IconStrict.js.map +1 -0
- package/dist/IconStrict/index.js +2 -0
- package/dist/IconStrict/index.js.map +1 -0
- package/dist/IconWrapper/IconWrapper.js +24 -0
- package/dist/IconWrapper/IconWrapper.js.map +1 -0
- package/dist/IconWrapper/index.js +2 -0
- package/dist/IconWrapper/index.js.map +1 -0
- package/dist/LabelledText/LabelledText.js +16 -0
- package/dist/LabelledText/LabelledText.js.map +1 -0
- package/dist/LabelledText/index.js +2 -0
- package/dist/LabelledText/index.js.map +1 -0
- package/dist/Link/Link.d.ts +1 -1
- package/dist/Link/Link.js +77 -0
- package/dist/Link/Link.js.map +1 -0
- package/dist/Link/index.js +2 -0
- package/dist/Link/index.js.map +1 -0
- package/dist/Loader/Loader.js +251 -0
- package/dist/Loader/Loader.js.map +1 -0
- package/dist/Loader/index.js +2 -0
- package/dist/Loader/index.js.map +1 -0
- package/dist/Logo/Logo.js +55 -0
- package/dist/Logo/Logo.js.map +1 -0
- package/dist/Logo/index.js +2 -0
- package/dist/Logo/index.js.map +1 -0
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +82 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/index.js +2 -0
- package/dist/Modal/index.js.map +1 -0
- package/dist/NumberInput/NumberInput.d.ts +1 -1
- package/dist/NumberInput/NumberInput.js +91 -0
- package/dist/NumberInput/NumberInput.js.map +1 -0
- package/dist/NumberInput/index.js +2 -0
- package/dist/NumberInput/index.js.map +1 -0
- package/dist/Pagination/Pagination.js +139 -0
- package/dist/Pagination/Pagination.js.map +1 -0
- package/dist/Pagination/index.js +2 -0
- package/dist/Pagination/index.js.map +1 -0
- package/dist/RadioGroup/RadioElement.d.ts +1 -1
- package/dist/RadioGroup/RadioElement.js +38 -0
- package/dist/RadioGroup/RadioElement.js.map +1 -0
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup/RadioGroup.js +44 -0
- package/dist/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/RadioGroup/RadioItem.d.ts +1 -1
- package/dist/RadioGroup/RadioItem.js +98 -0
- package/dist/RadioGroup/RadioItem.js.map +1 -0
- package/dist/RadioGroup/constants.js +2 -0
- package/dist/RadioGroup/constants.js.map +1 -0
- package/dist/RadioGroup/index.js +2 -0
- package/dist/RadioGroup/index.js.map +1 -0
- package/dist/RadioGroup/types.js +2 -0
- package/dist/RadioGroup/types.js.map +1 -0
- package/dist/RichText/RichText.d.ts +1 -1
- package/dist/RichText/RichText.js +35 -0
- package/dist/RichText/RichText.js.map +1 -0
- package/dist/RichText/index.js +2 -0
- package/dist/RichText/index.js.map +1 -0
- package/dist/RichTextEditor/RichTextEditor.js +88 -0
- package/dist/RichTextEditor/RichTextEditor.js.map +1 -0
- package/dist/RichTextEditor/index.js +2 -0
- package/dist/RichTextEditor/index.js.map +1 -0
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.d.ts +1 -1
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.js +28 -0
- package/dist/RichTextEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.js +21 -0
- package/dist/RichTextEditor/plugins/EditorDefaultUpdatePlugin.js.map +1 -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 +1 -1
- package/dist/RichTextEditor/plugins/ToolbarPlugin.js +227 -0
- package/dist/RichTextEditor/plugins/ToolbarPlugin.js.map +1 -0
- package/dist/RichTextEditor/plugins/index.js +2 -0
- package/dist/RichTextEditor/plugins/index.js.map +1 -0
- package/dist/RichTextEditor/utils.js +15 -0
- package/dist/RichTextEditor/utils.js.map +1 -0
- package/dist/Row/Row.js +50 -0
- package/dist/Row/Row.js.map +1 -0
- package/dist/Row/index.js +2 -0
- package/dist/Row/index.js.map +1 -0
- package/dist/SearchInput/SearchInput.d.ts +3 -3
- package/dist/SearchInput/SearchInput.js +165 -0
- package/dist/SearchInput/SearchInput.js.map +1 -0
- package/dist/SearchInput/components/EmptyResults.js +11 -0
- package/dist/SearchInput/components/EmptyResults.js.map +1 -0
- package/dist/SearchInput/components/SearchOptions.js +96 -0
- package/dist/SearchInput/components/SearchOptions.js.map +1 -0
- package/dist/SearchInput/index.js +2 -0
- package/dist/SearchInput/index.js.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +59 -0
- package/dist/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/SegmentedControl/ToggleButton.d.ts +1 -1
- package/dist/SegmentedControl/ToggleButton.js +32 -0
- package/dist/SegmentedControl/ToggleButton.js.map +1 -0
- package/dist/SegmentedControl/index.js +2 -0
- package/dist/SegmentedControl/index.js.map +1 -0
- package/dist/SliderInput/SliderInput.d.ts +1 -1
- package/dist/SliderInput/SliderInput.js +56 -0
- package/dist/SliderInput/SliderInput.js.map +1 -0
- package/dist/SliderInput/index.js +2 -0
- package/dist/SliderInput/index.js.map +1 -0
- package/dist/Snackbar/SnackbarContainer.d.ts +1 -1
- package/dist/Snackbar/SnackbarContainer.js +45 -0
- package/dist/Snackbar/SnackbarContainer.js.map +1 -0
- package/dist/Snackbar/SnackbarItem.js +26 -0
- package/dist/Snackbar/SnackbarItem.js.map +1 -0
- package/dist/Snackbar/hooks.d.ts +1 -1
- package/dist/Snackbar/hooks.js +6 -0
- package/dist/Snackbar/hooks.js.map +1 -0
- package/dist/Snackbar/index.js +3 -0
- package/dist/Snackbar/index.js.map +1 -0
- package/dist/Snackbar/types.js +2 -0
- package/dist/Snackbar/types.js.map +1 -0
- package/dist/SupportMessage/SupportMessage.js +86 -0
- package/dist/SupportMessage/SupportMessage.js.map +1 -0
- package/dist/SupportMessage/index.js +2 -0
- package/dist/SupportMessage/index.js.map +1 -0
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Table.js +31 -0
- package/dist/Table/Table.js.map +1 -0
- package/dist/Table/components/RowActions.d.ts +1 -1
- package/dist/Table/components/RowActions.js +59 -0
- package/dist/Table/components/RowActions.js.map +1 -0
- package/dist/Table/components/TableHeader.d.ts +1 -1
- package/dist/Table/components/TableHeader.js +8 -0
- package/dist/Table/components/TableHeader.js.map +1 -0
- package/dist/Table/components/TableRow.d.ts +1 -1
- package/dist/Table/components/TableRow.js +71 -0
- package/dist/Table/components/TableRow.js.map +1 -0
- package/dist/Table/components/commonComponents.d.ts +4 -4
- package/dist/Table/components/commonComponents.js +138 -0
- package/dist/Table/components/commonComponents.js.map +1 -0
- package/dist/Table/helpers.js +12 -0
- package/dist/Table/helpers.js.map +1 -0
- package/dist/Table/index.js +3 -0
- package/dist/Table/index.js.map +1 -0
- package/dist/Table/types.d.ts +1 -1
- package/dist/Table/types.js +2 -0
- package/dist/Table/types.js.map +1 -0
- package/dist/Tag/Tag.js +28 -0
- package/dist/Tag/Tag.js.map +1 -0
- package/dist/Tag/index.js +2 -0
- package/dist/Tag/index.js.map +1 -0
- package/dist/Text/Text.js +152 -0
- package/dist/Text/Text.js.map +1 -0
- package/dist/Text/fontMapping.js +87 -0
- package/dist/Text/fontMapping.js.map +1 -0
- package/dist/Text/index.js +2 -0
- package/dist/Text/index.js.map +1 -0
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.d.ts +1 -1
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.js +48 -0
- package/dist/TextDateOfBirthInput/TextDateOfBirthInput.js.map +1 -0
- package/dist/TextDateOfBirthInput/index.js +2 -0
- package/dist/TextDateOfBirthInput/index.js.map +1 -0
- package/dist/TextInput/TextInput.d.ts +1 -1
- package/dist/TextInput/TextInput.js +30 -0
- package/dist/TextInput/TextInput.js.map +1 -0
- package/dist/TextInput/index.js +2 -0
- package/dist/TextInput/index.js.map +1 -0
- package/dist/Textarea/Textarea.d.ts +1 -1
- package/dist/Textarea/Textarea.js +37 -0
- package/dist/Textarea/Textarea.js.map +1 -0
- package/dist/Textarea/index.js +2 -0
- package/dist/Textarea/index.js.map +1 -0
- package/dist/Toggle/Toggle.js +74 -0
- package/dist/Toggle/Toggle.js.map +1 -0
- package/dist/Toggle/index.js +2 -0
- package/dist/Toggle/index.js.map +1 -0
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/Tooltip.js +86 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/Tooltip/index.js +2 -0
- package/dist/Tooltip/index.js.map +1 -0
- package/dist/fields/Field/Field.d.ts +1 -1
- package/dist/fields/Field/Field.js +6 -0
- package/dist/fields/Field/Field.js.map +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 +1 -1
- package/dist/fields/Fieldset/Fieldset.js +6 -0
- package/dist/fields/Fieldset/Fieldset.js.map +1 -0
- package/dist/fields/Fieldset/index.js +2 -0
- package/dist/fields/Fieldset/index.js.map +1 -0
- package/dist/fields/commonFieldTypes.js +2 -0
- package/dist/fields/commonFieldTypes.js.map +1 -0
- package/dist/fields/components/CommonInput.d.ts +7 -7
- package/dist/fields/components/CommonInput.js +81 -0
- package/dist/fields/components/CommonInput.js.map +1 -0
- package/dist/fields/components/InternalField.d.ts +1 -1
- package/dist/fields/components/InternalField.js +54 -0
- package/dist/fields/components/InternalField.js.map +1 -0
- package/dist/fields/components/Placeholder.d.ts +1 -1
- package/dist/fields/components/Placeholder.js +25 -0
- package/dist/fields/components/Placeholder.js.map +1 -0
- package/dist/fontStyle.d.ts +1 -1
- package/dist/fontStyle.js +35 -0
- package/dist/fontStyle.js.map +1 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useBodyScrollLock/index.js +25 -0
- package/dist/hooks/useBodyScrollLock/index.js.map +1 -0
- package/dist/hooks/useClickOutside/index.js +24 -0
- package/dist/hooks/useClickOutside/index.js.map +1 -0
- package/dist/hooks/useEventListener/index.js +14 -0
- package/dist/hooks/useEventListener/index.js.map +1 -0
- package/dist/hooks/useScript/index.js +13 -0
- package/dist/hooks/useScript/index.js.map +1 -0
- package/dist/hooks/useTimeout/index.js +12 -0
- package/dist/hooks/useTimeout/index.js.map +1 -0
- package/dist/index.js +54 -11750
- package/dist/index.js.map +1 -1
- package/dist/theme.js +62 -0
- package/dist/theme.js.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/date.js +9 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.js +29 -0
- package/dist/utils/dateOfBirth/dateOfBirthValidator.js.map +1 -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.js +22 -0
- package/dist/utils/dateOfBirth/schema.js.map +1 -0
- package/dist/utils/debounce.js +19 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/deprecated.js +30 -0
- package/dist/utils/deprecated.js.map +1 -0
- package/dist/utils/flex.js +32 -0
- package/dist/utils/flex.js.map +1 -0
- package/dist/utils/focusOutline.d.ts +2 -2
- package/dist/utils/focusOutline.js +17 -0
- package/dist/utils/focusOutline.js.map +1 -0
- package/dist/utils/id.js +13 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/isReactElement.js +5 -0
- package/dist/utils/isReactElement.js.map +1 -0
- package/dist/utils/measure.js +12 -0
- package/dist/utils/measure.js.map +1 -0
- package/dist/utils/noop.js +3 -0
- package/dist/utils/noop.js.map +1 -0
- package/dist/utils/responsiveProp.js +31 -0
- package/dist/utils/responsiveProp.js.map +1 -0
- package/dist/utils/space.js +75 -0
- package/dist/utils/space.js.map +1 -0
- package/dist/utils/useControlledState.d.ts +1 -1
- package/dist/utils/useControlledState.js +13 -0
- package/dist/utils/useControlledState.js.map +1 -0
- package/dist/utils/utilTypes.js +2 -0
- package/dist/utils/utilTypes.js.map +1 -0
- package/dist/utils/visuallyHidden.js +14 -0
- package/dist/utils/visuallyHidden.js.map +1 -0
- package/package.json +2 -5
- package/dist/.gitkeep +0 -0
@@ -0,0 +1,138 @@
|
|
1
|
+
import { darken } from 'polished';
|
2
|
+
import styled, { css } from 'styled-components';
|
3
|
+
import { fontStyleMapping } from '../../Text/fontMapping';
|
4
|
+
import { theme } from '../../theme';
|
5
|
+
import { focusOutlineStyle } from '../../utils/focusOutline';
|
6
|
+
export const StyledTable = styled.table `
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
border-collapse: collapse;
|
10
|
+
overflow: auto;
|
11
|
+
background: ${theme.colors.coconut};
|
12
|
+
border-spacing: 30px;
|
13
|
+
`;
|
14
|
+
export const StyledHeaderCell = styled.th `
|
15
|
+
background: ${theme.colors.coconut};
|
16
|
+
border-bottom: ${({ $hasKeyline }) => $hasKeyline ? `1px solid ${theme.colors.liquorice}` : 'none'};
|
17
|
+
position: ${({ $fixedHeader }) => ($fixedHeader ? 'sticky' : 'auto')};
|
18
|
+
top: 0;
|
19
|
+
z-index: 2;
|
20
|
+
text-align: left;
|
21
|
+
vertical-align: bottom;
|
22
|
+
${fontStyleMapping.label};
|
23
|
+
padding-left: 8px;
|
24
|
+
padding-right: 8px;
|
25
|
+
padding-top: 8px;
|
26
|
+
padding-bottom: 8px;
|
27
|
+
|
28
|
+
${({ $headerColor }) => $headerColor &&
|
29
|
+
css `
|
30
|
+
background: ${theme.colors[$headerColor]};
|
31
|
+
`}
|
32
|
+
|
33
|
+
${({ $headerHeight }) => $headerHeight &&
|
34
|
+
css `
|
35
|
+
height: ${$headerHeight};
|
36
|
+
`}
|
37
|
+
|
38
|
+
${({ $maxWidth }) => $maxWidth &&
|
39
|
+
css `
|
40
|
+
max-width: ${$maxWidth};
|
41
|
+
`}
|
42
|
+
|
43
|
+
${({ $minWidth }) => $minWidth &&
|
44
|
+
css `
|
45
|
+
min-width: ${$minWidth};
|
46
|
+
`}
|
47
|
+
|
48
|
+
${({ $columnPadding }) => $columnPadding &&
|
49
|
+
css `
|
50
|
+
padding-left: ${$columnPadding};
|
51
|
+
padding-right: ${$columnPadding};
|
52
|
+
`};
|
53
|
+
`;
|
54
|
+
export const StyledCell = styled.td `
|
55
|
+
vertical-align: middle;
|
56
|
+
padding-left: 8px;
|
57
|
+
padding-right: 8px;
|
58
|
+
padding-top: 8px;
|
59
|
+
padding-bottom: 8px;
|
60
|
+
|
61
|
+
${({ $hideOverflow }) => $hideOverflow &&
|
62
|
+
css `
|
63
|
+
overflow: hidden;
|
64
|
+
`};
|
65
|
+
|
66
|
+
${({ $noWrapContent }) => $noWrapContent &&
|
67
|
+
css `
|
68
|
+
white-space: nowrap;
|
69
|
+
`};
|
70
|
+
|
71
|
+
${({ $truncateContent }) => $truncateContent &&
|
72
|
+
css `
|
73
|
+
overflow: hidden;
|
74
|
+
white-space: nowrap;
|
75
|
+
text-overflow: ellipsis;
|
76
|
+
`};
|
77
|
+
|
78
|
+
${({ $stickyCell }) => $stickyCell &&
|
79
|
+
css `
|
80
|
+
position: sticky;
|
81
|
+
right: 0;
|
82
|
+
`};
|
83
|
+
|
84
|
+
${({ $rowPadding }) => $rowPadding &&
|
85
|
+
css `
|
86
|
+
padding-top: ${$rowPadding};
|
87
|
+
padding-bottom: ${$rowPadding};
|
88
|
+
`};
|
89
|
+
|
90
|
+
${({ $columnPadding }) => $columnPadding &&
|
91
|
+
css `
|
92
|
+
padding-left: ${$columnPadding};
|
93
|
+
padding-right: ${$columnPadding};
|
94
|
+
`};
|
95
|
+
|
96
|
+
${({ $maxWidth }) => $maxWidth &&
|
97
|
+
css `
|
98
|
+
max-width: ${$maxWidth};
|
99
|
+
`}
|
100
|
+
|
101
|
+
${({ $rowActionsBgColor }) => $rowActionsBgColor &&
|
102
|
+
css `
|
103
|
+
background: ${theme.colors[$rowActionsBgColor]};
|
104
|
+
`}
|
105
|
+
`;
|
106
|
+
export const StyledRow = styled.tr `
|
107
|
+
background: ${theme.colors.custard};
|
108
|
+
|
109
|
+
${({ $rowBorderColor }) => $rowBorderColor &&
|
110
|
+
css `
|
111
|
+
border-bottom: 1px solid ${theme.colors[$rowBorderColor]};
|
112
|
+
`}
|
113
|
+
|
114
|
+
${({ $rowColor }) => $rowColor &&
|
115
|
+
css `
|
116
|
+
background: ${theme.colors[$rowColor]};
|
117
|
+
`}
|
118
|
+
|
119
|
+
${({ $stripedColor }) => $stripedColor &&
|
120
|
+
css `
|
121
|
+
&:nth-child(even) {
|
122
|
+
background: ${theme.colors[$stripedColor]};
|
123
|
+
}
|
124
|
+
`}
|
125
|
+
|
126
|
+
${({ $clickableRow, $rowColor }) => $clickableRow &&
|
127
|
+
css `
|
128
|
+
cursor: pointer;
|
129
|
+
&:hover {
|
130
|
+
background: ${darken(0.1, theme.colors[$rowColor ?? 'custard'])};
|
131
|
+
}
|
132
|
+
&:focus-visible {
|
133
|
+
${focusOutlineStyle}
|
134
|
+
background: ${darken(0.1, theme.colors[$rowColor ?? 'custard'])};
|
135
|
+
}
|
136
|
+
`}
|
137
|
+
`;
|
138
|
+
//# sourceMappingURL=commonComponents.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"commonComponents.js","sourceRoot":"","sources":["../../../src/Table/components/commonComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAG5D,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAA;;;;;gBAKvB,KAAK,CAAC,MAAM,CAAC,OAAO;;CAEnC,CAAA;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,EAAE,CAAkC;gBAC3D,KAAK,CAAC,MAAM,CAAC,OAAO;mBACjB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACnC,WAAW,CAAC,CAAC,CAAC,aAAa,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,MAAM;cAClD,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;;;;;IAKlE,gBAAgB,CAAC,KAAK;;;;;;IAMtB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CACrB,YAAY;IACZ,GAAG,CAAA;oBACa,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;KACzC;;IAED,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CACtB,aAAa;IACb,GAAG,CAAA;gBACS,aAAa;KACxB;;IAED,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAClB,SAAS;IACT,GAAG,CAAA;mBACY,SAAS;KACvB;;IAED,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAClB,SAAS;IACT,GAAG,CAAA;mBACY,SAAS;KACvB;;IAED,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CACvB,cAAc;IACd,GAAG,CAAA;sBACe,cAAc;uBACb,cAAc;KAChC;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,EAAE,CAAkC;;;;;;;IAOjE,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CACtB,aAAa;IACb,GAAG,CAAA;;KAEF;;IAED,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CACvB,cAAc;IACd,GAAG,CAAA;;KAEF;;IAED,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CACzB,gBAAgB;IAChB,GAAG,CAAA;;;;KAIF;;IAED,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACpB,WAAW;IACX,GAAG,CAAA;;;KAGF;;IAED,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CACpB,WAAW;IACX,GAAG,CAAA;qBACc,WAAW;wBACR,WAAW;KAC9B;;IAED,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CACvB,cAAc;IACd,GAAG,CAAA;sBACe,cAAc;uBACb,cAAc;KAChC;;IAED,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAClB,SAAS;IACT,GAAG,CAAA;mBACY,SAAS;KACvB;;IAED,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAC3B,kBAAkB;IAClB,GAAG,CAAA;oBACa,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC;KAC/C;CACJ,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,CAAkC;gBACpD,KAAK,CAAC,MAAM,CAAC,OAAO;;IAEhC,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CACxB,eAAe;IACf,GAAG,CAAA;iCAC0B,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;KACzD;;IAED,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAClB,SAAS;IACT,GAAG,CAAA;oBACa,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;KACtC;;IAED,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE,CACtB,aAAa;IACb,GAAG,CAAA;;sBAEe,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC;;KAE5C;;MAEC,CAAC,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,EAAE,CACnC,aAAa;IACb,GAAG,CAAA;;;sBAGe,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,SAAS,CAAC,CAAC;;;UAG7D,iBAAiB;sBACL,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,SAAS,CAAC,CAAC;;KAElE;CACJ,CAAA","sourcesContent":["import { darken } from 'polished'\nimport styled, { css } from 'styled-components'\nimport { TransientProps } from 'utils/utilTypes'\nimport { fontStyleMapping } from '../../Text/fontMapping'\nimport { theme } from '../../theme'\nimport { focusOutlineStyle } from '../../utils/focusOutline'\nimport { TableStylesProps } from '../types'\n\nexport const StyledTable = styled.table`\n width: 100%;\n height: 100%;\n border-collapse: collapse;\n overflow: auto;\n background: ${theme.colors.coconut};\n border-spacing: 30px;\n`\n\nexport const StyledHeaderCell = styled.th<TransientProps<TableStylesProps>>`\n background: ${theme.colors.coconut};\n border-bottom: ${({ $hasKeyline }) =>\n $hasKeyline ? `1px solid ${theme.colors.liquorice}` : 'none'};\n position: ${({ $fixedHeader }) => ($fixedHeader ? 'sticky' : 'auto')};\n top: 0;\n z-index: 2;\n text-align: left;\n vertical-align: bottom;\n ${fontStyleMapping.label};\n padding-left: 8px;\n padding-right: 8px;\n padding-top: 8px;\n padding-bottom: 8px;\n\n ${({ $headerColor }) =>\n $headerColor &&\n css`\n background: ${theme.colors[$headerColor]};\n `}\n\n ${({ $headerHeight }) =>\n $headerHeight &&\n css`\n height: ${$headerHeight};\n `}\n\n ${({ $maxWidth }) =>\n $maxWidth &&\n css`\n max-width: ${$maxWidth};\n `}\n\n ${({ $minWidth }) =>\n $minWidth &&\n css`\n min-width: ${$minWidth};\n `}\n \n ${({ $columnPadding }) =>\n $columnPadding &&\n css`\n padding-left: ${$columnPadding};\n padding-right: ${$columnPadding};\n `};\n`\n\nexport const StyledCell = styled.td<TransientProps<TableStylesProps>>`\n vertical-align: middle;\n padding-left: 8px;\n padding-right: 8px;\n padding-top: 8px;\n padding-bottom: 8px;\n\n ${({ $hideOverflow }) =>\n $hideOverflow &&\n css`\n overflow: hidden;\n `};\n\n ${({ $noWrapContent }) =>\n $noWrapContent &&\n css`\n white-space: nowrap;\n `};\n\n ${({ $truncateContent }) =>\n $truncateContent &&\n css`\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n `};\n\n ${({ $stickyCell }) =>\n $stickyCell &&\n css`\n position: sticky;\n right: 0;\n `};\n\n ${({ $rowPadding }) =>\n $rowPadding &&\n css`\n padding-top: ${$rowPadding};\n padding-bottom: ${$rowPadding};\n `};\n\n ${({ $columnPadding }) =>\n $columnPadding &&\n css`\n padding-left: ${$columnPadding};\n padding-right: ${$columnPadding};\n `};\n\n ${({ $maxWidth }) =>\n $maxWidth &&\n css`\n max-width: ${$maxWidth};\n `}\n\n ${({ $rowActionsBgColor }) =>\n $rowActionsBgColor &&\n css`\n background: ${theme.colors[$rowActionsBgColor]};\n `}\n`\n\nexport const StyledRow = styled.tr<TransientProps<TableStylesProps>>`\n background: ${theme.colors.custard};\n\n ${({ $rowBorderColor }) =>\n $rowBorderColor &&\n css`\n border-bottom: 1px solid ${theme.colors[$rowBorderColor]};\n `}\n\n ${({ $rowColor }) =>\n $rowColor &&\n css`\n background: ${theme.colors[$rowColor]};\n `}\n\n ${({ $stripedColor }) =>\n $stripedColor &&\n css`\n &:nth-child(even) {\n background: ${theme.colors[$stripedColor]};\n }\n `}\n\n ${({ $clickableRow, $rowColor }) =>\n $clickableRow &&\n css`\n cursor: pointer;\n &:hover {\n background: ${darken(0.1, theme.colors[$rowColor ?? 'custard'])};\n }\n &:focus-visible {\n ${focusOutlineStyle}\n background: ${darken(0.1, theme.colors[$rowColor ?? 'custard'])};\n }\n `}\n`\n"]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { isValidElement } from 'react';
|
2
|
+
export const isMappedReactElement = (obj) => {
|
3
|
+
if (!Array.isArray(obj))
|
4
|
+
return false;
|
5
|
+
if (!obj[0])
|
6
|
+
return false;
|
7
|
+
if (!isValidElement(obj[0]))
|
8
|
+
return false;
|
9
|
+
const allReactElements = obj.every((val, i, arr) => typeof val === typeof arr[0]);
|
10
|
+
return allReactElements;
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=helpers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/Table/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,cAAc,EAAE,MAAM,OAAO,CAAA;AAEpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,GAAY,EACgB,EAAE;IAC9B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IACrC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAAE,OAAO,KAAK,CAAA;IACzB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAAE,OAAO,KAAK,CAAA;IACzC,MAAM,gBAAgB,GAAG,GAAG,CAAC,KAAK,CAChC,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,OAAO,GAAG,CAAC,CAAC,CAAC,CAC9C,CAAA;IACD,OAAO,gBAAgB,CAAA;AACzB,CAAC,CAAA","sourcesContent":["import { ReactElement, isValidElement } from 'react'\n\nexport const isMappedReactElement = (\n obj: unknown,\n): obj is ReactElement<any>[] => {\n if (!Array.isArray(obj)) return false\n if (!obj[0]) return false\n if (!isValidElement(obj[0])) return false\n const allReactElements = obj.every(\n (val, i, arr) => typeof val === typeof arr[0],\n )\n return allReactElements\n}\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,uBAAuB,CAAA","sourcesContent":["export * from './Table'\nexport * from './components/TableRow'\n"]}
|
package/dist/Table/types.d.ts
CHANGED
@@ -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"]}
|
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
|
+
{"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,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
|
+
{"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,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":"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","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
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TextDateOfBirthInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA","sourcesContent":["export * from './TextDateOfBirthInput'\n"]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import React, { FocusEvent, FormEvent, HTMLInputAutoCompleteAttribute } from 'react';
|
2
2
|
import { CommonFieldProps } from '../fields/commonFieldTypes';
|
3
3
|
interface Props extends CommonFieldProps {
|
4
4
|
type?: 'text' | 'email' | 'password' | 'time' | 'date' | 'tel';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import React, { forwardRef, } from 'react';
|
2
|
+
import { Box } from '../Box';
|
3
|
+
import { Field } from '../fields/Field';
|
4
|
+
import { Input, StyledFrontIcon, StyledTrailingIcon, } from '../fields/components/CommonInput';
|
5
|
+
import { useUniqueId } from '../utils/id';
|
6
|
+
/**
|
7
|
+
* A reusable TextInput component that supports various input types, custom styling, icons,
|
8
|
+
* and autofill detection.
|
9
|
+
*
|
10
|
+
* ### Caveats:
|
11
|
+
* - `onAutoFill` triggers after animation end (animation duration is 2s),
|
12
|
+
* the animation starts when a user selects or hovers over an autofill option
|
13
|
+
*/
|
14
|
+
export const TextInput = forwardRef(function TextInput({ id: idProp, type = 'text', placeholder, name, value, error = false, onBlur, onChange, onInputChange, onAutoFill, disabled = false, frontIcon, trailingIcon, fallbackStyle, autoCompleteAttr = 'off', inputModeAttr, ...fieldProps }, ref) {
|
15
|
+
const id = useUniqueId(idProp);
|
16
|
+
const handleAnimationEnd = (e) => {
|
17
|
+
if (e.animationName === 'onAutoFillStart' && onAutoFill && !!value) {
|
18
|
+
onAutoFill();
|
19
|
+
}
|
20
|
+
};
|
21
|
+
return (React.createElement(Field, { ...fieldProps, htmlFor: id, error: error },
|
22
|
+
React.createElement(Box, { flex: true, alignItems: "center", justifyContent: "flex-start" },
|
23
|
+
frontIcon && (React.createElement(StyledFrontIcon, { "$disabled": disabled, render: frontIcon, color: "sesame" })),
|
24
|
+
React.createElement(Input, { disabled: disabled, type: type, id: id, name: name, ref: ref, onAnimationEnd: handleAnimationEnd, placeholder: placeholder, value: value, "$error": error, "$frontIcon": frontIcon, "$fallbackStyle": fallbackStyle, autoComplete: autoCompleteAttr, onChange: (e) => {
|
25
|
+
onChange && onChange(e.currentTarget.value);
|
26
|
+
onInputChange && onInputChange(e);
|
27
|
+
}, onBlur: onBlur, inputMode: inputModeAttr }),
|
28
|
+
trailingIcon && (React.createElement(StyledTrailingIcon, { "$disabled": disabled, render: trailingIcon, color: "sesame" })))));
|
29
|
+
});
|
30
|
+
//# sourceMappingURL=TextInput.js.map
|