@commerce7/admin-ui 2.0.46 → 2.0.48
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/lib/build.js +1 -1
- package/lib/types/alert/Alert.d.ts +42 -0
- package/lib/types/alert/Alert.styles.d.ts +16 -0
- package/lib/types/alert/index.d.ts +3 -0
- package/lib/types/alert/theme.d.ts +110 -0
- package/lib/types/avatar/Avatar.d.ts +30 -0
- package/lib/types/avatar/Avatar.styles.d.ts +12 -0
- package/lib/types/avatar/index.d.ts +3 -0
- package/lib/types/avatar/theme.d.ts +42 -0
- package/lib/types/breadcrumbs/Breadcrumb.d.ts +31 -0
- package/lib/types/breadcrumbs/Breadcrumb.styles.d.ts +3 -0
- package/lib/types/breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/lib/types/breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
- package/lib/types/breadcrumbs/index.d.ts +7 -0
- package/lib/types/button/Button.d.ts +60 -0
- package/lib/types/button/Button.styles.d.ts +26 -0
- package/lib/types/button/index.d.ts +3 -0
- package/lib/types/button/theme.d.ts +480 -0
- package/lib/types/buttonMenu/ButtonMenu.d.ts +39 -0
- package/lib/types/buttonMenu/ButtonMenuItem.d.ts +5 -0
- package/lib/types/buttonMenu/index.d.ts +7 -0
- package/lib/types/card/Card.d.ts +21 -0
- package/lib/types/card/Card.styles.d.ts +5 -0
- package/lib/types/card/index.d.ts +3 -0
- package/lib/types/card/theme.d.ts +21 -0
- package/lib/types/cardLink/CardLink.d.ts +41 -0
- package/lib/types/cardLink/CardLink.styles.d.ts +14 -0
- package/lib/types/cardLink/index.d.ts +3 -0
- package/lib/types/cardLink/theme.d.ts +21 -0
- package/lib/types/checkbox/Checkbox.d.ts +69 -0
- package/lib/types/checkbox/Checkbox.styles.d.ts +9 -0
- package/lib/types/checkbox/index.d.ts +3 -0
- package/lib/types/checkbox/theme.d.ts +49 -0
- package/lib/types/checkboxGroup/CheckboxGroup.d.ts +40 -0
- package/lib/types/checkboxGroup/index.d.ts +3 -0
- package/lib/types/columns/Column.d.ts +14 -0
- package/lib/types/columns/Columns.d.ts +29 -0
- package/lib/types/columns/Columns.styles.d.ts +11 -0
- package/lib/types/columns/index.d.ts +7 -0
- package/lib/types/common/contextMenu/ContextMenuItem.d.ts +39 -0
- package/lib/types/common/contextMenu/ContextMenuItem.styles.d.ts +7 -0
- package/lib/types/common/contextMenu/theme.d.ts +24 -0
- package/lib/types/common/dropdown/DropdownMenu.d.ts +30 -0
- package/lib/types/common/dropdown/DropdownMenu.styles.d.ts +6 -0
- package/lib/types/common/dropdown/DropdownWrapper.d.ts +17 -0
- package/lib/types/common/dropdown/DropdownWrapper.styles.d.ts +2 -0
- package/lib/types/common/dropdown/theme.d.ts +85 -0
- package/lib/types/common/form/helpers.d.ts +6 -0
- package/lib/types/common/form/styles.d.ts +42 -0
- package/lib/types/common/form/theme.d.ts +100 -0
- package/lib/types/contextMenu/ContextMenu.d.ts +17 -0
- package/lib/types/contextMenu/ContextMenu.styles.d.ts +2 -0
- package/lib/types/contextMenu/ContextMenuItem.d.ts +3 -0
- package/lib/types/contextMenu/ContextMenuMoreActions.d.ts +26 -0
- package/lib/types/contextMenu/index.d.ts +9 -0
- package/lib/types/dataDisplay/DataDisplay.d.ts +21 -0
- package/lib/types/dataDisplay/DataDisplay.styles.d.ts +5 -0
- package/lib/types/dataDisplay/index.d.ts +3 -0
- package/lib/types/dataDisplay/theme.d.ts +9 -0
- package/lib/types/datePicker/DatePicker.d.ts +81 -0
- package/lib/types/datePicker/DatePicker.styles.d.ts +3 -0
- package/lib/types/datePicker/DayDatePicker.d.ts +78 -0
- package/lib/types/datePicker/index.d.ts +4 -0
- package/lib/types/datePicker/theme.d.ts +62 -0
- package/lib/types/displayIcon/DisplayIcon.d.ts +34 -0
- package/lib/types/displayIcon/DisplayIcon.styles.d.ts +6 -0
- package/lib/types/displayIcon/IconWrapper.d.ts +22 -0
- package/lib/types/displayIcon/index.d.ts +3 -0
- package/lib/types/heading/Heading.d.ts +29 -0
- package/lib/types/heading/Heading.styles.d.ts +6 -0
- package/lib/types/heading/index.d.ts +3 -0
- package/lib/types/heading/theme.d.ts +25 -0
- package/lib/types/icon/Icon.d.ts +38 -0
- package/lib/types/icon/Icon.styles.d.ts +3 -0
- package/lib/types/icon/IconWrapper.styles.d.ts +2 -0
- package/lib/types/icon/icons/Add.d.ts +2 -0
- package/lib/types/icon/icons/AddCart.d.ts +2 -0
- package/lib/types/icon/icons/AddUser.d.ts +2 -0
- package/lib/types/icon/icons/Adjust.d.ts +2 -0
- package/lib/types/icon/icons/AlignCenter.d.ts +2 -0
- package/lib/types/icon/icons/AlignLeft.d.ts +2 -0
- package/lib/types/icon/icons/AlignRight.d.ts +2 -0
- package/lib/types/icon/icons/App.d.ts +2 -0
- package/lib/types/icon/icons/Application.d.ts +2 -0
- package/lib/types/icon/icons/ApplicationSwitcher.d.ts +2 -0
- package/lib/types/icon/icons/Archive.d.ts +2 -0
- package/lib/types/icon/icons/ArrowDivert.d.ts +2 -0
- package/lib/types/icon/icons/ArrowDown.d.ts +2 -0
- package/lib/types/icon/icons/ArrowLeft.d.ts +2 -0
- package/lib/types/icon/icons/ArrowRight.d.ts +2 -0
- package/lib/types/icon/icons/ArrowSpace.d.ts +2 -0
- package/lib/types/icon/icons/ArrowUp.d.ts +2 -0
- package/lib/types/icon/icons/Availability.d.ts +2 -0
- package/lib/types/icon/icons/Bag.d.ts +2 -0
- package/lib/types/icon/icons/Balloon.d.ts +2 -0
- package/lib/types/icon/icons/Bell.d.ts +2 -0
- package/lib/types/icon/icons/Book.d.ts +2 -0
- package/lib/types/icon/icons/Bounce.d.ts +2 -0
- package/lib/types/icon/icons/Brush.d.ts +2 -0
- package/lib/types/icon/icons/Bundle.d.ts +2 -0
- package/lib/types/icon/icons/Button.d.ts +2 -0
- package/lib/types/icon/icons/ButtonLine.d.ts +2 -0
- package/lib/types/icon/icons/Cake.d.ts +2 -0
- package/lib/types/icon/icons/Calendar.d.ts +2 -0
- package/lib/types/icon/icons/CalenderAdd.d.ts +2 -0
- package/lib/types/icon/icons/CalenderCross.d.ts +2 -0
- package/lib/types/icon/icons/Car.d.ts +2 -0
- package/lib/types/icon/icons/Carrot.d.ts +2 -0
- package/lib/types/icon/icons/Cart.d.ts +2 -0
- package/lib/types/icon/icons/Cash.d.ts +2 -0
- package/lib/types/icon/icons/Cashier.d.ts +2 -0
- package/lib/types/icon/icons/ChartBars.d.ts +2 -0
- package/lib/types/icon/icons/Chat.d.ts +2 -0
- package/lib/types/icon/icons/Check.d.ts +2 -0
- package/lib/types/icon/icons/CheckCircle.d.ts +2 -0
- package/lib/types/icon/icons/CheckIn.d.ts +2 -0
- package/lib/types/icon/icons/ChevronDown.d.ts +2 -0
- package/lib/types/icon/icons/ChevronUp.d.ts +2 -0
- package/lib/types/icon/icons/City.d.ts +2 -0
- package/lib/types/icon/icons/ClipboardText.d.ts +2 -0
- package/lib/types/icon/icons/Close.d.ts +2 -0
- package/lib/types/icon/icons/CloseCircle.d.ts +2 -0
- package/lib/types/icon/icons/Club.d.ts +2 -0
- package/lib/types/icon/icons/Code.d.ts +2 -0
- package/lib/types/icon/icons/Coin.d.ts +2 -0
- package/lib/types/icon/icons/Combine.d.ts +2 -0
- package/lib/types/icon/icons/Comment.d.ts +2 -0
- package/lib/types/icon/icons/ComplianceCheck.d.ts +2 -0
- package/lib/types/icon/icons/Construction.d.ts +2 -0
- package/lib/types/icon/icons/Copy.d.ts +2 -0
- package/lib/types/icon/icons/Customer.d.ts +2 -0
- package/lib/types/icon/icons/Dashboard.d.ts +2 -0
- package/lib/types/icon/icons/Database.d.ts +2 -0
- package/lib/types/icon/icons/Department.d.ts +2 -0
- package/lib/types/icon/icons/Developer.d.ts +2 -0
- package/lib/types/icon/icons/Discount.d.ts +2 -0
- package/lib/types/icon/icons/Document.d.ts +2 -0
- package/lib/types/icon/icons/DocumentImage.d.ts +2 -0
- package/lib/types/icon/icons/Dollar.d.ts +2 -0
- package/lib/types/icon/icons/Dolly.d.ts +2 -0
- package/lib/types/icon/icons/Download.d.ts +2 -0
- package/lib/types/icon/icons/Drag.d.ts +2 -0
- package/lib/types/icon/icons/Duplicate.d.ts +2 -0
- package/lib/types/icon/icons/Edit.d.ts +2 -0
- package/lib/types/icon/icons/Ellipsis.d.ts +2 -0
- package/lib/types/icon/icons/Email.d.ts +2 -0
- package/lib/types/icon/icons/EmailOpen.d.ts +2 -0
- package/lib/types/icon/icons/Enter.d.ts +2 -0
- package/lib/types/icon/icons/Euro.d.ts +2 -0
- package/lib/types/icon/icons/Exclamation.d.ts +2 -0
- package/lib/types/icon/icons/Exit.d.ts +2 -0
- package/lib/types/icon/icons/Export.d.ts +2 -0
- package/lib/types/icon/icons/Eye.d.ts +2 -0
- package/lib/types/icon/icons/EyeCrossed.d.ts +2 -0
- package/lib/types/icon/icons/FileExport.d.ts +2 -0
- package/lib/types/icon/icons/FileImport.d.ts +2 -0
- package/lib/types/icon/icons/Filter.d.ts +2 -0
- package/lib/types/icon/icons/Flag.d.ts +2 -0
- package/lib/types/icon/icons/Form.d.ts +2 -0
- package/lib/types/icon/icons/Gift.d.ts +2 -0
- package/lib/types/icon/icons/GiftCard.d.ts +2 -0
- package/lib/types/icon/icons/GradHat.d.ts +2 -0
- package/lib/types/icon/icons/Group.d.ts +2 -0
- package/lib/types/icon/icons/Hammer.d.ts +2 -0
- package/lib/types/icon/icons/Hand.d.ts +2 -0
- package/lib/types/icon/icons/Heart.d.ts +2 -0
- package/lib/types/icon/icons/HeartFilled.d.ts +2 -0
- package/lib/types/icon/icons/History.d.ts +2 -0
- package/lib/types/icon/icons/Image.d.ts +2 -0
- package/lib/types/icon/icons/ImagePlaceholder.d.ts +2 -0
- package/lib/types/icon/icons/Import.d.ts +2 -0
- package/lib/types/icon/icons/InfoCircle.d.ts +2 -0
- package/lib/types/icon/icons/Inventory.d.ts +2 -0
- package/lib/types/icon/icons/Language.d.ts +2 -0
- package/lib/types/icon/icons/Launch.d.ts +2 -0
- package/lib/types/icon/icons/LightBulb.d.ts +2 -0
- package/lib/types/icon/icons/Link.d.ts +2 -0
- package/lib/types/icon/icons/Loading.d.ts +2 -0
- package/lib/types/icon/icons/Location.d.ts +2 -0
- package/lib/types/icon/icons/LocationBottom.d.ts +2 -0
- package/lib/types/icon/icons/LocationPage.d.ts +2 -0
- package/lib/types/icon/icons/LocationTop.d.ts +2 -0
- package/lib/types/icon/icons/Lock.d.ts +2 -0
- package/lib/types/icon/icons/LogOut.d.ts +2 -0
- package/lib/types/icon/icons/Loyalty.d.ts +2 -0
- package/lib/types/icon/icons/Map.d.ts +2 -0
- package/lib/types/icon/icons/MapMarker.d.ts +2 -0
- package/lib/types/icon/icons/Marketing.d.ts +2 -0
- package/lib/types/icon/icons/MegaAdmin.d.ts +2 -0
- package/lib/types/icon/icons/Menu.d.ts +2 -0
- package/lib/types/icon/icons/Merge.d.ts +2 -0
- package/lib/types/icon/icons/Minus.d.ts +2 -0
- package/lib/types/icon/icons/Moon.d.ts +2 -0
- package/lib/types/icon/icons/MoreActions.d.ts +2 -0
- package/lib/types/icon/icons/Move.d.ts +2 -0
- package/lib/types/icon/icons/Network.d.ts +2 -0
- package/lib/types/icon/icons/NewTab.d.ts +2 -0
- package/lib/types/icon/icons/Note.d.ts +2 -0
- package/lib/types/icon/icons/Notification.d.ts +2 -0
- package/lib/types/icon/icons/Onboarding.d.ts +2 -0
- package/lib/types/icon/icons/Package.d.ts +2 -0
- package/lib/types/icon/icons/PaperPlane.d.ts +2 -0
- package/lib/types/icon/icons/PauseCircle.d.ts +2 -0
- package/lib/types/icon/icons/Percent.d.ts +2 -0
- package/lib/types/icon/icons/Phone.d.ts +2 -0
- package/lib/types/icon/icons/Platter.d.ts +2 -0
- package/lib/types/icon/icons/PlayCircle.d.ts +2 -0
- package/lib/types/icon/icons/Pointer.d.ts +2 -0
- package/lib/types/icon/icons/Pos.d.ts +2 -0
- package/lib/types/icon/icons/PosProfile.d.ts +2 -0
- package/lib/types/icon/icons/Pound.d.ts +2 -0
- package/lib/types/icon/icons/Power.d.ts +2 -0
- package/lib/types/icon/icons/Print.d.ts +2 -0
- package/lib/types/icon/icons/Process.d.ts +2 -0
- package/lib/types/icon/icons/Product.d.ts +2 -0
- package/lib/types/icon/icons/Qr.d.ts +2 -0
- package/lib/types/icon/icons/QuestionCircle.d.ts +2 -0
- package/lib/types/icon/icons/Rand.d.ts +2 -0
- package/lib/types/icon/icons/Receipt.d.ts +2 -0
- package/lib/types/icon/icons/Redo.d.ts +2 -0
- package/lib/types/icon/icons/RedoLarge.d.ts +2 -0
- package/lib/types/icon/icons/Reload.d.ts +2 -0
- package/lib/types/icon/icons/Remove.d.ts +2 -0
- package/lib/types/icon/icons/Report.d.ts +2 -0
- package/lib/types/icon/icons/Reservation.d.ts +2 -0
- package/lib/types/icon/icons/Rocket.d.ts +2 -0
- package/lib/types/icon/icons/Screen.d.ts +2 -0
- package/lib/types/icon/icons/Search.d.ts +2 -0
- package/lib/types/icon/icons/Security.d.ts +2 -0
- package/lib/types/icon/icons/Seedling.d.ts +2 -0
- package/lib/types/icon/icons/Send.d.ts +2 -0
- package/lib/types/icon/icons/Setting.d.ts +2 -0
- package/lib/types/icon/icons/Shuffle.d.ts +2 -0
- package/lib/types/icon/icons/Smartphone.d.ts +2 -0
- package/lib/types/icon/icons/Sparkle.d.ts +2 -0
- package/lib/types/icon/icons/Split.d.ts +2 -0
- package/lib/types/icon/icons/Star.d.ts +2 -0
- package/lib/types/icon/icons/Store.d.ts +2 -0
- package/lib/types/icon/icons/Sun.d.ts +2 -0
- package/lib/types/icon/icons/Support.d.ts +2 -0
- package/lib/types/icon/icons/SwitchUser.d.ts +2 -0
- package/lib/types/icon/icons/Sync.d.ts +2 -0
- package/lib/types/icon/icons/Table.d.ts +2 -0
- package/lib/types/icon/icons/Tag.d.ts +2 -0
- package/lib/types/icon/icons/Tasting.d.ts +2 -0
- package/lib/types/icon/icons/TextAlignCenter.d.ts +2 -0
- package/lib/types/icon/icons/TextAlignLeft.d.ts +2 -0
- package/lib/types/icon/icons/TextAlignRight.d.ts +2 -0
- package/lib/types/icon/icons/TextBold.d.ts +2 -0
- package/lib/types/icon/icons/TextCase.d.ts +2 -0
- package/lib/types/icon/icons/TextItalic.d.ts +2 -0
- package/lib/types/icon/icons/TextSize.d.ts +2 -0
- package/lib/types/icon/icons/ThumbsDown.d.ts +2 -0
- package/lib/types/icon/icons/ThumbsDownFilled.d.ts +2 -0
- package/lib/types/icon/icons/ThumbsUp.d.ts +2 -0
- package/lib/types/icon/icons/ThumbsUpFilled.d.ts +2 -0
- package/lib/types/icon/icons/Ticket.d.ts +2 -0
- package/lib/types/icon/icons/Time.d.ts +2 -0
- package/lib/types/icon/icons/Title.d.ts +2 -0
- package/lib/types/icon/icons/Transfer.d.ts +2 -0
- package/lib/types/icon/icons/Trash.d.ts +2 -0
- package/lib/types/icon/icons/Truck.d.ts +2 -0
- package/lib/types/icon/icons/Undo.d.ts +2 -0
- package/lib/types/icon/icons/UndoLarge.d.ts +2 -0
- package/lib/types/icon/icons/Upload.d.ts +2 -0
- package/lib/types/icon/icons/User.d.ts +2 -0
- package/lib/types/icon/icons/Users.d.ts +2 -0
- package/lib/types/icon/icons/Video.d.ts +2 -0
- package/lib/types/icon/icons/Wallet.d.ts +2 -0
- package/lib/types/icon/icons/Wand.d.ts +2 -0
- package/lib/types/icon/icons/Warning.d.ts +2 -0
- package/lib/types/icon/icons/Wine.d.ts +2 -0
- package/lib/types/icon/icons/Write.d.ts +2 -0
- package/lib/types/icon/icons/index.d.ts +199 -0
- package/lib/types/icon/index.d.ts +3 -0
- package/lib/types/icon/theme.d.ts +63 -0
- package/lib/types/index.d.ts +88 -0
- package/lib/types/infoCard/InfoCard.d.ts +46 -0
- package/lib/types/infoCard/InfoCard.styles.d.ts +19 -0
- package/lib/types/infoCard/InfoCardGrid.d.ts +17 -0
- package/lib/types/infoCard/index.d.ts +7 -0
- package/lib/types/infoCard/theme.d.ts +204 -0
- package/lib/types/input/ColorInput.d.ts +62 -0
- package/lib/types/input/Input.d.ts +93 -0
- package/lib/types/input/Input.styles.d.ts +17 -0
- package/lib/types/input/index.d.ts +3 -0
- package/lib/types/input/theme.d.ts +12 -0
- package/lib/types/legend/Legend.d.ts +30 -0
- package/lib/types/legend/index.d.ts +3 -0
- package/lib/types/lineBreak/LineBreak.d.ts +13 -0
- package/lib/types/lineBreak/LineBreak.styles.d.ts +2 -0
- package/lib/types/lineBreak/index.d.ts +3 -0
- package/lib/types/lineBreak/theme.d.ts +9 -0
- package/lib/types/linkButton/LinkButton.d.ts +71 -0
- package/lib/types/linkButton/index.d.ts +3 -0
- package/lib/types/modal/Modal.d.ts +47 -0
- package/lib/types/modal/Modal.styles.d.ts +10 -0
- package/lib/types/modal/ModalBody.d.ts +13 -0
- package/lib/types/modal/ModalBody.styles.d.ts +2 -0
- package/lib/types/modal/ModalContent.d.ts +46 -0
- package/lib/types/modal/ModalFooter.d.ts +13 -0
- package/lib/types/modal/ModalFooter.styles.d.ts +2 -0
- package/lib/types/modal/index.d.ts +9 -0
- package/lib/types/modal/theme.d.ts +12 -0
- package/lib/types/nav/Nav.d.ts +21 -0
- package/lib/types/nav/Nav.styles.d.ts +15 -0
- package/lib/types/nav/NavLink.d.ts +41 -0
- package/lib/types/nav/SubNav.d.ts +21 -0
- package/lib/types/nav/SubNavLink.d.ts +36 -0
- package/lib/types/nav/index.d.ts +11 -0
- package/lib/types/nav/theme.d.ts +108 -0
- package/lib/types/noRecords/NoRecords.d.ts +30 -0
- package/lib/types/noRecords/NoRecords.styles.d.ts +6 -0
- package/lib/types/noRecords/index.d.ts +3 -0
- package/lib/types/picture/Picture.d.ts +30 -0
- package/lib/types/picture/Picture.styles.d.ts +9 -0
- package/lib/types/picture/index.d.ts +3 -0
- package/lib/types/pieChart/Label.d.ts +33 -0
- package/lib/types/pieChart/PieChart.d.ts +76 -0
- package/lib/types/pieChart/Tooltip.d.ts +26 -0
- package/lib/types/pieChart/index.d.ts +3 -0
- package/lib/types/progressBar/ProgressBar.d.ts +30 -0
- package/lib/types/progressBar/ProgressBar.styles.d.ts +8 -0
- package/lib/types/progressBar/index.d.ts +3 -0
- package/lib/types/progressBar/theme.d.ts +15 -0
- package/lib/types/radio/Radio.d.ts +73 -0
- package/lib/types/radio/Radio.styles.d.ts +2 -0
- package/lib/types/radio/index.d.ts +3 -0
- package/lib/types/radio/theme.d.ts +49 -0
- package/lib/types/radioGroup/RadioGroup.d.ts +40 -0
- package/lib/types/radioGroup/index.d.ts +3 -0
- package/lib/types/region/Region.d.ts +21 -0
- package/lib/types/region/Region.styles.d.ts +6 -0
- package/lib/types/region/index.d.ts +3 -0
- package/lib/types/select/Options.d.ts +18 -0
- package/lib/types/select/Select.d.ts +61 -0
- package/lib/types/select/Select.styles.d.ts +9 -0
- package/lib/types/select/index.d.ts +3 -0
- package/lib/types/selectButton/SelectButton.d.ts +53 -0
- package/lib/types/selectButton/SelectButton.styles.d.ts +8 -0
- package/lib/types/selectButton/index.d.ts +3 -0
- package/lib/types/selectButton/theme.d.ts +93 -0
- package/lib/types/spinner/Spinner.d.ts +17 -0
- package/lib/types/spinner/Spinner.styles.d.ts +6 -0
- package/lib/types/spinner/index.d.ts +3 -0
- package/lib/types/stepper/Step.d.ts +43 -0
- package/lib/types/stepper/Stepper.d.ts +17 -0
- package/lib/types/stepper/Stepper.styles.d.ts +15 -0
- package/lib/types/stepper/index.d.ts +7 -0
- package/lib/types/stepper/theme.d.ts +31 -0
- package/lib/types/subMenu/SubMenu.d.ts +26 -0
- package/lib/types/subMenu/SubMenu.styles.d.ts +11 -0
- package/lib/types/subMenu/SubMenuItem.d.ts +36 -0
- package/lib/types/subMenu/index.d.ts +7 -0
- package/lib/types/switchComponent/Switch.styles.d.ts +2 -0
- package/lib/types/switchComponent/SwitchComponent.d.ts +51 -0
- package/lib/types/switchComponent/index.d.ts +3 -0
- package/lib/types/switchComponent/theme.d.ts +26 -0
- package/lib/types/table/Table.d.ts +17 -0
- package/lib/types/table/Table.styles.d.ts +3 -0
- package/lib/types/table/Tbody.d.ts +17 -0
- package/lib/types/table/Tbody.styles.d.ts +2 -0
- package/lib/types/table/Td.d.ts +30 -0
- package/lib/types/table/Td.styles.d.ts +2 -0
- package/lib/types/table/Tfoot.d.ts +17 -0
- package/lib/types/table/Tfoot.styles.d.ts +2 -0
- package/lib/types/table/Th.d.ts +26 -0
- package/lib/types/table/Th.styles.d.ts +2 -0
- package/lib/types/table/Thead.d.ts +18 -0
- package/lib/types/table/Thead.styles.d.ts +2 -0
- package/lib/types/table/Tr.d.ts +21 -0
- package/lib/types/table/Tr.styles.d.ts +2 -0
- package/lib/types/table/index.d.ts +17 -0
- package/lib/types/table/theme.d.ts +79 -0
- package/lib/types/tabs/Tab.d.ts +39 -0
- package/lib/types/tabs/TabBody.d.ts +17 -0
- package/lib/types/tabs/Tabs.d.ts +18 -0
- package/lib/types/tabs/Tabs.styles.d.ts +4 -0
- package/lib/types/tabs/index.d.ts +9 -0
- package/lib/types/tag/Tag.d.ts +39 -0
- package/lib/types/tag/Tag.styles.d.ts +19 -0
- package/lib/types/tag/index.d.ts +3 -0
- package/lib/types/tag/theme.d.ts +83 -0
- package/lib/types/text/Text.d.ts +53 -0
- package/lib/types/text/Text.styles.d.ts +2 -0
- package/lib/types/text/index.d.ts +3 -0
- package/lib/types/text/theme.d.ts +13 -0
- package/lib/types/textarea/Textarea.d.ts +67 -0
- package/lib/types/textarea/Textarea.styles.d.ts +8 -0
- package/lib/types/textarea/index.d.ts +3 -0
- package/lib/types/ui/Commerce7AdminUI.d.ts +15 -0
- package/lib/types/ui/index.d.ts +4 -0
- package/lib/types/ui/theme.d.ts +160 -0
- package/lib/types/utils/hooks/useEscKeydown.d.ts +2 -0
- package/lib/types/utils/hooks/useOnClickOutside.d.ts +2 -0
- package/lib/types/utils/hooks/useWindowSize.d.ts +8 -0
- package/lib/types/vividIcon/VividIcon.d.ts +34 -0
- package/lib/types/vividIcon/VividIcon.styles.d.ts +9 -0
- package/lib/types/vividIcon/index.d.ts +3 -0
- package/lib/types/vividIcon/theme.d.ts +108 -0
- package/package.json +5 -2
- package/tsconfig.build.json +13 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export namespace colors {
|
|
2
|
+
namespace light {
|
|
3
|
+
namespace backgroundColor {
|
|
4
|
+
let _default: string;
|
|
5
|
+
export { _default as default };
|
|
6
|
+
export let info: string;
|
|
7
|
+
export let error: string;
|
|
8
|
+
export let warning: string;
|
|
9
|
+
export let success: string;
|
|
10
|
+
export let tip: string;
|
|
11
|
+
}
|
|
12
|
+
namespace borderColor {
|
|
13
|
+
let _default_1: string;
|
|
14
|
+
export { _default_1 as default };
|
|
15
|
+
let info_1: string;
|
|
16
|
+
export { info_1 as info };
|
|
17
|
+
let error_1: string;
|
|
18
|
+
export { error_1 as error };
|
|
19
|
+
let warning_1: string;
|
|
20
|
+
export { warning_1 as warning };
|
|
21
|
+
let success_1: string;
|
|
22
|
+
export { success_1 as success };
|
|
23
|
+
let tip_1: string;
|
|
24
|
+
export { tip_1 as tip };
|
|
25
|
+
}
|
|
26
|
+
namespace iconBackgroundColor {
|
|
27
|
+
let _default_2: string;
|
|
28
|
+
export { _default_2 as default };
|
|
29
|
+
let info_2: string;
|
|
30
|
+
export { info_2 as info };
|
|
31
|
+
let error_2: string;
|
|
32
|
+
export { error_2 as error };
|
|
33
|
+
let warning_2: string;
|
|
34
|
+
export { warning_2 as warning };
|
|
35
|
+
let success_2: string;
|
|
36
|
+
export { success_2 as success };
|
|
37
|
+
let tip_2: string;
|
|
38
|
+
export { tip_2 as tip };
|
|
39
|
+
}
|
|
40
|
+
namespace iconFill {
|
|
41
|
+
let _default_3: string;
|
|
42
|
+
export { _default_3 as default };
|
|
43
|
+
let info_3: string;
|
|
44
|
+
export { info_3 as info };
|
|
45
|
+
let error_3: string;
|
|
46
|
+
export { error_3 as error };
|
|
47
|
+
let warning_3: string;
|
|
48
|
+
export { warning_3 as warning };
|
|
49
|
+
let success_3: string;
|
|
50
|
+
export { success_3 as success };
|
|
51
|
+
let tip_3: string;
|
|
52
|
+
export { tip_3 as tip };
|
|
53
|
+
}
|
|
54
|
+
namespace labelColor {
|
|
55
|
+
let _default_4: string;
|
|
56
|
+
export { _default_4 as default };
|
|
57
|
+
let info_4: string;
|
|
58
|
+
export { info_4 as info };
|
|
59
|
+
let error_4: string;
|
|
60
|
+
export { error_4 as error };
|
|
61
|
+
let warning_4: string;
|
|
62
|
+
export { warning_4 as warning };
|
|
63
|
+
let success_4: string;
|
|
64
|
+
export { success_4 as success };
|
|
65
|
+
let tip_4: string;
|
|
66
|
+
export { tip_4 as tip };
|
|
67
|
+
}
|
|
68
|
+
namespace fontColor {
|
|
69
|
+
let _default_5: string;
|
|
70
|
+
export { _default_5 as default };
|
|
71
|
+
let info_5: string;
|
|
72
|
+
export { info_5 as info };
|
|
73
|
+
let error_5: string;
|
|
74
|
+
export { error_5 as error };
|
|
75
|
+
let warning_5: string;
|
|
76
|
+
export { warning_5 as warning };
|
|
77
|
+
let success_5: string;
|
|
78
|
+
export { success_5 as success };
|
|
79
|
+
let tip_5: string;
|
|
80
|
+
export { tip_5 as tip };
|
|
81
|
+
}
|
|
82
|
+
namespace secondaryFontColor {
|
|
83
|
+
let _default_6: string;
|
|
84
|
+
export { _default_6 as default };
|
|
85
|
+
let info_6: string;
|
|
86
|
+
export { info_6 as info };
|
|
87
|
+
let error_6: string;
|
|
88
|
+
export { error_6 as error };
|
|
89
|
+
let warning_6: string;
|
|
90
|
+
export { warning_6 as warning };
|
|
91
|
+
let success_6: string;
|
|
92
|
+
export { success_6 as success };
|
|
93
|
+
let tip_6: string;
|
|
94
|
+
export { tip_6 as tip };
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
namespace dark {
|
|
98
|
+
export namespace backgroundColor_1 {
|
|
99
|
+
let _default_7: string;
|
|
100
|
+
export { _default_7 as default };
|
|
101
|
+
let info_7: string;
|
|
102
|
+
export { info_7 as info };
|
|
103
|
+
let error_7: string;
|
|
104
|
+
export { error_7 as error };
|
|
105
|
+
let warning_7: string;
|
|
106
|
+
export { warning_7 as warning };
|
|
107
|
+
let success_7: string;
|
|
108
|
+
export { success_7 as success };
|
|
109
|
+
let tip_7: string;
|
|
110
|
+
export { tip_7 as tip };
|
|
111
|
+
}
|
|
112
|
+
export { backgroundColor_1 as backgroundColor };
|
|
113
|
+
export namespace borderColor_1 {
|
|
114
|
+
let _default_8: string;
|
|
115
|
+
export { _default_8 as default };
|
|
116
|
+
let info_8: string;
|
|
117
|
+
export { info_8 as info };
|
|
118
|
+
let error_8: string;
|
|
119
|
+
export { error_8 as error };
|
|
120
|
+
let warning_8: string;
|
|
121
|
+
export { warning_8 as warning };
|
|
122
|
+
let success_8: string;
|
|
123
|
+
export { success_8 as success };
|
|
124
|
+
let tip_8: string;
|
|
125
|
+
export { tip_8 as tip };
|
|
126
|
+
}
|
|
127
|
+
export { borderColor_1 as borderColor };
|
|
128
|
+
export namespace iconBackgroundColor_1 {
|
|
129
|
+
let _default_9: string;
|
|
130
|
+
export { _default_9 as default };
|
|
131
|
+
let info_9: string;
|
|
132
|
+
export { info_9 as info };
|
|
133
|
+
let error_9: string;
|
|
134
|
+
export { error_9 as error };
|
|
135
|
+
let warning_9: string;
|
|
136
|
+
export { warning_9 as warning };
|
|
137
|
+
let success_9: string;
|
|
138
|
+
export { success_9 as success };
|
|
139
|
+
let tip_9: string;
|
|
140
|
+
export { tip_9 as tip };
|
|
141
|
+
}
|
|
142
|
+
export { iconBackgroundColor_1 as iconBackgroundColor };
|
|
143
|
+
export namespace iconFill_1 {
|
|
144
|
+
let _default_10: string;
|
|
145
|
+
export { _default_10 as default };
|
|
146
|
+
let info_10: string;
|
|
147
|
+
export { info_10 as info };
|
|
148
|
+
let error_10: string;
|
|
149
|
+
export { error_10 as error };
|
|
150
|
+
let warning_10: string;
|
|
151
|
+
export { warning_10 as warning };
|
|
152
|
+
let success_10: string;
|
|
153
|
+
export { success_10 as success };
|
|
154
|
+
let tip_10: string;
|
|
155
|
+
export { tip_10 as tip };
|
|
156
|
+
}
|
|
157
|
+
export { iconFill_1 as iconFill };
|
|
158
|
+
export namespace labelColor_1 {
|
|
159
|
+
let _default_11: string;
|
|
160
|
+
export { _default_11 as default };
|
|
161
|
+
let info_11: string;
|
|
162
|
+
export { info_11 as info };
|
|
163
|
+
let error_11: string;
|
|
164
|
+
export { error_11 as error };
|
|
165
|
+
let warning_11: string;
|
|
166
|
+
export { warning_11 as warning };
|
|
167
|
+
let success_11: string;
|
|
168
|
+
export { success_11 as success };
|
|
169
|
+
let tip_11: string;
|
|
170
|
+
export { tip_11 as tip };
|
|
171
|
+
}
|
|
172
|
+
export { labelColor_1 as labelColor };
|
|
173
|
+
export namespace fontColor_1 {
|
|
174
|
+
let _default_12: string;
|
|
175
|
+
export { _default_12 as default };
|
|
176
|
+
let info_12: string;
|
|
177
|
+
export { info_12 as info };
|
|
178
|
+
let error_12: string;
|
|
179
|
+
export { error_12 as error };
|
|
180
|
+
let warning_12: string;
|
|
181
|
+
export { warning_12 as warning };
|
|
182
|
+
let success_12: string;
|
|
183
|
+
export { success_12 as success };
|
|
184
|
+
let tip_12: string;
|
|
185
|
+
export { tip_12 as tip };
|
|
186
|
+
}
|
|
187
|
+
export { fontColor_1 as fontColor };
|
|
188
|
+
export namespace secondaryFontColor_1 {
|
|
189
|
+
let _default_13: string;
|
|
190
|
+
export { _default_13 as default };
|
|
191
|
+
let info_13: string;
|
|
192
|
+
export { info_13 as info };
|
|
193
|
+
let error_13: string;
|
|
194
|
+
export { error_13 as error };
|
|
195
|
+
let warning_13: string;
|
|
196
|
+
export { warning_13 as warning };
|
|
197
|
+
let success_13: string;
|
|
198
|
+
export { success_13 as success };
|
|
199
|
+
let tip_13: string;
|
|
200
|
+
export { tip_13 as tip };
|
|
201
|
+
}
|
|
202
|
+
export { secondaryFontColor_1 as secondaryFontColor };
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React, { ChangeEvent, FocusEvent, RefObject } from 'react';
|
|
2
|
+
interface ColorInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* The value of the color input
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Callback when input loses focus
|
|
9
|
+
*/
|
|
10
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Callback when input value changes
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the input is disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The id of the input
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Callback when input gains focus
|
|
25
|
+
*/
|
|
26
|
+
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the input is required
|
|
29
|
+
*/
|
|
30
|
+
required?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the input should auto focus
|
|
33
|
+
*/
|
|
34
|
+
autoFocus?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Ref to the input element
|
|
37
|
+
*/
|
|
38
|
+
ref?: RefObject<HTMLInputElement>;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the input has an error
|
|
41
|
+
*/
|
|
42
|
+
hasErrorMessage?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* ID of element describing the input
|
|
45
|
+
*/
|
|
46
|
+
ariaDescribedBy?: string;
|
|
47
|
+
/**
|
|
48
|
+
* ID of element labeling the input
|
|
49
|
+
*/
|
|
50
|
+
ariaLabelledBy?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the input is invalid
|
|
53
|
+
*/
|
|
54
|
+
ariaInvalid?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the input is required for accessibility
|
|
57
|
+
*/
|
|
58
|
+
ariaRequired?: boolean;
|
|
59
|
+
}
|
|
60
|
+
declare const ColorInput: ({ value, onBlur, onChange, disabled, id, onFocus, required, autoFocus, ref, hasErrorMessage, ariaDescribedBy, ariaLabelledBy, ariaInvalid, ariaRequired }: ColorInputProps) => React.JSX.Element;
|
|
61
|
+
export type { ColorInputProps };
|
|
62
|
+
export default ColorInput;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React, { ChangeEvent, FocusEvent } from 'react';
|
|
2
|
+
type InputMode = 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
3
|
+
type InputType = 'text' | 'number' | 'password' | 'email' | 'color';
|
|
4
|
+
export interface InputProps {
|
|
5
|
+
/**
|
|
6
|
+
* Set the element to autoFocus on mount.
|
|
7
|
+
*/
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Set the element autoComplete focus.
|
|
11
|
+
* This should be avoided except for rare cases.
|
|
12
|
+
*/
|
|
13
|
+
autoComplete?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Add className to the outermost element.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Help text to describe the form field
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Set the element to be disabled.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Add an icon to the start of the element.
|
|
28
|
+
* Valid icons include all options from the `<Icon/>` component.
|
|
29
|
+
*/
|
|
30
|
+
startIcon?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Add an icon to the end of the element.
|
|
33
|
+
* Valid icons include all options from the `<Icon/>` component.
|
|
34
|
+
*/
|
|
35
|
+
endIcon?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Adds a suffix in secondary font styling to end of input.
|
|
38
|
+
* Cannot be used with endIcon.
|
|
39
|
+
*/
|
|
40
|
+
suffix?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Show an error message and set the component styles to visually show an error.
|
|
43
|
+
*/
|
|
44
|
+
errorMessage?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Set the id of the element.
|
|
47
|
+
* The label uses this id to ensure htmlFor is set correctly.
|
|
48
|
+
*/
|
|
49
|
+
id?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The label for the component.
|
|
52
|
+
*/
|
|
53
|
+
label?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Set the inputmode of the element.
|
|
56
|
+
* This allows a browser to display an appropriate virtual keyboard.
|
|
57
|
+
*/
|
|
58
|
+
inputMode?: InputMode;
|
|
59
|
+
/**
|
|
60
|
+
* Callback onBlur.
|
|
61
|
+
*/
|
|
62
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Callback onChange.
|
|
65
|
+
*/
|
|
66
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Callback onFocus.
|
|
69
|
+
*/
|
|
70
|
+
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
71
|
+
/**
|
|
72
|
+
* The placeholder of the element.
|
|
73
|
+
*/
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Set the element to be required.
|
|
77
|
+
*/
|
|
78
|
+
required?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Set the element html type of the element.
|
|
81
|
+
*/
|
|
82
|
+
type?: InputType;
|
|
83
|
+
/**
|
|
84
|
+
* The value of the element.
|
|
85
|
+
*/
|
|
86
|
+
value?: string | number;
|
|
87
|
+
/**
|
|
88
|
+
* Add test attribute to the element. Used internally for testing.
|
|
89
|
+
*/
|
|
90
|
+
dataTestId?: string;
|
|
91
|
+
}
|
|
92
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
93
|
+
export default Input;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface StyledInputProps {
|
|
2
|
+
startIcon?: string;
|
|
3
|
+
endIcon?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const StyledInput: import("styled-components").StyledComponent<"input", any, import("../common/form/styles").StyledFormItemProps & {
|
|
6
|
+
as: string;
|
|
7
|
+
} & StyledInputProps, "as">;
|
|
8
|
+
declare const StyledIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
interface StyledInputIconProps {
|
|
10
|
+
iconPosition: 'start' | 'end';
|
|
11
|
+
}
|
|
12
|
+
declare const StyledInputIcon: import("styled-components").StyledComponent<{
|
|
13
|
+
({ className, icon, label, onClick, size, variant, dataTestId }: import("../icon").IconProps): import("react").JSX.Element | null;
|
|
14
|
+
displayName: string;
|
|
15
|
+
}, any, StyledInputIconProps, never>;
|
|
16
|
+
declare const StyledInputSuffix: import("styled-components").StyledComponent<import("react").FC<import("../text").TextProps>, any, {}, never>;
|
|
17
|
+
export { StyledInput, StyledIconWrapper, StyledInputIcon, StyledInputSuffix };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface LegendItem {
|
|
3
|
+
title?: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
color: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LegendProps {
|
|
8
|
+
/**
|
|
9
|
+
* The source data to render legend component
|
|
10
|
+
*/
|
|
11
|
+
data: {
|
|
12
|
+
title?: string;
|
|
13
|
+
value: string | number;
|
|
14
|
+
color: string;
|
|
15
|
+
}[];
|
|
16
|
+
/**
|
|
17
|
+
* Renders legends vertically if it is true
|
|
18
|
+
*/
|
|
19
|
+
isVertical?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The width of legend
|
|
22
|
+
*/
|
|
23
|
+
width?: string | number;
|
|
24
|
+
/**
|
|
25
|
+
* The header title of legend
|
|
26
|
+
*/
|
|
27
|
+
legendHeader?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Legend: FC<LegendProps>;
|
|
30
|
+
export default Legend;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LineBreakProps {
|
|
3
|
+
/**
|
|
4
|
+
* Add className to the outermost element.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Add test attribute to the element. Used internally for testing.
|
|
9
|
+
*/
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const LineBreak: ({ className, dataTestId }: LineBreakProps) => React.JSX.Element;
|
|
13
|
+
export default LineBreak;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
export interface LinkButtonProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the component.
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Add className to the outermost element
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The component to render as a replacement for `<a/>`.
|
|
13
|
+
* This can be used to pass in components from client-side routing libraries like react-router.
|
|
14
|
+
* If this property is set, all other props will be passed to the component.
|
|
15
|
+
*/
|
|
16
|
+
component?: ComponentType<any> | string;
|
|
17
|
+
/**
|
|
18
|
+
* Set the element to disabled.
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Add download to the dom element
|
|
23
|
+
*/
|
|
24
|
+
download?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Set the button to visually show a loading spinner.
|
|
27
|
+
* This will also disable the button.
|
|
28
|
+
*/
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The url to link to.
|
|
32
|
+
*/
|
|
33
|
+
href?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Set the rel property of the link
|
|
36
|
+
*/
|
|
37
|
+
rel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Control the size of the button
|
|
40
|
+
*/
|
|
41
|
+
size?: 'default' | 'small';
|
|
42
|
+
/**
|
|
43
|
+
* Add an icon to the start of the element.
|
|
44
|
+
* Valid icons include all options from the `<Icon/>` component.
|
|
45
|
+
*/
|
|
46
|
+
startIcon?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Add an icon to the end of the element.
|
|
49
|
+
*/
|
|
50
|
+
endIcon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Set the window to open the link in.
|
|
53
|
+
* If this field is set to '_blank', the rel prop should be set to 'noopener noreferrer' for security reasons.
|
|
54
|
+
*/
|
|
55
|
+
target?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Set the visual property of the component.
|
|
58
|
+
*/
|
|
59
|
+
variant?: 'primary' | 'secondary' | 'text' | 'link';
|
|
60
|
+
/**
|
|
61
|
+
* Add test attribute to the element. Used internally for testing.
|
|
62
|
+
*/
|
|
63
|
+
dataTestId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Callback fired when the component is clicked.
|
|
66
|
+
*/
|
|
67
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}
|
|
70
|
+
declare const LinkButton: React.ForwardRefExoticComponent<Omit<LinkButtonProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
71
|
+
export default LinkButton;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the component.
|
|
5
|
+
* Children should be rendered using ModalBody and ModalFooter
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Add className to the outermost element.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Disable scrolling on document.body while the modal is open.
|
|
14
|
+
* Setting disableBodyScroll to false should rarely be used.
|
|
15
|
+
*/
|
|
16
|
+
disableBodyScroll?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Callback fired when the modal is closed.
|
|
19
|
+
*/
|
|
20
|
+
onClose?: (() => void) | null;
|
|
21
|
+
/**
|
|
22
|
+
* The title of the modal.
|
|
23
|
+
*/
|
|
24
|
+
title?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Set the visibility of the Modal
|
|
27
|
+
*/
|
|
28
|
+
visible?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Add test attribute to the element. Used internally for testing.
|
|
31
|
+
*/
|
|
32
|
+
dataTestId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Disable focus lock on modal
|
|
35
|
+
*/
|
|
36
|
+
disableFocusLock?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Enable or disable the open/close animation.
|
|
39
|
+
*/
|
|
40
|
+
animate?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Duration of the open/close animation in milliseconds.
|
|
43
|
+
*/
|
|
44
|
+
animationDuration?: number;
|
|
45
|
+
}
|
|
46
|
+
declare const Modal: ({ children, className, disableBodyScroll, onClose, visible, title, dataTestId, disableFocusLock, animate, animationDuration }: ModalProps) => React.JSX.Element | null;
|
|
47
|
+
export default Modal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface AnimationProps {
|
|
2
|
+
closing?: boolean;
|
|
3
|
+
animate?: boolean;
|
|
4
|
+
animationDuration?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const StyledModalBackground: import("styled-components").StyledComponent<"div", any, AnimationProps, never>;
|
|
7
|
+
declare const StyledModalContent: import("styled-components").StyledComponent<"div", any, AnimationProps, never>;
|
|
8
|
+
declare const StyledModalHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
declare const StyledModalTitle: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
|
10
|
+
export { StyledModalBackground, StyledModalContent, StyledModalHeader, StyledModalTitle };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ModalBodyProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the component.
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Add className to the outermost element.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ModalBody: ({ children, className }: ModalBodyProps) => React.JSX.Element;
|
|
13
|
+
export default ModalBody;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { ReactNode, MouseEvent } from 'react';
|
|
2
|
+
export interface ModalContentProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the component.
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Add className to the outermost element.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Disable scrolling on document.body while the modal is open.
|
|
13
|
+
* Setting disableBodyScroll to false should rarely be used.
|
|
14
|
+
*/
|
|
15
|
+
disableBodyScroll?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Callback fired when the modal is closed.
|
|
18
|
+
*/
|
|
19
|
+
onClose?: ((e: MouseEvent | KeyboardEvent) => void) | null;
|
|
20
|
+
/**
|
|
21
|
+
* The title of the modal.
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Add test attribute to the element. Used internally for testing.
|
|
26
|
+
*/
|
|
27
|
+
dataTestId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Disable focus lock on modal
|
|
30
|
+
*/
|
|
31
|
+
disableFocusLock?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the modal is in its closing animation state.
|
|
34
|
+
*/
|
|
35
|
+
closing?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Enable or disable the animation.
|
|
38
|
+
*/
|
|
39
|
+
animate?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Duration of the animation in milliseconds.
|
|
42
|
+
*/
|
|
43
|
+
animationDuration?: number;
|
|
44
|
+
}
|
|
45
|
+
declare const ModalContent: ({ children, className, onClose, title, dataTestId, disableBodyScroll, disableFocusLock, closing, animate, animationDuration }: ModalContentProps) => React.ReactPortal;
|
|
46
|
+
export default ModalContent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface ModalFooterProps {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the component.
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Add className to the outermost element.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ModalFooter: ({ children, className }: ModalFooterProps) => React.JSX.Element;
|
|
13
|
+
export default ModalFooter;
|