@ovapos/ui 1.0.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/components/Accordion/Accordion.d.ts +17 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/AddressAutocomplete/AddressAutocomplete.d.ts +12 -0
- package/dist/components/AddressAutocomplete/AddressAutocomplete.types.d.ts +26 -0
- package/dist/components/AddressAutocomplete/AddressAutocomplete.utils.d.ts +3 -0
- package/dist/components/AddressAutocomplete/index.d.ts +1 -0
- package/dist/components/AlertBox/AlertBox.d.ts +10 -0
- package/dist/components/AlertBox/index.d.ts +2 -0
- package/dist/components/AreaChart/AreaChart.d.ts +7 -0
- package/dist/components/AreaChart/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +17 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/BarChart/BarChart.d.ts +8 -0
- package/dist/components/BarChart/BarChart.types.d.ts +4 -0
- package/dist/components/BarChart/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Calendar/Calendar.d.ts +13 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +28 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Carousel/Carousel.d.ts +3 -0
- package/dist/components/Carousel/Carousel.types.d.ts +16 -0
- package/dist/components/Carousel/Item.d.ts +8 -0
- package/dist/components/Carousel/index.d.ts +3 -0
- package/dist/components/Carousel/store.d.ts +11 -0
- package/dist/components/CarouselNavigation/CarouselNavigation..d.ts +9 -0
- package/dist/components/CarouselNavigation/index.d.ts +1 -0
- package/dist/components/Chip/Chip.d.ts +15 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/ConfirmationPopover/ConfirmationPopover.d.ts +11 -0
- package/dist/components/ConfirmationPopover/index.d.ts +1 -0
- package/dist/components/ContactsList/ContactList.types.d.ts +7 -0
- package/dist/components/ContactsList/ContactsList.d.ts +13 -0
- package/dist/components/ContactsList/index.d.ts +1 -0
- package/dist/components/Container/Container.d.ts +9 -0
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/CookieBanner/CookieBanner.constants.d.ts +3 -0
- package/dist/components/CookieBanner/CookieBanner.d.ts +5 -0
- package/dist/components/CookieBanner/index.d.ts +1 -0
- package/dist/components/DateBox/DateBox.d.ts +8 -0
- package/dist/components/DateBox/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +12 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DateSelector/DateSelector.d.ts +17 -0
- package/dist/components/DateSelector/DateSelector.types.d.ts +1 -0
- package/dist/components/DateSelector/index.d.ts +1 -0
- package/dist/components/Description/Description.d.ts +13 -0
- package/dist/components/Description/index.d.ts +1 -0
- package/dist/components/DnD/DnD.constants.d.ts +6 -0
- package/dist/components/DnD/DnD.hooks.d.ts +4 -0
- package/dist/components/DnD/DnD.types.d.ts +13 -0
- package/dist/components/DnD/DnDContext.d.ts +4 -0
- package/dist/components/DnD/DnDProvider.d.ts +5 -0
- package/dist/components/DnD/Draggable/Draggable.d.ts +8 -0
- package/dist/components/DnD/Draggable/index.d.ts +1 -0
- package/dist/components/DnD/Droppable.d.ts +9 -0
- package/dist/components/DnD/index.d.ts +5 -0
- package/dist/components/DonutChart/DonutChart.constants.d.ts +1 -0
- package/dist/components/DonutChart/DonutChart.d.ts +12 -0
- package/dist/components/DonutChart/DonutChart.types.d.ts +5 -0
- package/dist/components/DonutChart/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +15 -0
- package/dist/components/Drawer/Drawer.types.d.ts +19 -0
- package/dist/components/Drawer/Store.d.ts +11 -0
- package/dist/components/Drawer/Wrapper.d.ts +9 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/DropDown/DropDown.d.ts +4 -0
- package/dist/components/DropDown/DropDown.types.d.ts +24 -0
- package/dist/components/DropDown/DropDownMenuItem.d.ts +8 -0
- package/dist/components/DropDown/index.d.ts +1 -0
- package/dist/components/FAQ/FAQ.d.ts +7 -0
- package/dist/components/FAQ/FAQ.types.d.ts +5 -0
- package/dist/components/FAQ/index.d.ts +1 -0
- package/dist/components/FileIcon/FileIcon.d.ts +9 -0
- package/dist/components/FileIcon/index.d.ts +1 -0
- package/dist/components/Flex/Column/Column.d.ts +3 -0
- package/dist/components/Flex/Column/index.d.ts +1 -0
- package/dist/components/Flex/Flex.d.ts +9 -0
- package/dist/components/Flex/Flex.types.d.ts +30 -0
- package/dist/components/Flex/Row/Row.d.ts +3 -0
- package/dist/components/Flex/Row/index.d.ts +1 -0
- package/dist/components/Flex/index.d.ts +1 -0
- package/dist/components/FreeCountdown/FreeCountdown.d.ts +5 -0
- package/dist/components/FreeCountdown/index.d.ts +1 -0
- package/dist/components/Grid/Grid.d.ts +10 -0
- package/dist/components/Grid/index.d.ts +1 -0
- package/dist/components/Header/Header.d.ts +12 -0
- package/dist/components/Header/Header.types.d.ts +5 -0
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/Heading/Heading.d.ts +8 -0
- package/dist/components/Heading/index.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +22 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconLink/IconLink.d.ts +13 -0
- package/dist/components/IconLink/index.d.ts +1 -0
- package/dist/components/Input/AutoComplete/AutoComplete.d.ts +4 -0
- package/dist/components/Input/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Input/Checkbox/index.d.ts +1 -0
- package/dist/components/Input/DnD/DnD.d.ts +4 -0
- package/dist/components/Input/DnD/DnDSelectedFile.d.ts +7 -0
- package/dist/components/Input/DnD/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.types.d.ts +76 -0
- package/dist/components/Input/Input.utils.d.ts +2 -0
- package/dist/components/Input/NumberSteps/NumberSteps.d.ts +3 -0
- package/dist/components/Input/NumberSteps/index.d.ts +1 -0
- package/dist/components/Input/RadioInput/RadioInput.d.ts +4 -0
- package/dist/components/Input/RadioInput/index.d.ts +1 -0
- package/dist/components/Input/Select.d.ts +4 -0
- package/dist/components/Input/Slider/Slider.d.ts +4 -0
- package/dist/components/Input/Slider/index.d.ts +1 -0
- package/dist/components/Input/TextArea/TextArea.d.ts +4 -0
- package/dist/components/Input/TextArea/index.d.ts +1 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +3 -0
- package/dist/components/Link/Link.types.d.ts +11 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/ListItem/ListItem.d.ts +19 -0
- package/dist/components/ListItem/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +2 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/LoadingItem/LoadingItem.d.ts +9 -0
- package/dist/components/LoadingItem/index.d.ts +1 -0
- package/dist/components/MethodSelection/MethodSelection.d.ts +3 -0
- package/dist/components/MethodSelection/MethodSelection.types.d.ts +16 -0
- package/dist/components/MethodSelection/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +12 -0
- package/dist/components/Modal/Store.d.ts +11 -0
- package/dist/components/Modal/Wrapper.d.ts +9 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Numpad/Numpad.d.ts +8 -0
- package/dist/components/Numpad/index.d.ts +1 -0
- package/dist/components/OTPInput/OTPInput.d.ts +8 -0
- package/dist/components/OTPInput/index.d.ts +1 -0
- package/dist/components/Padding/Padding.d.ts +9 -0
- package/dist/components/Padding/index.d.ts +1 -0
- package/dist/components/PageLoading/PageLoading.d.ts +2 -0
- package/dist/components/PageLoading/index.d.ts +1 -0
- package/dist/components/Portal/PortalAround.d.ts +20 -0
- package/dist/components/Portal/index.d.ts +1 -0
- package/dist/components/Progress/Progress.d.ts +9 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/ProgressCard/ProgressCard.d.ts +12 -0
- package/dist/components/ProgressCard/index.d.ts +1 -0
- package/dist/components/Quantity/Quantity.d.ts +10 -0
- package/dist/components/Quantity/index.d.ts +1 -0
- package/dist/components/SVGIcon/SVGIcon.d.ts +12 -0
- package/dist/components/SVGIcon/SVGIcon.types.d.ts +10 -0
- package/dist/components/SVGIcon/index.d.ts +2 -0
- package/dist/components/Section/Section.d.ts +10 -0
- package/dist/components/Section/index.d.ts +1 -0
- package/dist/components/Sidebar/Parent.d.ts +10 -0
- package/dist/components/Sidebar/Sidebar.d.ts +16 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +12 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +22 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +3 -0
- package/dist/components/Text/Text.types.d.ts +15 -0
- package/dist/components/Text/index.d.ts +1 -0
- package/dist/components/TextBanner/TextBanner.d.ts +8 -0
- package/dist/components/TextBanner/index.d.ts +1 -0
- package/dist/components/TimePicker/TimePicker.d.ts +3 -0
- package/dist/components/TimePicker/TimePicker.types.d.ts +13 -0
- package/dist/components/TimePicker/index.d.ts +1 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +10 -0
- package/dist/components/ToggleSwitch/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +10 -0
- package/dist/components/Tooltip/TooltipPortal.d.ts +5 -0
- package/dist/components/Tooltip/TooltipWrapper.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +6 -0
- package/dist/components/VisuallyHidden/index.d.ts +1 -0
- package/dist/constants/email.d.ts +1 -0
- package/dist/constants/image.d.ts +1 -0
- package/dist/constants/responsive.d.ts +12 -0
- package/dist/icons/AlertCircle.d.ts +3 -0
- package/dist/icons/AlignLeft.d.ts +3 -0
- package/dist/icons/AnnotationHeart.d.ts +3 -0
- package/dist/icons/Award.d.ts +3 -0
- package/dist/icons/BagCheck.d.ts +3 -0
- package/dist/icons/Bakery.d.ts +3 -0
- package/dist/icons/BankNote.d.ts +3 -0
- package/dist/icons/BarChart.d.ts +3 -0
- package/dist/icons/BeerMug.d.ts +3 -0
- package/dist/icons/Bell.d.ts +3 -0
- package/dist/icons/BellRinging.d.ts +3 -0
- package/dist/icons/BookOpen.d.ts +3 -0
- package/dist/icons/Bookmark.d.ts +3 -0
- package/dist/icons/BookmarkCheck.d.ts +3 -0
- package/dist/icons/Branch.d.ts +3 -0
- package/dist/icons/Building07.d.ts +3 -0
- package/dist/icons/Calendar.d.ts +3 -0
- package/dist/icons/CalendarPlus.d.ts +3 -0
- package/dist/icons/Camera.d.ts +3 -0
- package/dist/icons/Car.d.ts +3 -0
- package/dist/icons/Check.d.ts +3 -0
- package/dist/icons/CheckCircle.d.ts +3 -0
- package/dist/icons/CheckCircleBroken.d.ts +3 -0
- package/dist/icons/CheckSquare.d.ts +3 -0
- package/dist/icons/CheckSquareBroken.d.ts +3 -0
- package/dist/icons/Chef.d.ts +3 -0
- package/dist/icons/ChevronDown.d.ts +3 -0
- package/dist/icons/ChevronDownDouble.d.ts +3 -0
- package/dist/icons/ChevronLeft.d.ts +3 -0
- package/dist/icons/ChevronLeftDouble.d.ts +3 -0
- package/dist/icons/ChevronRight.d.ts +3 -0
- package/dist/icons/ChevronRightDouble.d.ts +3 -0
- package/dist/icons/ChevronUp.d.ts +3 -0
- package/dist/icons/ChevronUpDouble.d.ts +3 -0
- package/dist/icons/Circle.d.ts +3 -0
- package/dist/icons/ClapperboardPlay.d.ts +3 -0
- package/dist/icons/Clock.d.ts +3 -0
- package/dist/icons/Close.d.ts +3 -0
- package/dist/icons/CloudLightning.d.ts +3 -0
- package/dist/icons/CoctailGlass.d.ts +3 -0
- package/dist/icons/CoffeeMug.d.ts +3 -0
- package/dist/icons/Columns.d.ts +3 -0
- package/dist/icons/ColumnsThree.d.ts +3 -0
- package/dist/icons/Copy.d.ts +3 -0
- package/dist/icons/CornerDownLeft.d.ts +3 -0
- package/dist/icons/CpuChip.d.ts +3 -0
- package/dist/icons/CreditCard.d.ts +3 -0
- package/dist/icons/Croissant.d.ts +3 -0
- package/dist/icons/Data.d.ts +3 -0
- package/dist/icons/Dataflow.d.ts +3 -0
- package/dist/icons/Dataflow2.d.ts +3 -0
- package/dist/icons/Delete.d.ts +3 -0
- package/dist/icons/Delivery.d.ts +3 -0
- package/dist/icons/DeliveryScooter.d.ts +3 -0
- package/dist/icons/DotsDrag.d.ts +3 -0
- package/dist/icons/DotsGrid.d.ts +3 -0
- package/dist/icons/DotsHorizontal.d.ts +3 -0
- package/dist/icons/DotsVertical.d.ts +3 -0
- package/dist/icons/Download.d.ts +3 -0
- package/dist/icons/Edit.d.ts +3 -0
- package/dist/icons/Eye.d.ts +3 -0
- package/dist/icons/EyeOff.d.ts +3 -0
- package/dist/icons/Facebook.d.ts +3 -0
- package/dist/icons/File.d.ts +3 -0
- package/dist/icons/FileCheck.d.ts +3 -0
- package/dist/icons/FilePlus.d.ts +3 -0
- package/dist/icons/Folder.d.ts +3 -0
- package/dist/icons/FolderPlus.d.ts +3 -0
- package/dist/icons/ForkKnife.d.ts +3 -0
- package/dist/icons/Globe.d.ts +3 -0
- package/dist/icons/Grid.d.ts +3 -0
- package/dist/icons/Home.d.ts +3 -0
- package/dist/icons/HourglassHalf.d.ts +3 -0
- package/dist/icons/Image.d.ts +3 -0
- package/dist/icons/InfoCircle.d.ts +3 -0
- package/dist/icons/Instagram.d.ts +3 -0
- package/dist/icons/LineChartUp.d.ts +3 -0
- package/dist/icons/Link.d.ts +3 -0
- package/dist/icons/LinkHorizontal.d.ts +3 -0
- package/dist/icons/Linkedin.d.ts +3 -0
- package/dist/icons/List.d.ts +3 -0
- package/dist/icons/LoadingIcon.d.ts +3 -0
- package/dist/icons/Lock.d.ts +3 -0
- package/dist/icons/LogOut.d.ts +3 -0
- package/dist/icons/Mail.d.ts +3 -0
- package/dist/icons/MarkerPin.d.ts +3 -0
- package/dist/icons/MarkerPinSimple.d.ts +3 -0
- package/dist/icons/Mastercard.d.ts +3 -0
- package/dist/icons/Meal.d.ts +3 -0
- package/dist/icons/Menu.d.ts +3 -0
- package/dist/icons/MessageChatCircle.d.ts +3 -0
- package/dist/icons/MessageCircle.d.ts +3 -0
- package/dist/icons/MessageHeartSquare.d.ts +3 -0
- package/dist/icons/MessageTextCircle.d.ts +3 -0
- package/dist/icons/Minus.d.ts +3 -0
- package/dist/icons/MobilePhone.d.ts +3 -0
- package/dist/icons/Monitor.d.ts +3 -0
- package/dist/icons/Monitor02.d.ts +3 -0
- package/dist/icons/Moon.d.ts +3 -0
- package/dist/icons/NoImage.d.ts +3 -0
- package/dist/icons/Package.d.ts +3 -0
- package/dist/icons/PackageCheck.d.ts +3 -0
- package/dist/icons/PackagePlus.d.ts +3 -0
- package/dist/icons/Paperclip.d.ts +3 -0
- package/dist/icons/Phone.d.ts +3 -0
- package/dist/icons/Play.d.ts +3 -0
- package/dist/icons/PlayCircle.d.ts +3 -0
- package/dist/icons/PlaySquare.d.ts +3 -0
- package/dist/icons/Plus.d.ts +3 -0
- package/dist/icons/Printer.d.ts +3 -0
- package/dist/icons/QrCode.d.ts +3 -0
- package/dist/icons/ReceiptCheck.d.ts +3 -0
- package/dist/icons/Refresh.d.ts +3 -0
- package/dist/icons/RefreshCw.d.ts +3 -0
- package/dist/icons/Ruler.d.ts +3 -0
- package/dist/icons/Save.d.ts +3 -0
- package/dist/icons/Screen.d.ts +3 -0
- package/dist/icons/Search.d.ts +3 -0
- package/dist/icons/Send.d.ts +3 -0
- package/dist/icons/Server.d.ts +3 -0
- package/dist/icons/ServingDome.d.ts +3 -0
- package/dist/icons/Settings.d.ts +3 -0
- package/dist/icons/Share.d.ts +3 -0
- package/dist/icons/Shield.d.ts +3 -0
- package/dist/icons/ShieldDollar.d.ts +3 -0
- package/dist/icons/Shop.d.ts +3 -0
- package/dist/icons/ShoppingBag.d.ts +3 -0
- package/dist/icons/ShoppingCart.d.ts +3 -0
- package/dist/icons/Stars.d.ts +3 -0
- package/dist/icons/SwitchVertical.d.ts +3 -0
- package/dist/icons/Tablet.d.ts +3 -0
- package/dist/icons/Target.d.ts +3 -0
- package/dist/icons/Tea.d.ts +3 -0
- package/dist/icons/Telegram.d.ts +3 -0
- package/dist/icons/ThumbsUp.d.ts +3 -0
- package/dist/icons/Tiktok.d.ts +3 -0
- package/dist/icons/Translate.d.ts +3 -0
- package/dist/icons/Trash.d.ts +3 -0
- package/dist/icons/UploadCloud.d.ts +3 -0
- package/dist/icons/User.d.ts +3 -0
- package/dist/icons/UserCheck.d.ts +3 -0
- package/dist/icons/UserCircle.d.ts +3 -0
- package/dist/icons/UserPlus.d.ts +3 -0
- package/dist/icons/UserX.d.ts +3 -0
- package/dist/icons/Users.d.ts +3 -0
- package/dist/icons/Visa.d.ts +3 -0
- package/dist/icons/VolumeMax.d.ts +3 -0
- package/dist/icons/VolumeMinus.d.ts +3 -0
- package/dist/icons/VolumePlus.d.ts +3 -0
- package/dist/icons/VolumeX.d.ts +3 -0
- package/dist/icons/Whatsapp.d.ts +3 -0
- package/dist/icons/Wifi.d.ts +3 -0
- package/dist/icons/XTwitter.d.ts +3 -0
- package/dist/icons/Youtube.d.ts +3 -0
- package/dist/icons/index.d.ts +154 -0
- package/dist/icons/index.esm.js +2 -0
- package/dist/icons/index.esm.js.map +1 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/models/form.d.ts +3 -0
- package/dist/models/modal.d.ts +17 -0
- package/dist/models/ui.d.ts +27 -0
- package/dist/styles/scss/animations.scss +130 -0
- package/dist/styles/scss/colors.scss +150 -0
- package/dist/styles/scss/functions/toRem.scss +13 -0
- package/dist/styles/scss/mixins.scss +310 -0
- package/dist/styles/scss/responsive.scss +40 -0
- package/dist/styles/scss/utils.scss +6 -0
- package/dist/styles/scss/variables.scss +337 -0
- package/dist/styles/ui.css +2 -0
- package/dist/styles/ui.css.map +1 -0
- package/dist/utils/icon.d.ts +2 -0
- package/dist/utils/image.d.ts +1 -0
- package/dist/utils/input.d.ts +1 -0
- package/dist/utils/storage.d.ts +7 -0
- package/dist/utils/styling.d.ts +2 -0
- package/dist/utils/styling.types.d.ts +6 -0
- package/dist/utils/table.d.ts +1 -0
- package/dist/utils/view.d.ts +3 -0
- package/package.json +77 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TextProps } from "../Text/Text.types";
|
|
3
|
+
interface Props {
|
|
4
|
+
title: string | ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
isDefaultOpen?: boolean;
|
|
8
|
+
style?: "shadow" | "no-shadow";
|
|
9
|
+
noPadding?: boolean;
|
|
10
|
+
headerPaddingBlock?: number;
|
|
11
|
+
headerPaddingInline?: number;
|
|
12
|
+
titleSize?: TextProps["size"];
|
|
13
|
+
titleVariant?: TextProps["variant"];
|
|
14
|
+
titleWeight?: TextProps["weight"];
|
|
15
|
+
}
|
|
16
|
+
declare const Accordion: ({ title, content, fullWidth, isDefaultOpen, style, noPadding, headerPaddingBlock, headerPaddingInline, titleSize, titleVariant, titleWeight, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Accordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Accordion";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GoogleSuggestion, Origin } from "./AddressAutocomplete.types";
|
|
2
|
+
interface Props {
|
|
3
|
+
placeHolder?: string;
|
|
4
|
+
inputLabel?: string;
|
|
5
|
+
language?: string;
|
|
6
|
+
origin?: Origin;
|
|
7
|
+
noMargin?: boolean;
|
|
8
|
+
defaultAdressText?: string;
|
|
9
|
+
onSelect: (suggestion: GoogleSuggestion) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const AddressAutocomplete: import("react").MemoExoticComponent<({ placeHolder, inputLabel, language, origin, noMargin, defaultAdressText, onSelect, }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
export default AddressAutocomplete;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
google: typeof google;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export type Origin = {
|
|
7
|
+
lat: number;
|
|
8
|
+
lng: number;
|
|
9
|
+
};
|
|
10
|
+
export interface AddressDetails {
|
|
11
|
+
houseNumber?: string;
|
|
12
|
+
street?: string;
|
|
13
|
+
additionalNumber?: string;
|
|
14
|
+
cityName?: string;
|
|
15
|
+
countryCode?: string;
|
|
16
|
+
postCode?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface GoogleSuggestion extends AddressDetails {
|
|
19
|
+
title: string;
|
|
20
|
+
subtitle: string;
|
|
21
|
+
text: string;
|
|
22
|
+
placeId: string;
|
|
23
|
+
long: number;
|
|
24
|
+
lat: number;
|
|
25
|
+
distanceMeters: number;
|
|
26
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AddressDetails, GoogleSuggestion } from "./AddressAutocomplete.types";
|
|
2
|
+
export declare const getAddressDetails: (addressComponents: any[]) => AddressDetails;
|
|
3
|
+
export declare const formatSuggestions: (suggestions: google.maps.places.AutocompleteSuggestion[]) => Promise<GoogleSuggestion[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./AddressAutocomplete";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
message: string;
|
|
3
|
+
onClear: () => void;
|
|
4
|
+
onReload?: () => void;
|
|
5
|
+
className?: string;
|
|
6
|
+
type: "error" | "success" | "warning";
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const AlertBox: ({ message, onClear, onReload, type, inline }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default AlertBox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./AreaChart";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MouseEventHandler } from "react";
|
|
2
|
+
import { SIZE } from "src/models/ui";
|
|
3
|
+
import { IconType } from "../SVGIcon";
|
|
4
|
+
interface Props {
|
|
5
|
+
source?: string | null;
|
|
6
|
+
alt?: string;
|
|
7
|
+
size?: SIZE;
|
|
8
|
+
onClick?: MouseEventHandler<HTMLDivElement> | undefined;
|
|
9
|
+
className?: string;
|
|
10
|
+
isEditable?: boolean;
|
|
11
|
+
overlayIcon?: IconType | null;
|
|
12
|
+
inline?: boolean;
|
|
13
|
+
overlayText?: string;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const Avatar: ({ source, alt, size, onClick, className, isEditable, overlayIcon, inline, isLoading, overlayText, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Avatar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Avatar';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BarChartData } from "./BarChart.types";
|
|
2
|
+
interface BarChartProps {
|
|
3
|
+
data: BarChartData[];
|
|
4
|
+
direction?: "horizontal" | "vertical";
|
|
5
|
+
hasLongValue?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const BarChart: ({ data, hasLongValue, direction }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BarChart;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./BarChart";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent } from "react";
|
|
2
|
+
import { SIZE, UIElementType } from "src/models/ui";
|
|
3
|
+
import { IconType } from "../SVGIcon";
|
|
4
|
+
import { TooltipPosition } from "../Tooltip/Tooltip.types";
|
|
5
|
+
interface Props {
|
|
6
|
+
type?: UIElementType;
|
|
7
|
+
onClick: (e: MouseEvent<HTMLButtonElement | HTMLButtonElement>) => void;
|
|
8
|
+
label: string | ReactNode;
|
|
9
|
+
icon?: IconType;
|
|
10
|
+
iconSize?: SIZE;
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
size?: SIZE;
|
|
16
|
+
tooltip?: string;
|
|
17
|
+
tooltipPosition?: TooltipPosition;
|
|
18
|
+
needConfirm?: boolean;
|
|
19
|
+
confirmPosition?: "top" | "bottom" | "topLeft";
|
|
20
|
+
confirmMessage?: string;
|
|
21
|
+
yesTitle?: string;
|
|
22
|
+
noTitle?: string;
|
|
23
|
+
paddingInline?: number;
|
|
24
|
+
paddingBlock?: number;
|
|
25
|
+
ariaLabel?: string;
|
|
26
|
+
}
|
|
27
|
+
declare const Button: ({ type, onClick, label, icon, iconSize, fullWidth, isLoading, disabled, className, size, tooltip, tooltipPosition, needConfirm, confirmPosition, confirmMessage, yesTitle, noTitle, paddingInline, paddingBlock, ariaLabel, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default Button;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import "dayjs/locale/en";
|
|
3
|
+
import "dayjs/locale/az";
|
|
4
|
+
interface Props {
|
|
5
|
+
onSetStartDate?: (date: dayjs.Dayjs | null) => void;
|
|
6
|
+
onSetEndDate?: (date: dayjs.Dayjs | null) => void;
|
|
7
|
+
startDate?: dayjs.Dayjs | null;
|
|
8
|
+
endDate?: dayjs.Dayjs | null;
|
|
9
|
+
locale?: string;
|
|
10
|
+
weekDays?: string[];
|
|
11
|
+
}
|
|
12
|
+
declare const Calendar: ({ startDate, endDate, locale, weekDays, onSetStartDate, onSetEndDate, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Calendar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Calendar';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { UIElementType } from "src/models/ui";
|
|
3
|
+
import { TextProps } from "../Text/Text.types";
|
|
4
|
+
interface Props {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
toolbar?: ReactNode;
|
|
9
|
+
footer?: ReactNode;
|
|
10
|
+
header?: ReactNode;
|
|
11
|
+
separated?: boolean;
|
|
12
|
+
borderTopWidth?: number;
|
|
13
|
+
borderTopColor?: string;
|
|
14
|
+
noBottomMargin?: boolean;
|
|
15
|
+
noBodyPadding?: boolean;
|
|
16
|
+
fullHeight?: boolean;
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
noShadow?: boolean;
|
|
19
|
+
paddingInline?: number;
|
|
20
|
+
paddingBlock?: number;
|
|
21
|
+
moreShadow?: boolean;
|
|
22
|
+
titleSize?: TextProps["size"];
|
|
23
|
+
titleVariant?: TextProps["variant"];
|
|
24
|
+
titleWeight?: TextProps["weight"];
|
|
25
|
+
type?: UIElementType;
|
|
26
|
+
}
|
|
27
|
+
declare const Card: ({ title, subtitle, children, toolbar, header, footer, separated, borderTopWidth, borderTopColor, noBottomMargin, noBodyPadding, fullHeight, fullWidth, noShadow, paddingInline, paddingBlock, moreShadow, titleSize, titleVariant, titleWeight, type, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default Card;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Card';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CarouselProps } from "./Carousel.types";
|
|
2
|
+
declare const Carousel: ({ children, gap, className, enableNavigation, title, titleVariant, alignItems, paddingInline, paddingBlock, scrollOnClick, onGetRef, }: CarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Carousel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from "react";
|
|
2
|
+
import { TextProps } from "../Text/Text.types";
|
|
3
|
+
import { FlexProps } from "../Flex/Flex.types";
|
|
4
|
+
export interface CarouselProps {
|
|
5
|
+
children: ReactNode[] | ReactElement[];
|
|
6
|
+
gap?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
enableNavigation?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
titleVariant?: TextProps["variant"];
|
|
11
|
+
alignItems?: FlexProps["alignItems"];
|
|
12
|
+
paddingInline?: number;
|
|
13
|
+
paddingBlock?: number;
|
|
14
|
+
scrollOnClick?: boolean;
|
|
15
|
+
onGetRef?: (ref: RefObject<HTMLDivElement>) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
children: ReactElement;
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const CarouselItem: ({ children, className, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CarouselItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RefObject, ReactNode, Dispatch, SetStateAction } from "react";
|
|
2
|
+
type HTMLRef = RefObject<HTMLDivElement>;
|
|
3
|
+
type CarouselStoreContent = {
|
|
4
|
+
setSelectedItemRef: Dispatch<SetStateAction<HTMLRef>>;
|
|
5
|
+
selectedItemRef: HTMLRef;
|
|
6
|
+
};
|
|
7
|
+
export declare const CarouselProvider: ({ children }: {
|
|
8
|
+
children: ReactNode | ReactNode[];
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useCarouselContext: () => CarouselStoreContent;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from "react";
|
|
2
|
+
import { SIZE } from "src/models/ui";
|
|
3
|
+
interface Props {
|
|
4
|
+
size: SIZE;
|
|
5
|
+
scrollRef: RefObject<HTMLDivElement>;
|
|
6
|
+
scrollAmount?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const NavigationButton: ({ size, scrollRef, scrollAmount }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default NavigationButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./CarouselNavigation.";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { SIZE_LONG, UIElementType } from "src/models/ui";
|
|
3
|
+
import { IconType } from "../SVGIcon";
|
|
4
|
+
interface Props {
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
type?: UIElementType;
|
|
9
|
+
size?: SIZE_LONG;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
action?: () => void;
|
|
12
|
+
actionIcon?: IconType;
|
|
13
|
+
}
|
|
14
|
+
declare const Chip: ({ onClick, className, children, type, size, active, actionIcon, action, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Chip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Chip';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MouseEvent } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
onCancel: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
4
|
+
onConfirm: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
confirmPosition?: "top" | "bottom" | "topLeft";
|
|
6
|
+
confirmMessage?: string;
|
|
7
|
+
yesTitle?: string;
|
|
8
|
+
noTitle?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ConfirmationPopover: ({ confirmPosition, yesTitle, noTitle, confirmMessage, onCancel, onConfirm, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ConfirmationPopover;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ConfirmationPopover";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SocialLink } from "./ContactList.types";
|
|
2
|
+
interface Props {
|
|
3
|
+
domain: string;
|
|
4
|
+
socialLinks: SocialLink[];
|
|
5
|
+
address: string;
|
|
6
|
+
reportLabel?: string;
|
|
7
|
+
writeUsLabel?: string;
|
|
8
|
+
followUsLabel?: string;
|
|
9
|
+
addressLabel?: string;
|
|
10
|
+
whatsapp?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ContactsList: ({ domain, socialLinks, address, reportLabel, writeUsLabel, followUsLabel, addressLabel, whatsapp, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default ContactsList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContactsList';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
noPadding?: boolean;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const Container: ({ className, children, noPadding, fullWidth }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Container;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Container';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./CookieBanner";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DateBox";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
interface Props {
|
|
3
|
+
onSave: (startDate: dayjs.Dayjs | null, endDate: dayjs.Dayjs | null) => void;
|
|
4
|
+
startDateTimestamp?: number | null;
|
|
5
|
+
endDateTimestamp?: number | null;
|
|
6
|
+
locale?: string;
|
|
7
|
+
weekDays?: string[];
|
|
8
|
+
clearLabel?: string;
|
|
9
|
+
saveLabel?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DatePicker: ({ startDateTimestamp, endDateTimestamp, locale, weekDays, clearLabel, saveLabel, onSave, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default DatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DatePicker';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UIElementType } from "src/models/ui";
|
|
2
|
+
import { SelectedDate } from "./DateSelector.types";
|
|
3
|
+
interface Props {
|
|
4
|
+
startDate?: string;
|
|
5
|
+
endDate?: string;
|
|
6
|
+
locale?: string;
|
|
7
|
+
format?: string;
|
|
8
|
+
weekDays?: string[];
|
|
9
|
+
clearLabel?: string;
|
|
10
|
+
saveLabel?: string;
|
|
11
|
+
paddingInline?: number;
|
|
12
|
+
paddingBlock?: number;
|
|
13
|
+
type?: UIElementType;
|
|
14
|
+
onSaveDates: (selectedStartDate: SelectedDate, selectedEndDate: SelectedDate) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const DateSelector: ({ startDate, endDate, locale, format, weekDays, clearLabel, saveLabel, paddingInline, paddingBlock, type, onSaveDates, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default DateSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SelectedDate = Date | string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DateSelector";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { TextProps } from "../Text/Text.types";
|
|
3
|
+
interface Props {
|
|
4
|
+
size?: TextProps["size"];
|
|
5
|
+
color?: TextProps["color"];
|
|
6
|
+
weight?: TextProps["weight"];
|
|
7
|
+
text: string | ReactNode;
|
|
8
|
+
noSpacing?: boolean;
|
|
9
|
+
lighter?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Description: ({ size, text, noSpacing, className, lighter, color, weight, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Description;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Description';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ID = string | number | null;
|
|
2
|
+
export interface DnDState {
|
|
3
|
+
sourceContentId: ID;
|
|
4
|
+
targetContentId: ID;
|
|
5
|
+
isOverTargetTopHalf: boolean;
|
|
6
|
+
destinationId?: ID;
|
|
7
|
+
}
|
|
8
|
+
export type SetParams = Partial<DnDState>;
|
|
9
|
+
export type DndContent = {
|
|
10
|
+
dndState: DnDState;
|
|
11
|
+
setDnDState: (params: SetParams) => void;
|
|
12
|
+
resetDnDState: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ID } from "../DnD.types";
|
|
3
|
+
interface Props {
|
|
4
|
+
contentId: ID;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Draggable: ({ contentId, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Draggable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Draggable";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DragEventHandler, ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
onDrop?: DragEventHandler<HTMLDivElement>;
|
|
4
|
+
onDragEnter?: DragEventHandler<HTMLDivElement>;
|
|
5
|
+
onDragLeave?: DragEventHandler<HTMLDivElement>;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const Droppable: ({ children, onDrop, onDragEnter, onDragLeave }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default Droppable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DONUT_COLORS: string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DonutChartData } from "./DonutChart.types";
|
|
2
|
+
interface DonutChartProps {
|
|
3
|
+
data: DonutChartData[];
|
|
4
|
+
size?: number;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
showTotal?: boolean;
|
|
7
|
+
gapDegrees?: number;
|
|
8
|
+
valueSuffix?: string;
|
|
9
|
+
totalText?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DonutChart: ({ data, size, strokeWidth, showTotal, gapDegrees, valueSuffix, totalText, }: DonutChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default DonutChart;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DonutChart";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { SIZE } from "src/models/ui";
|
|
3
|
+
interface Props {
|
|
4
|
+
title?: string;
|
|
5
|
+
content?: ReactNode | ReactNode[];
|
|
6
|
+
footer?: ReactNode;
|
|
7
|
+
hasLargeFooter?: boolean;
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
size?: SIZE;
|
|
10
|
+
noHeader?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
onBack?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const Drawer: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
|
|
15
|
+
export default Drawer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { JSXElementConstructor, LazyExoticComponent, ReactElement, RefObject } from "react";
|
|
2
|
+
export type DrawerParams = {
|
|
3
|
+
closeDrawer?: () => void;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
drawerRef?: RefObject<HTMLDivElement>;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
export type DrawerType = {
|
|
10
|
+
id: string;
|
|
11
|
+
params?: DrawerParams;
|
|
12
|
+
};
|
|
13
|
+
export interface DrawerComponentProps {
|
|
14
|
+
params: DrawerParams;
|
|
15
|
+
}
|
|
16
|
+
export type DrawerComponent = JSXElementConstructor<DrawerComponentProps> | LazyExoticComponent<({ params }: DrawerComponentProps) => ReactElement>;
|
|
17
|
+
export interface DrawersMap {
|
|
18
|
+
[key: string]: DrawerComponent;
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { DrawersMap, DrawerType } from "./Drawer.types";
|
|
3
|
+
type DrawerContent = DrawerType & {
|
|
4
|
+
setDrawer: (drawer: DrawerType | null) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const DrawerProvider: ({ children, drawersMap, }: {
|
|
7
|
+
children: ReactNode | ReactNode[];
|
|
8
|
+
drawersMap: DrawersMap;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useDrawerContext: () => DrawerContent;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { DrawersMap, DrawerType } from "./Drawer.types";
|
|
3
|
+
interface Props {
|
|
4
|
+
drawer: DrawerType;
|
|
5
|
+
drawersMap: DrawersMap;
|
|
6
|
+
setDrawer: Dispatch<SetStateAction<DrawerType>>;
|
|
7
|
+
}
|
|
8
|
+
declare const DrawerWrapper: ({ drawer, drawersMap, setDrawer }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DrawerWrapper;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DropDownMenuItemProps, DropDownProps } from "./DropDown.types";
|
|
2
|
+
declare const DropDownMenuItem: ({ children, className, onClick }: DropDownMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const DropDown: (props: DropDownProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { DropDown, DropDownMenuItem };
|