@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,9 @@
|
|
|
1
|
+
import { ModalProps } from './Modal';
|
|
2
|
+
import { ModalBodyProps } from './ModalBody';
|
|
3
|
+
import { ModalFooterProps } from './ModalFooter';
|
|
4
|
+
declare const Modal: (({ children, className, disableBodyScroll, onClose, visible, title, dataTestId, disableFocusLock, animate, animationDuration }: ModalProps) => import("react").JSX.Element | null) & {
|
|
5
|
+
ModalBody: ({ children, className }: ModalBodyProps) => import("react").JSX.Element;
|
|
6
|
+
ModalFooter: ({ children, className }: ModalFooterProps) => import("react").JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export type { ModalProps, ModalBodyProps, ModalFooterProps };
|
|
9
|
+
export default Modal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export namespace colors {
|
|
2
|
+
namespace light {
|
|
3
|
+
let backgroundColor: string;
|
|
4
|
+
let borderColor: string;
|
|
5
|
+
}
|
|
6
|
+
namespace dark {
|
|
7
|
+
let backgroundColor_1: string;
|
|
8
|
+
export { backgroundColor_1 as backgroundColor };
|
|
9
|
+
let borderColor_1: string;
|
|
10
|
+
export { borderColor_1 as borderColor };
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface NavProps {
|
|
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
|
+
* Open or close Navigation menu
|
|
13
|
+
*/
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Add test attribute to the element. Used internally for testing.
|
|
17
|
+
*/
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Nav: ({ children, dataTestId, className, isOpen }: NavProps) => React.JSX.Element;
|
|
21
|
+
export default Nav;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const NavLinkIconStyles: import("styled-components").StyledComponent<{
|
|
2
|
+
({ className, icon, label, onClick, size, variant, dataTestId }: import("../icon").IconProps): import("react").JSX.Element | null;
|
|
3
|
+
displayName: string;
|
|
4
|
+
}, any, {}, never>;
|
|
5
|
+
declare const NavLinkStyles: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
6
|
+
declare const SubNavLinkStyles: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
7
|
+
interface SubNavStylesProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const SubNavStyles: import("styled-components").StyledComponent<"div", any, SubNavStylesProps, never>;
|
|
11
|
+
interface NavStylesProps {
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const NavStyles: import("styled-components").StyledComponent<"nav", any, NavStylesProps, never>;
|
|
15
|
+
export { NavLinkStyles, NavLinkIconStyles, SubNavLinkStyles, SubNavStyles, NavStyles };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { ReactNode, ComponentType, MouseEvent } from 'react';
|
|
2
|
+
export interface NavLinkProps {
|
|
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
|
+
* Add test attribute to the element. Used internally for testing.
|
|
13
|
+
*/
|
|
14
|
+
dataTestId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Icon displayed on the left side of the menu link.
|
|
17
|
+
* Valid icons include all options from the `<Icon/>` component.
|
|
18
|
+
*/
|
|
19
|
+
icon?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The component to render as a replacement for `<a/>`.
|
|
22
|
+
* This can be used to pass in components from client-side routing libraries like react-router.
|
|
23
|
+
* If this property is set, all other props will be passed to the component.
|
|
24
|
+
*/
|
|
25
|
+
component?: ComponentType<any> | string;
|
|
26
|
+
/**
|
|
27
|
+
* Callback fired when the component is clicked.
|
|
28
|
+
*/
|
|
29
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
30
|
+
/**
|
|
31
|
+
* The url to link to.
|
|
32
|
+
*/
|
|
33
|
+
href?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The active className to mark the component as active. Styling targets this classname.
|
|
36
|
+
*/
|
|
37
|
+
activeClassName?: string;
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}
|
|
40
|
+
declare const NavLink: ({ children, className, component, icon, onClick, href, dataTestId, activeClassName, ...rest }: NavLinkProps) => React.JSX.Element;
|
|
41
|
+
export default NavLink;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface SubNavProps {
|
|
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
|
+
* Open or close Sub Navigation menu
|
|
13
|
+
*/
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Add test attribute to the element. Used internally for testing.
|
|
17
|
+
*/
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const SubNav: (props: SubNavProps) => React.JSX.Element;
|
|
21
|
+
export default SubNav;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { ReactNode, ComponentType, MouseEvent } from 'react';
|
|
2
|
+
export interface SubNavLinkProps {
|
|
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
|
+
* Add test attribute to the element. Used internally for testing.
|
|
19
|
+
*/
|
|
20
|
+
dataTestId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Callback fired when the component is clicked.
|
|
23
|
+
*/
|
|
24
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
25
|
+
/**
|
|
26
|
+
* The url to link to.
|
|
27
|
+
*/
|
|
28
|
+
href?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The active className to mark the component as active. Styling targets this classname.
|
|
31
|
+
*/
|
|
32
|
+
activeClassName?: string;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}
|
|
35
|
+
declare const SubNavLink: (props: SubNavLinkProps) => React.JSX.Element;
|
|
36
|
+
export default SubNavLink;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NavProps } from './Nav';
|
|
2
|
+
import { NavLinkProps } from './NavLink';
|
|
3
|
+
import { SubNavProps } from './SubNav';
|
|
4
|
+
import { SubNavLinkProps } from './SubNavLink';
|
|
5
|
+
declare const Nav: (({ children, dataTestId, className, isOpen }: NavProps) => import("react").JSX.Element) & {
|
|
6
|
+
NavLink: ({ children, className, component, icon, onClick, href, dataTestId, activeClassName, ...rest }: NavLinkProps) => import("react").JSX.Element;
|
|
7
|
+
SubNav: (props: SubNavProps) => import("react").JSX.Element;
|
|
8
|
+
SubNavLink: (props: SubNavLinkProps) => import("react").JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export type { NavLinkProps, NavProps, SubNavLinkProps, SubNavProps };
|
|
11
|
+
export default Nav;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export namespace colors {
|
|
2
|
+
namespace light {
|
|
3
|
+
let backgroundColor: string;
|
|
4
|
+
let borderColor: string;
|
|
5
|
+
namespace primaryLink {
|
|
6
|
+
export namespace fontColor {
|
|
7
|
+
let _default: string;
|
|
8
|
+
export { _default as default };
|
|
9
|
+
export let active: string;
|
|
10
|
+
export let hover: string;
|
|
11
|
+
}
|
|
12
|
+
export namespace backgroundColor_1 {
|
|
13
|
+
let _default_1: string;
|
|
14
|
+
export { _default_1 as default };
|
|
15
|
+
let active_1: string;
|
|
16
|
+
export { active_1 as active };
|
|
17
|
+
let hover_1: string;
|
|
18
|
+
export { hover_1 as hover };
|
|
19
|
+
}
|
|
20
|
+
export { backgroundColor_1 as backgroundColor };
|
|
21
|
+
export namespace svgColor {
|
|
22
|
+
let _default_2: string;
|
|
23
|
+
export { _default_2 as default };
|
|
24
|
+
let active_2: string;
|
|
25
|
+
export { active_2 as active };
|
|
26
|
+
let hover_2: string;
|
|
27
|
+
export { hover_2 as hover };
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
namespace secondaryLink {
|
|
31
|
+
export namespace fontColor_1 {
|
|
32
|
+
let _default_3: string;
|
|
33
|
+
export { _default_3 as default };
|
|
34
|
+
let active_3: string;
|
|
35
|
+
export { active_3 as active };
|
|
36
|
+
let hover_3: string;
|
|
37
|
+
export { hover_3 as hover };
|
|
38
|
+
}
|
|
39
|
+
export { fontColor_1 as fontColor };
|
|
40
|
+
export namespace backgroundColor_2 {
|
|
41
|
+
let _default_4: string;
|
|
42
|
+
export { _default_4 as default };
|
|
43
|
+
let active_4: string;
|
|
44
|
+
export { active_4 as active };
|
|
45
|
+
let hover_4: string;
|
|
46
|
+
export { hover_4 as hover };
|
|
47
|
+
}
|
|
48
|
+
export { backgroundColor_2 as backgroundColor };
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
namespace dark {
|
|
52
|
+
let backgroundColor_3: string;
|
|
53
|
+
export { backgroundColor_3 as backgroundColor };
|
|
54
|
+
let borderColor_1: string;
|
|
55
|
+
export { borderColor_1 as borderColor };
|
|
56
|
+
export namespace primaryLink_1 {
|
|
57
|
+
export namespace fontColor_2 {
|
|
58
|
+
let _default_5: string;
|
|
59
|
+
export { _default_5 as default };
|
|
60
|
+
let active_5: string;
|
|
61
|
+
export { active_5 as active };
|
|
62
|
+
let hover_5: string;
|
|
63
|
+
export { hover_5 as hover };
|
|
64
|
+
}
|
|
65
|
+
export { fontColor_2 as fontColor };
|
|
66
|
+
export namespace backgroundColor_4 {
|
|
67
|
+
let _default_6: string;
|
|
68
|
+
export { _default_6 as default };
|
|
69
|
+
let active_6: string;
|
|
70
|
+
export { active_6 as active };
|
|
71
|
+
let hover_6: string;
|
|
72
|
+
export { hover_6 as hover };
|
|
73
|
+
}
|
|
74
|
+
export { backgroundColor_4 as backgroundColor };
|
|
75
|
+
export namespace svgColor_1 {
|
|
76
|
+
let _default_7: string;
|
|
77
|
+
export { _default_7 as default };
|
|
78
|
+
let active_7: string;
|
|
79
|
+
export { active_7 as active };
|
|
80
|
+
let hover_7: string;
|
|
81
|
+
export { hover_7 as hover };
|
|
82
|
+
}
|
|
83
|
+
export { svgColor_1 as svgColor };
|
|
84
|
+
}
|
|
85
|
+
export { primaryLink_1 as primaryLink };
|
|
86
|
+
export namespace secondaryLink_1 {
|
|
87
|
+
export namespace fontColor_3 {
|
|
88
|
+
let _default_8: string;
|
|
89
|
+
export { _default_8 as default };
|
|
90
|
+
let active_8: string;
|
|
91
|
+
export { active_8 as active };
|
|
92
|
+
let hover_8: string;
|
|
93
|
+
export { hover_8 as hover };
|
|
94
|
+
}
|
|
95
|
+
export { fontColor_3 as fontColor };
|
|
96
|
+
export namespace backgroundColor_5 {
|
|
97
|
+
let _default_9: string;
|
|
98
|
+
export { _default_9 as default };
|
|
99
|
+
let active_9: string;
|
|
100
|
+
export { active_9 as active };
|
|
101
|
+
let hover_9: string;
|
|
102
|
+
export { hover_9 as hover };
|
|
103
|
+
}
|
|
104
|
+
export { backgroundColor_5 as backgroundColor };
|
|
105
|
+
}
|
|
106
|
+
export { secondaryLink_1 as secondaryLink };
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type IconVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export interface NoRecordsProps {
|
|
4
|
+
/**
|
|
5
|
+
* The title for the component.
|
|
6
|
+
*/
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The description for below the title.
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The icon displayed.
|
|
14
|
+
*/
|
|
15
|
+
icon?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Add className to the outermost element.
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Add test attribute to the element. Used internally for testing.
|
|
22
|
+
*/
|
|
23
|
+
dataTestId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Set the visual property of the component.
|
|
26
|
+
*/
|
|
27
|
+
iconVariant?: IconVariant;
|
|
28
|
+
}
|
|
29
|
+
declare const NoRecords: ({ className, dataTestId, title, description, icon, iconVariant }: NoRecordsProps) => React.JSX.Element;
|
|
30
|
+
export default NoRecords;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const StyledEmptyMessage: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
declare const StyledHeading: import("styled-components").StyledComponent<{
|
|
3
|
+
({ children, level, marginBottom, className, dataTestId }: import("../heading").HeadingProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
}, any, {}, never>;
|
|
6
|
+
export { StyledEmptyMessage, StyledHeading };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PictureSource {
|
|
3
|
+
src?: string;
|
|
4
|
+
webp?: string;
|
|
5
|
+
avif?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PictureProps {
|
|
8
|
+
/**
|
|
9
|
+
* Add className to the outermost element.
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Add test attribute to the element. Used internally for testing.
|
|
14
|
+
*/
|
|
15
|
+
dataTestId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* If supplied image wrapper will have this height (width stretches to 100% of container).
|
|
18
|
+
*/
|
|
19
|
+
height?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Image src path OR object for modern image formats
|
|
22
|
+
*/
|
|
23
|
+
src?: string | PictureSource;
|
|
24
|
+
/**
|
|
25
|
+
* Alt text for the image
|
|
26
|
+
*/
|
|
27
|
+
alt: string;
|
|
28
|
+
}
|
|
29
|
+
declare const Picture: (props: PictureProps) => React.JSX.Element;
|
|
30
|
+
export default Picture;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface StyledPictureWrapperProps {
|
|
2
|
+
height?: number | null;
|
|
3
|
+
}
|
|
4
|
+
declare const StyledPictureWrapper: import("styled-components").StyledComponent<"div", any, StyledPictureWrapperProps, never>;
|
|
5
|
+
interface StyledPictureProps {
|
|
6
|
+
height?: number | null;
|
|
7
|
+
}
|
|
8
|
+
declare const StyledPicture: import("styled-components").StyledComponent<"picture", any, StyledPictureProps, never>;
|
|
9
|
+
export { StyledPicture, StyledPictureWrapper };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface LabelProps {
|
|
3
|
+
/**
|
|
4
|
+
* X-coordinate of the center
|
|
5
|
+
*/
|
|
6
|
+
cx?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Y-coordinate of the center
|
|
9
|
+
*/
|
|
10
|
+
cy?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Middle angle of the sector in degrees
|
|
13
|
+
*/
|
|
14
|
+
midAngle?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Inner radius of the pie chart
|
|
17
|
+
*/
|
|
18
|
+
innerRadius?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Outer radius of the pie chart
|
|
21
|
+
*/
|
|
22
|
+
outerRadius?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Percentage value represented by this sector
|
|
25
|
+
*/
|
|
26
|
+
percent?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Custom label component for pie chart sectors
|
|
30
|
+
* Displays the percentage value in the middle of each sector
|
|
31
|
+
*/
|
|
32
|
+
declare const Label: FC<LabelProps>;
|
|
33
|
+
export default Label;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React, { FC, ReactElement } from 'react';
|
|
2
|
+
import { PieLabel } from 'recharts';
|
|
3
|
+
import { ContentType } from 'recharts/types/component/DefaultLegendContent';
|
|
4
|
+
export interface PieChartProps {
|
|
5
|
+
/**
|
|
6
|
+
* The source data array to render pie chart
|
|
7
|
+
*/
|
|
8
|
+
data: {
|
|
9
|
+
name: string;
|
|
10
|
+
value: string | number;
|
|
11
|
+
}[];
|
|
12
|
+
/**
|
|
13
|
+
* Set color code for each cell in the pie. Ex: ['#42ACF0', '#DF5F5F', '#BF9D36'];
|
|
14
|
+
*/
|
|
15
|
+
colors: string[];
|
|
16
|
+
/**
|
|
17
|
+
* The percentage value of the chart's width or a fixed width.
|
|
18
|
+
*/
|
|
19
|
+
width?: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* The percentage value of the chart's height or a fixed height.
|
|
22
|
+
*/
|
|
23
|
+
height?: string | number;
|
|
24
|
+
/**
|
|
25
|
+
* The inner radius of the pie's shape
|
|
26
|
+
*/
|
|
27
|
+
innerRadius?: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* The outer radius of the pie's shape
|
|
30
|
+
*/
|
|
31
|
+
outerRadius?: string | number;
|
|
32
|
+
/**
|
|
33
|
+
* The prop to add positioning to PieChart. Refer: https://recharts.org/en-US/api/PieChart#margin
|
|
34
|
+
*/
|
|
35
|
+
margin?: {
|
|
36
|
+
top?: number;
|
|
37
|
+
right?: number;
|
|
38
|
+
bottom?: number;
|
|
39
|
+
left?: number;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* A component to render custom label in the pie chart
|
|
43
|
+
*/
|
|
44
|
+
label?: PieLabel<any> | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The prop to add positioning to legend component. Refer: https://recharts.org/en-US/api/Legend#wrapperStyle
|
|
47
|
+
*/
|
|
48
|
+
legendWrapperStyle?: React.CSSProperties | null;
|
|
49
|
+
/**
|
|
50
|
+
* A component to render custom legend in the pie chart
|
|
51
|
+
*/
|
|
52
|
+
legend?: ContentType | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The prop to align legend items. Refer: https://recharts.org/en-US/api/Legend#verticalAlign
|
|
55
|
+
*/
|
|
56
|
+
legendProps?: {
|
|
57
|
+
width?: number;
|
|
58
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
59
|
+
align?: 'left' | 'center' | 'right';
|
|
60
|
+
layout?: 'horizontal' | 'vertical';
|
|
61
|
+
} | null;
|
|
62
|
+
/**
|
|
63
|
+
* A component to render custom tooltip component. Refer: https://recharts.org/en-US/api/Tooltip#content
|
|
64
|
+
*/
|
|
65
|
+
tooltip?: ReactElement;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates whether the legend component is hidden
|
|
68
|
+
*/
|
|
69
|
+
hideLegend?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates whether the tooltip component is hidden
|
|
72
|
+
*/
|
|
73
|
+
hideTooltip?: boolean;
|
|
74
|
+
}
|
|
75
|
+
declare const PieChart: FC<PieChartProps>;
|
|
76
|
+
export default PieChart;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface PayloadItem {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
payload?: Record<string, any>;
|
|
6
|
+
dataKey?: string;
|
|
7
|
+
fill?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
interface ToolTipProps {
|
|
11
|
+
/**
|
|
12
|
+
* Whether the tooltip is currently active (visible)
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The data payload of the tooltip
|
|
17
|
+
*/
|
|
18
|
+
payload?: PayloadItem[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Custom tooltip component for pie charts
|
|
22
|
+
* Displays the name and value of the hovered segment
|
|
23
|
+
*/
|
|
24
|
+
declare const ToolTip: FC<ToolTipProps>;
|
|
25
|
+
export type { ToolTipProps, PayloadItem };
|
|
26
|
+
export default ToolTip;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ContentShape {
|
|
3
|
+
text?: string;
|
|
4
|
+
circleColor?: string;
|
|
5
|
+
progress?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ProgressBarProps {
|
|
8
|
+
/**
|
|
9
|
+
* Progress count of the bar.
|
|
10
|
+
*/
|
|
11
|
+
progress?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Add className to the outermost element.
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Content data shape.
|
|
18
|
+
*/
|
|
19
|
+
content?: ContentShape;
|
|
20
|
+
/**
|
|
21
|
+
* Color of the bar
|
|
22
|
+
*/
|
|
23
|
+
color?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Add test attribute to the element. Used internally for testing.
|
|
26
|
+
*/
|
|
27
|
+
dataTestId?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const ProgressBar: ({ progress, content, className, color, dataTestId }: ProgressBarProps) => React.JSX.Element;
|
|
30
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const StyledProgressBarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
declare const StyledProgressBar: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
progress: number;
|
|
4
|
+
color: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
declare const StyledContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
declare const StyledContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export { StyledProgressBarWrapper, StyledProgressBar, StyledContentWrapper, StyledContent };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export namespace colors {
|
|
2
|
+
namespace light {
|
|
3
|
+
namespace backgroundColor {
|
|
4
|
+
let _default: string;
|
|
5
|
+
export { _default as default };
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
namespace dark {
|
|
9
|
+
export namespace backgroundColor_1 {
|
|
10
|
+
let _default_1: string;
|
|
11
|
+
export { _default_1 as default };
|
|
12
|
+
}
|
|
13
|
+
export { backgroundColor_1 as backgroundColor };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React, { ChangeEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
type RadioVariant = 'button' | 'default';
|
|
3
|
+
type RadioSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export interface RadioProps {
|
|
5
|
+
/**
|
|
6
|
+
* Set the checked value of the element.
|
|
7
|
+
*/
|
|
8
|
+
checked: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Add className to the outermost element.
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Help text to describe the form field
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Set the element to be disabled.
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Show an error message and set the component styles to visually show an error.
|
|
23
|
+
*/
|
|
24
|
+
errorMessage?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Set the id of the element.
|
|
27
|
+
* The label uses this id to ensure htmlFor is set correctly.
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The label for the component.
|
|
32
|
+
*/
|
|
33
|
+
label?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Callback onChange.
|
|
36
|
+
*/
|
|
37
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback onClick, only used for button variant.
|
|
40
|
+
*/
|
|
41
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Set the element to be required.
|
|
44
|
+
* This will show an asterisk in the label and add 'required' to the DOM node.
|
|
45
|
+
*/
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The value of the element.
|
|
49
|
+
*/
|
|
50
|
+
value: string;
|
|
51
|
+
/**
|
|
52
|
+
* Add test attribute to the element. Used internally for testing.
|
|
53
|
+
*/
|
|
54
|
+
dataTestId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Radio Variant.
|
|
57
|
+
*/
|
|
58
|
+
variant?: RadioVariant;
|
|
59
|
+
/**
|
|
60
|
+
* Radio Size - only used for button variant.
|
|
61
|
+
*/
|
|
62
|
+
size?: RadioSize;
|
|
63
|
+
/**
|
|
64
|
+
* Icon for button variant only.
|
|
65
|
+
*/
|
|
66
|
+
icon?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Children for button variant only.
|
|
69
|
+
*/
|
|
70
|
+
children?: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
73
|
+
export default Radio;
|