@sorocraft/ui 1.2.69 → 1.2.75
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 +14 -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 +27 -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 +21 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Carousel/Carousel.d.ts +15 -0
- package/dist/components/Carousel/Item.d.ts +8 -0
- package/dist/components/Carousel/index.d.ts +1 -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/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 +10 -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 +14 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/DropDown/DropDown.d.ts +4 -0
- package/dist/components/DropDown/DropDown.types.d.ts +23 -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/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/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/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +3 -0
- package/dist/components/Input/Input.types.d.ts +72 -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/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 +5 -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 +16 -0
- package/dist/components/Portal/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 +10 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +21 -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 +13 -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/icons/AlertCircle.d.ts +3 -0
- package/dist/icons/AlignLeft.d.ts +3 -0
- package/dist/icons/Award.d.ts +3 -0
- package/dist/icons/BagCheck.d.ts +3 -0
- package/dist/icons/BankNote.d.ts +3 -0
- package/dist/icons/BarChart.d.ts +3 -0
- package/dist/icons/Bell.d.ts +3 -0
- package/dist/icons/BookOpen.d.ts +3 -0
- package/dist/icons/Bookmark.d.ts +3 -0
- package/dist/icons/Branch.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/Chef.d.ts +3 -0
- package/dist/icons/ChevronDown.d.ts +3 -0
- package/dist/icons/ChevronLeft.d.ts +3 -0
- package/dist/icons/ChevronRight.d.ts +3 -0
- package/dist/icons/ChevronUp.d.ts +3 -0
- package/dist/icons/Circle.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/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/CreditCard.d.ts +3 -0
- package/dist/icons/Dataflow.d.ts +3 -0
- package/dist/icons/Delete.d.ts +3 -0
- package/dist/icons/Delivery.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/Folder.d.ts +3 -0
- package/dist/icons/FolderPlus.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/Menu.d.ts +3 -0
- package/dist/icons/MessageChatCircle.d.ts +3 -0
- package/dist/icons/MessageCircle.d.ts +3 -0
- package/dist/icons/MessageTextCircle.d.ts +3 -0
- package/dist/icons/Minus.d.ts +3 -0
- package/dist/icons/Moon.d.ts +3 -0
- package/dist/icons/NoImage.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/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/Save.d.ts +3 -0
- package/dist/icons/Search.d.ts +3 -0
- package/dist/icons/Send.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/SwitchVertical.d.ts +3 -0
- package/dist/icons/Target.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/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 +107 -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 +77 -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 +21 -0
- package/dist/models/ui.d.ts +27 -0
- package/dist/styles/scss/animations.scss +115 -0
- package/dist/styles/scss/colors.scss +140 -0
- package/dist/styles/scss/functions/toRem.scss +13 -0
- package/dist/styles/scss/mixins.scss +261 -0
- package/dist/styles/scss/responsive.scss +36 -0
- package/dist/styles/scss/utils.scss +6 -0
- package/dist/styles/scss/variables.scss +330 -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/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 +2 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
title: string | ReactNode;
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
isDefaultOpen?: boolean;
|
|
7
|
+
style?: "shadow" | "no-shadow";
|
|
8
|
+
noPadding?: boolean;
|
|
9
|
+
headerPaddingBlock?: number;
|
|
10
|
+
headerPaddingInline?: number;
|
|
11
|
+
titleTagName?: "h1" | "h2" | "h3" | "h4" | "h5";
|
|
12
|
+
}
|
|
13
|
+
declare const Accordion: ({ title, content, fullWidth, isDefaultOpen, style, noPadding, headerPaddingBlock, headerPaddingInline, titleTagName, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
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,27 @@
|
|
|
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
|
+
}
|
|
26
|
+
declare const Button: ({ type, onClick, label, icon, iconSize, fullWidth, isLoading, disabled, className, size, tooltip, tooltipPosition, needConfirm, confirmPosition, confirmMessage, yesTitle, noTitle, paddingInline, paddingBlock, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
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,21 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
title?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
toolbar?: ReactNode;
|
|
7
|
+
footer?: ReactNode;
|
|
8
|
+
header?: ReactNode;
|
|
9
|
+
separated?: boolean;
|
|
10
|
+
borderTopWidth?: number;
|
|
11
|
+
borderTopColor?: string;
|
|
12
|
+
noBottomMargin?: boolean;
|
|
13
|
+
noBodyPadding?: boolean;
|
|
14
|
+
fullHeight?: boolean;
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
noShadow?: boolean;
|
|
17
|
+
paddingInline?: number;
|
|
18
|
+
paddingBlock?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const Card: ({ title, subtitle, children, toolbar, header, footer, separated, borderTopWidth, borderTopColor, noBottomMargin, noBodyPadding, fullHeight, fullWidth, noShadow, paddingInline, paddingBlock, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Card;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Card';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from "react";
|
|
2
|
+
import { TextProps } from "../Text/Text.types";
|
|
3
|
+
import { FlexProps } from "../Flex/Flex.types";
|
|
4
|
+
interface Props {
|
|
5
|
+
children: ReactElement[];
|
|
6
|
+
gap?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
enableNavigation?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
titleVariant?: TextProps["variant"];
|
|
11
|
+
alignItems?: FlexProps["alignItems"];
|
|
12
|
+
onGetRef?: (ref: RefObject<HTMLDivElement>) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const Carousel: ({ children, gap, className, enableNavigation, title, titleVariant, alignItems, onGetRef, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Carousel;
|
|
@@ -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 @@
|
|
|
1
|
+
export { default } from "./Carousel";
|
|
@@ -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,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,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
size?: "xs" | "s" | "m" | "lg" | "xl";
|
|
4
|
+
text: string | ReactNode;
|
|
5
|
+
noSpacing?: boolean;
|
|
6
|
+
lighter?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Description: ({ size, text, noSpacing, className, lighter, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
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,14 @@
|
|
|
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
|
+
onClose: () => void;
|
|
11
|
+
onBack?: () => void;
|
|
12
|
+
}
|
|
13
|
+
declare const Drawer: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
|
|
14
|
+
export default Drawer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Drawer";
|
|
@@ -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 };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from "react";
|
|
2
|
+
import { UIElementType } from "src/models/ui";
|
|
3
|
+
export interface CloseDropdownRef {
|
|
4
|
+
close?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface DropDownProps {
|
|
7
|
+
action: ReactNode;
|
|
8
|
+
menu: ReactNode;
|
|
9
|
+
type?: UIElementType;
|
|
10
|
+
closeRef?: RefObject<CloseDropdownRef>;
|
|
11
|
+
actionSize?: "medium" | "small" | "xsmall" | "large";
|
|
12
|
+
noActionStyle?: boolean;
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
fullHeight?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface MenuProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export interface DropDownMenuItemProps {
|
|
20
|
+
children: ReactNode | ReactNode[];
|
|
21
|
+
className?: string;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
children: ReactNode | ReactNode[];
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const DropDownMenuItem: ({ children, className, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DropDownMenuItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DropDown";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./FAQ";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Column";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FlexItemProps, FlexProps } from "./Flex.types";
|
|
2
|
+
declare const Flex: {
|
|
3
|
+
({ children, alignItems, justifyContent, flexWrap, gap, className, direction, grow, fullHeight, fullWidth, onClick, }: FlexProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Item: {
|
|
5
|
+
({ children, grow, shrink, className, fullHeight, fullWidth, flex, }: FlexItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default Flex;
|