mainstack-design-system 0.0.6 → 0.0.8
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/build/index.css +6 -0
- package/build/mainstack-design-system.js +60193 -0
- package/build/src/app.d.ts +1 -0
- package/build/src/assets/themes/baseThemes.d.ts +2 -0
- package/build/src/components/Accordion/index.d.ts +15 -0
- package/build/src/components/Avatars/index.d.ts +15 -0
- package/build/src/components/Button/IconButton.d.ts +13 -0
- package/build/src/components/Button/index.d.ts +26 -0
- package/build/src/components/InputFields/Input.d.ts +20 -0
- package/build/src/components/InputFields/MarkdownEditor.d.ts +16 -0
- package/build/src/components/InputFields/SearchInput.d.ts +18 -0
- package/build/src/components/InputFields/SelectInput/CountrySelect.d.ts +12 -0
- package/build/src/components/InputFields/SelectInput/PhoneNumberInput.d.ts +12 -0
- package/build/src/components/InputFields/SelectInput/SelectInput.d.ts +26 -0
- package/build/src/components/InputFields/SelectInput/index.d.ts +8 -0
- package/build/src/components/InputFields/TextArea.d.ts +19 -0
- package/build/src/components/InputFields/UsernameInput.d.ts +20 -0
- package/build/src/components/Tiles/index.d.ts +13 -0
- package/build/src/components/Typography/Display.d.ts +17 -0
- package/build/src/components/Typography/Heading.d.ts +17 -0
- package/build/src/components/Typography/Paragraph.d.ts +17 -0
- package/build/src/components/Typography/Subtitle.d.ts +17 -0
- package/build/src/components/Uploader/FileUploader.d.ts +14 -0
- package/build/src/components/Uploader/ImageUploader.d.ts +14 -0
- package/build/src/components/controls/Chip.d.ts +9 -0
- package/build/src/components/controls/DoubleTab.d.ts +10 -0
- package/build/src/components/controls/Pagination.d.ts +11 -0
- package/build/src/components/controls/RadioButton.d.ts +8 -0
- package/build/src/components/controls/RectangleCheckButton.d.ts +8 -0
- package/build/src/components/controls/RoundCheckButton.d.ts +8 -0
- package/build/src/components/controls/Stepper.d.ts +11 -0
- package/build/src/components/controls/TabMenu.d.ts +10 -0
- package/build/src/components/controls/ToggleButton.d.ts +14 -0
- package/build/src/components/index.d.ts +32 -0
- package/build/src/components/notifications/Banner.d.ts +11 -0
- package/build/src/components/notifications/ClickTooltip.d.ts +10 -0
- package/build/src/components/notifications/HoverTooltip.d.ts +7 -0
- package/build/src/components/notifications/Snackbar.d.ts +10 -0
- package/build/src/components/styleGuide/Colors.d.ts +165 -0
- package/build/src/hooks/useImageUpload.d.ts +17 -0
- package/build/src/icons/AccountBalanceIcon.d.ts +4 -0
- package/build/src/icons/AccountBalanceWalletFilledIcon.d.ts +4 -0
- package/build/src/icons/AccountBalanceWalletIcon.d.ts +4 -0
- package/build/src/icons/AccountCircleFilledIcon.d.ts +4 -0
- package/build/src/icons/AccountCircleIcon.d.ts +4 -0
- package/build/src/icons/AddAPhotoIcon.d.ts +4 -0
- package/build/src/icons/AddBusinessFilledIcon.d.ts +4 -0
- package/build/src/icons/AddBusinessIcon.d.ts +4 -0
- package/build/src/icons/AddCircleFilledIcon.d.ts +4 -0
- package/build/src/icons/AddCircleIcon.d.ts +4 -0
- package/build/src/icons/AddIcon.d.ts +4 -0
- package/build/src/icons/AddPhotoAlternateIcon.d.ts +4 -0
- package/build/src/icons/AddShoppingCartIcon.d.ts +4 -0
- package/build/src/icons/AddToSocialsIcon.d.ts +4 -0
- package/build/src/icons/AddsClickIcon.d.ts +4 -0
- package/build/src/icons/AdminPanelSettingsIcon.d.ts +4 -0
- package/build/src/icons/AirplaneModeActiveIcon.d.ts +4 -0
- package/build/src/icons/AlarmIcon.d.ts +4 -0
- package/build/src/icons/AllInboxIcon.d.ts +4 -0
- package/build/src/icons/AnimationIcon.d.ts +4 -0
- package/build/src/icons/AppsFilledIcon.d.ts +4 -0
- package/build/src/icons/AppsIcon.d.ts +4 -0
- package/build/src/icons/ArchiveIcon.d.ts +4 -0
- package/build/src/icons/ArrowBackIcon.d.ts +4 -0
- package/build/src/icons/ArrowCircleDownFilledIcon.d.ts +4 -0
- package/build/src/icons/ArrowCircleUpFilledIcon.d.ts +4 -0
- package/build/src/icons/ArrowDropDownIcon.d.ts +4 -0
- package/build/src/icons/ArrowDropUpIcon.d.ts +4 -0
- package/build/src/icons/ArrowForwardIcon.d.ts +4 -0
- package/build/src/icons/ArtTrackIcon.d.ts +4 -0
- package/build/src/icons/ArticleFilledIcon.d.ts +4 -0
- package/build/src/icons/ArticleIcon.d.ts +4 -0
- package/build/src/icons/AttachMoneyIcon.d.ts +4 -0
- package/build/src/icons/AttachmentIcon.d.ts +4 -0
- package/build/src/icons/AudioFileFilledIcon.d.ts +4 -0
- package/build/src/icons/AutoAwesomeMosaicFilledIcon.d.ts +4 -0
- package/build/src/icons/AutoAwesomeMosaicIcon.d.ts +4 -0
- package/build/src/icons/AutoFixFilledIcon.d.ts +4 -0
- package/build/src/icons/AutoFixIcon.d.ts +4 -0
- package/build/src/icons/AutoGraphIcon.d.ts +4 -0
- package/build/src/icons/AwardStarFilledIcon.d.ts +4 -0
- package/build/src/icons/AwardStarIcon.d.ts +4 -0
- package/build/src/icons/BarChartFilledIcon.d.ts +4 -0
- package/build/src/icons/BlockIcon.d.ts +4 -0
- package/build/src/icons/BoltFilledIcon.d.ts +4 -0
- package/build/src/icons/BoltIcon.d.ts +4 -0
- package/build/src/icons/BookOnlineIcon.d.ts +4 -0
- package/build/src/icons/BugReportIcon.d.ts +4 -0
- package/build/src/icons/BusinessCenterFilledIcon.d.ts +4 -0
- package/build/src/icons/BusinessCenterIcon.d.ts +4 -0
- package/build/src/icons/CalendarMonthFilledIcon.d.ts +4 -0
- package/build/src/icons/CalendarMonthIcon.d.ts +4 -0
- package/build/src/icons/CalendarTodayIcon.d.ts +4 -0
- package/build/src/icons/CallMadeIcon.d.ts +4 -0
- package/build/src/icons/CallMissedIcon.d.ts +4 -0
- package/build/src/icons/CallMissedOutgoingIcon.d.ts +4 -0
- package/build/src/icons/CallRecievedIcon.d.ts +4 -0
- package/build/src/icons/CampaignFilledIcon.d.ts +4 -0
- package/build/src/icons/CampaignIcon.d.ts +4 -0
- package/build/src/icons/CancelFilledIcon.d.ts +4 -0
- package/build/src/icons/CancelIcon.d.ts +4 -0
- package/build/src/icons/CaptivePortalIcon.d.ts +4 -0
- package/build/src/icons/CardLayoutIcon.d.ts +4 -0
- package/build/src/icons/CasesFilledIcon.d.ts +4 -0
- package/build/src/icons/CasesIcon.d.ts +4 -0
- package/build/src/icons/CategoryIcon.d.ts +4 -0
- package/build/src/icons/ChairIcon.d.ts +4 -0
- package/build/src/icons/ChangeCircleIcon.d.ts +4 -0
- package/build/src/icons/ChatBubbleFilledIcon.d.ts +4 -0
- package/build/src/icons/ChatBubbleIcon.d.ts +4 -0
- package/build/src/icons/ChatFilledIcon.d.ts +4 -0
- package/build/src/icons/ChatIcon.d.ts +4 -0
- package/build/src/icons/CheckCircleFilledIcon.d.ts +4 -0
- package/build/src/icons/CheckCircleIcon.d.ts +4 -0
- package/build/src/icons/CheckIcon.d.ts +4 -0
- package/build/src/icons/ChevronLeftIcon.d.ts +3 -0
- package/build/src/icons/ChevronRightIcon.d.ts +3 -0
- package/build/src/icons/CloseIcon.d.ts +4 -0
- package/build/src/icons/CloudUploadIcon.d.ts +4 -0
- package/build/src/icons/CodeIcon.d.ts +4 -0
- package/build/src/icons/CoffeeIcon.d.ts +4 -0
- package/build/src/icons/CollectionsBookmarkIcon.d.ts +4 -0
- package/build/src/icons/ColorPickerIcon.d.ts +4 -0
- package/build/src/icons/CommentCircleAltChatMessageIcon.d.ts +4 -0
- package/build/src/icons/ConfirmationNumberIcon.d.ts +4 -0
- package/build/src/icons/ContactMailFilledIcon.d.ts +4 -0
- package/build/src/icons/ContactMailIcon.d.ts +3 -0
- package/build/src/icons/ContactPageIcon.d.ts +4 -0
- package/build/src/icons/ContactPhoneFilledIcon.d.ts +4 -0
- package/build/src/icons/ContactPhoneIcon.d.ts +4 -0
- package/build/src/icons/ContactsIcon.d.ts +4 -0
- package/build/src/icons/ContentCopyIcon.d.ts +4 -0
- package/build/src/icons/CopyIcon.d.ts +4 -0
- package/build/src/icons/CreditCardFilledIcon.d.ts +4 -0
- package/build/src/icons/CreditCardIcon.d.ts +4 -0
- package/build/src/icons/DarkModeIcon.d.ts +4 -0
- package/build/src/icons/DashboardFilledIcon.d.ts +4 -0
- package/build/src/icons/DashboardIcon.d.ts +4 -0
- package/build/src/icons/DatabaseFilledIcon.d.ts +4 -0
- package/build/src/icons/DeleteIcon.d.ts +4 -0
- package/build/src/icons/DescriptionIcon.d.ts +4 -0
- package/build/src/icons/DesktopMacIcon.d.ts +4 -0
- package/build/src/icons/DevicesIcon.d.ts +4 -0
- package/build/src/icons/DiamondFilledIcon.d.ts +4 -0
- package/build/src/icons/DiamondIcon.d.ts +4 -0
- package/build/src/icons/DigitalProductsIcon.d.ts +4 -0
- package/build/src/icons/DiscountIcon.d.ts +4 -0
- package/build/src/icons/Diversity1Icon.d.ts +4 -0
- package/build/src/icons/Diversity2Icon.d.ts +4 -0
- package/build/src/icons/Diversity3Icon.d.ts +4 -0
- package/build/src/icons/DnsIcon.d.ts +4 -0
- package/build/src/icons/DoNotDisturbOnFilledIcon.d.ts +4 -0
- package/build/src/icons/DoNotDisturbOnIcon.d.ts +4 -0
- package/build/src/icons/DomainAddIcon.d.ts +4 -0
- package/build/src/icons/DomainIcon.d.ts +4 -0
- package/build/src/icons/DomainVerificationIcon.d.ts +4 -0
- package/build/src/icons/DownloadIcon.d.ts +4 -0
- package/build/src/icons/DraftsIcon.d.ts +4 -0
- package/build/src/icons/DragHandleIcon.d.ts +4 -0
- package/build/src/icons/DragIndicatorIcon.d.ts +4 -0
- package/build/src/icons/EditFilledIcon.d.ts +4 -0
- package/build/src/icons/EditIcon.d.ts +4 -0
- package/build/src/icons/EmojiEventsFilledIcon.d.ts +4 -0
- package/build/src/icons/EmojiEventsIcon.d.ts +4 -0
- package/build/src/icons/EmojiFoodBeverageIcon.d.ts +4 -0
- package/build/src/icons/EmojiIcon.d.ts +4 -0
- package/build/src/icons/EmptyIcon.d.ts +4 -0
- package/build/src/icons/ErrorFilledIcon.d.ts +4 -0
- package/build/src/icons/ErrorIcon.d.ts +4 -0
- package/build/src/icons/EventFilledIcon.d.ts +4 -0
- package/build/src/icons/EventIcon.d.ts +4 -0
- package/build/src/icons/EventTicketIcon.d.ts +4 -0
- package/build/src/icons/ExpandLessIcon.d.ts +4 -0
- package/build/src/icons/ExpandMoreIcon.d.ts +4 -0
- package/build/src/icons/FastActionPricingIcon.d.ts +4 -0
- package/build/src/icons/FeedFilledIcon.d.ts +4 -0
- package/build/src/icons/FeedIcon.d.ts +4 -0
- package/build/src/icons/FilePresentIcon.d.ts +4 -0
- package/build/src/icons/FilterListIcon.d.ts +4 -0
- package/build/src/icons/FitbitArrowDownIcon.d.ts +4 -0
- package/build/src/icons/FitbitArrowUpwardIcon.d.ts +4 -0
- package/build/src/icons/FlagIcon.d.ts +4 -0
- package/build/src/icons/FormatAlignCenterIcon.d.ts +4 -0
- package/build/src/icons/FormatAlignJustifyIcon.d.ts +4 -0
- package/build/src/icons/FormatAlignLeftIcon.d.ts +4 -0
- package/build/src/icons/FormatAlignRightIcon.d.ts +4 -0
- package/build/src/icons/FormatBoldIcon.d.ts +4 -0
- package/build/src/icons/FormatItalicIcon.d.ts +4 -0
- package/build/src/icons/FormatListBulletedIcon.d.ts +4 -0
- package/build/src/icons/FormatListNumberedIcon.d.ts +4 -0
- package/build/src/icons/FormatSizeIcon.d.ts +4 -0
- package/build/src/icons/FormatUnderlineIcon.d.ts +4 -0
- package/build/src/icons/ForumIcon.d.ts +4 -0
- package/build/src/icons/ForwardToInboxIcon.d.ts +4 -0
- package/build/src/icons/GalleryThumbnailIcon.d.ts +4 -0
- package/build/src/icons/GppBadFilledIcon.d.ts +4 -0
- package/build/src/icons/GppBadIcon.d.ts +4 -0
- package/build/src/icons/GppMaybeFilledIcon.d.ts +4 -0
- package/build/src/icons/GppMaybeIcon.d.ts +4 -0
- package/build/src/icons/GridViewIcon.d.ts +4 -0
- package/build/src/icons/GroupFilledIcon.d.ts +4 -0
- package/build/src/icons/GroupIcon.d.ts +4 -0
- package/build/src/icons/HeadphonesIcon.d.ts +4 -0
- package/build/src/icons/HomeFilledIcon.d.ts +4 -0
- package/build/src/icons/HomeIcon.d.ts +4 -0
- package/build/src/icons/HomePinIcon.d.ts +4 -0
- package/build/src/icons/HourGlassEmptyIcon.d.ts +4 -0
- package/build/src/icons/HubIcon.d.ts +4 -0
- package/build/src/icons/InfoFilledIcon.d.ts +4 -0
- package/build/src/icons/InfoGradientFilledIcon.d.ts +4 -0
- package/build/src/icons/InfoIcon.d.ts +4 -0
- package/build/src/icons/InsertChartFilledIcon.d.ts +4 -0
- package/build/src/icons/InsertChartIcon.d.ts +4 -0
- package/build/src/icons/InventoryIcon.d.ts +4 -0
- package/build/src/icons/IosShareIcon.d.ts +4 -0
- package/build/src/icons/KeyboardBackspaceIcon.d.ts +4 -0
- package/build/src/icons/LanguageIcon.d.ts +4 -0
- package/build/src/icons/LibraryMusicIcon.d.ts +4 -0
- package/build/src/icons/LinkIcon.d.ts +4 -0
- package/build/src/icons/LinkOffIcon.d.ts +4 -0
- package/build/src/icons/LocalActivityIcon.d.ts +4 -0
- package/build/src/icons/LocalFloristFilledIcon.d.ts +4 -0
- package/build/src/icons/LocalFloristIcon.d.ts +4 -0
- package/build/src/icons/LocationOnIcon.d.ts +4 -0
- package/build/src/icons/LockIcon.d.ts +4 -0
- package/build/src/icons/LoginIcon.d.ts +4 -0
- package/build/src/icons/LogoutIcon.d.ts +4 -0
- package/build/src/icons/MailIcon.d.ts +4 -0
- package/build/src/icons/MarkUnreadChatIcon.d.ts +4 -0
- package/build/src/icons/MasterClassIcon.d.ts +4 -0
- package/build/src/icons/MediaLinkFilledIcon.d.ts +4 -0
- package/build/src/icons/MediaLinkIcon.d.ts +4 -0
- package/build/src/icons/MenuIcon.d.ts +4 -0
- package/build/src/icons/MenuOpenIcon.d.ts +4 -0
- package/build/src/icons/MilitaryTechFilledIcon.d.ts +4 -0
- package/build/src/icons/MilitaryTechIcon.d.ts +4 -0
- package/build/src/icons/MonitoringIcon.d.ts +4 -0
- package/build/src/icons/MoreHorizontalIcon.d.ts +4 -0
- package/build/src/icons/MoreHorizontalSmallIcon.d.ts +4 -0
- package/build/src/icons/MoreVerticalIcon.d.ts +4 -0
- package/build/src/icons/NotificationsFilledIcon.d.ts +4 -0
- package/build/src/icons/NotificationsIcon.d.ts +4 -0
- package/build/src/icons/OpenInNewIcon.d.ts +4 -0
- package/build/src/icons/OthersIcon.d.ts +4 -0
- package/build/src/icons/PageViewIcon.d.ts +4 -0
- package/build/src/icons/PaidIcon.d.ts +4 -0
- package/build/src/icons/PaletteFilledIcon.d.ts +4 -0
- package/build/src/icons/PaletteIcon.d.ts +4 -0
- package/build/src/icons/PauseIcon.d.ts +4 -0
- package/build/src/icons/PayInTranchesIcon.d.ts +4 -0
- package/build/src/icons/PaymentsFilledIcon.d.ts +4 -0
- package/build/src/icons/PaymentsIcon.d.ts +4 -0
- package/build/src/icons/PendingActionsIcon.d.ts +4 -0
- package/build/src/icons/PermMediaIcon.d.ts +4 -0
- package/build/src/icons/PersonAddIcon.d.ts +4 -0
- package/build/src/icons/PersonIcon.d.ts +4 -0
- package/build/src/icons/PhotoCameraIcon.d.ts +4 -0
- package/build/src/icons/PhotoFilledIcon.d.ts +4 -0
- package/build/src/icons/PhotoIcon.d.ts +4 -0
- package/build/src/icons/PhotoLibraryFilledIcon.d.ts +4 -0
- package/build/src/icons/PhotoLibraryIcon.d.ts +4 -0
- package/build/src/icons/PictureAsPdfFilledIcon.d.ts +4 -0
- package/build/src/icons/PictureAsPdfIcon.d.ts +4 -0
- package/build/src/icons/PlayArrowIcon.d.ts +4 -0
- package/build/src/icons/PlayCircleFilledIcon.d.ts +4 -0
- package/build/src/icons/PlayCircleIcon.d.ts +4 -0
- package/build/src/icons/PowerRoundedIcon.d.ts +4 -0
- package/build/src/icons/PreviewIcon.d.ts +4 -0
- package/build/src/icons/PublicIcon.d.ts +4 -0
- package/build/src/icons/PublishIcon.d.ts +4 -0
- package/build/src/icons/PushPinFilledIcon.d.ts +4 -0
- package/build/src/icons/PushPinIcon.d.ts +4 -0
- package/build/src/icons/QrCode2Icon.d.ts +4 -0
- package/build/src/icons/RadioButtonCheckedIcon.d.ts +4 -0
- package/build/src/icons/RadioButtonUncheckedIcon.d.ts +4 -0
- package/build/src/icons/RecieptLongFilledIcon.d.ts +4 -0
- package/build/src/icons/RecieptLongIcon.d.ts +4 -0
- package/build/src/icons/RecordVoiceOverIcon.d.ts +4 -0
- package/build/src/icons/RedeemIcon.d.ts +4 -0
- package/build/src/icons/RedoIcon.d.ts +4 -0
- package/build/src/icons/RemoveIcon.d.ts +4 -0
- package/build/src/icons/RemoveRoadIcon.d.ts +4 -0
- package/build/src/icons/ReportFilledIcon.d.ts +4 -0
- package/build/src/icons/ReportIcon.d.ts +4 -0
- package/build/src/icons/ReviewsIcon.d.ts +4 -0
- package/build/src/icons/SavingsFilledIcon.d.ts +4 -0
- package/build/src/icons/SavingsIcon.d.ts +4 -0
- package/build/src/icons/ScheduleIcon.d.ts +4 -0
- package/build/src/icons/ScheduleSendIcon.d.ts +4 -0
- package/build/src/icons/SearchNormalIcon.d.ts +4 -0
- package/build/src/icons/SellIcon.d.ts +4 -0
- package/build/src/icons/SendIcon.d.ts +4 -0
- package/build/src/icons/ServicesIcon.d.ts +4 -0
- package/build/src/icons/SettingsFilledIcon.d.ts +4 -0
- package/build/src/icons/SettingsIcon.d.ts +4 -0
- package/build/src/icons/ShareIcon.d.ts +4 -0
- package/build/src/icons/ShareWithContactsIcon.d.ts +4 -0
- package/build/src/icons/ShareWithSocialsIcon.d.ts +4 -0
- package/build/src/icons/ShoppingCartFilledIcon.d.ts +4 -0
- package/build/src/icons/ShoppingCartIcon.d.ts +4 -0
- package/build/src/icons/ShuffleIcon.d.ts +4 -0
- package/build/src/icons/SmartPhoneIcon.d.ts +4 -0
- package/build/src/icons/SocialLeaderboardIcon.d.ts +4 -0
- package/build/src/icons/StarFilledIcon.d.ts +4 -0
- package/build/src/icons/StarHalfIcon.d.ts +4 -0
- package/build/src/icons/StarIcon.d.ts +4 -0
- package/build/src/icons/StoreFrontFilledIcon.d.ts +4 -0
- package/build/src/icons/StoreFrontIcon.d.ts +4 -0
- package/build/src/icons/StrikeThroughSIcon.d.ts +4 -0
- package/build/src/icons/StyleIcon.d.ts +4 -0
- package/build/src/icons/SubscriptionIcon.d.ts +4 -0
- package/build/src/icons/SubscriptionsFilledIcon.d.ts +4 -0
- package/build/src/icons/SubscriptionsIcon.d.ts +4 -0
- package/build/src/icons/SupervisorAccountIcon.d.ts +4 -0
- package/build/src/icons/SwitchAccountFilledIcon.d.ts +4 -0
- package/build/src/icons/SwitchAccountIcon.d.ts +4 -0
- package/build/src/icons/SyncSavedLocallyIcon.d.ts +4 -0
- package/build/src/icons/TabletIcon.d.ts +4 -0
- package/build/src/icons/ThumbDownFilledIcon.d.ts +4 -0
- package/build/src/icons/ThumbDownIcon.d.ts +4 -0
- package/build/src/icons/ThumbUpFilledIcon.d.ts +4 -0
- package/build/src/icons/ThumbUpIcon.d.ts +4 -0
- package/build/src/icons/TocIcon.d.ts +4 -0
- package/build/src/icons/TrainingsIcon.d.ts +4 -0
- package/build/src/icons/TrashDeleteBinIcon.d.ts +4 -0
- package/build/src/icons/TrendingUpIcon.d.ts +4 -0
- package/build/src/icons/UndoIcon.d.ts +4 -0
- package/build/src/icons/UnfoldMoreIcon.d.ts +4 -0
- package/build/src/icons/UploadIcon.d.ts +4 -0
- package/build/src/icons/VerifiedIcon.d.ts +4 -0
- package/build/src/icons/ViewAgendaIcon.d.ts +4 -0
- package/build/src/icons/ViewArrayIcon.d.ts +4 -0
- package/build/src/icons/ViewCarouselIcon.d.ts +4 -0
- package/build/src/icons/ViewCozyIcon.d.ts +4 -0
- package/build/src/icons/ViewModuleIcon.d.ts +4 -0
- package/build/src/icons/VisibilityIcon.d.ts +4 -0
- package/build/src/icons/VisibilityOffIcon.d.ts +4 -0
- package/build/src/icons/VolunteerActivismFilledIcon.d.ts +4 -0
- package/build/src/icons/VolunteerActivismIcon.d.ts +4 -0
- package/build/src/icons/WBSunnyIcon.d.ts +4 -0
- package/build/src/icons/WarningFilledIcon.d.ts +4 -0
- package/build/src/icons/WarningIcon.d.ts +4 -0
- package/build/src/icons/WebinarsIcon.d.ts +4 -0
- package/build/src/icons/WidgetsFilledIcon.d.ts +4 -0
- package/build/src/icons/WidgetsIcon.d.ts +4 -0
- package/build/src/icons/WorkshopsIcon.d.ts +4 -0
- package/build/src/icons/index.d.ts +303 -0
- package/build/src/index.d.ts +3 -0
- package/build/src/pages/Home.d.ts +2 -0
- package/build/src/pages/Login.d.ts +2 -0
- package/build/src/pages/Page404.d.ts +2 -0
- package/build/src/pages/index.d.ts +2 -0
- package/build/src/routes/index.d.ts +6 -0
- package/build/src/stories/Accordion/Accordion.stories.d.ts +13 -0
- package/build/src/stories/Accordion/AccordionWrapper.d.ts +4 -0
- package/build/src/stories/Avatars/Avatar.stories.d.ts +11 -0
- package/build/src/stories/Buttons/Button.stories.d.ts +15 -0
- package/build/src/stories/Buttons/IconButton.stories.d.ts +13 -0
- package/build/src/stories/Buttons/IconButtonWrapper.d.ts +4 -0
- package/build/src/stories/InputFields/InputFields.stories.d.ts +10 -0
- package/build/src/stories/InputFields/MarkdownEditor.stories.d.ts +8 -0
- package/build/src/stories/InputFields/SearchInput.d.ts +4 -0
- package/build/src/stories/InputFields/SearchInput.stories.d.ts +7 -0
- package/build/src/stories/InputFields/Select/CountrySelect.stories.d.ts +7 -0
- package/build/src/stories/InputFields/Select/CountrySelectWrapper.d.ts +4 -0
- package/build/src/stories/InputFields/Select/CreatableSelect.stories.d.ts +8 -0
- package/build/src/stories/InputFields/Select/CreatableSelectWrapper.d.ts +4 -0
- package/build/src/stories/InputFields/Select/PhoneNumberInput.stories.d.ts +9 -0
- package/build/src/stories/InputFields/Select/PhoneNumberInputWrapper.d.ts +4 -0
- package/build/src/stories/InputFields/Select/Select.stories.d.ts +8 -0
- package/build/src/stories/InputFields/Select/SelectWrapper.d.ts +4 -0
- package/build/src/stories/InputFields/TextArea.stories.d.ts +7 -0
- package/build/src/stories/InputFields/UsernameInput.stories.d.ts +7 -0
- package/build/src/stories/Tiles/Tile.stories.d.ts +12 -0
- package/build/src/stories/Tiles/TileWrapper.d.ts +4 -0
- package/build/src/stories/Typography/DisplayText.stories.d.ts +12 -0
- package/build/src/stories/Typography/HeadingText.stories.d.ts +18 -0
- package/build/src/stories/Typography/ParagraphText.stories.d.ts +14 -0
- package/build/src/stories/Typography/SubtitleText.stories.d.ts +19 -0
- package/build/src/stories/Uploaders/FileUploadWrapper.d.ts +4 -0
- package/build/src/stories/Uploaders/FileUploader.stories.d.ts +7 -0
- package/build/src/stories/Uploaders/ImageUploadWrapper.d.ts +4 -0
- package/build/src/stories/Uploaders/ImageUploader.stories.d.ts +7 -0
- package/build/src/stories/colors/index.d.ts +3 -0
- package/build/src/stories/controls/Chip.stories.d.ts +10 -0
- package/build/src/stories/controls/DoubleTab.stories.d.ts +7 -0
- package/build/src/stories/controls/DoubleTabWrapper.d.ts +4 -0
- package/build/src/stories/controls/Pagination.stories.d.ts +7 -0
- package/build/src/stories/controls/PaginationWrapper.d.ts +4 -0
- package/build/src/stories/controls/RadioButton.stories.d.ts +11 -0
- package/build/src/stories/controls/RectangleCheckButton.stories.d.ts +10 -0
- package/build/src/stories/controls/RoundCheckButton.stories.d.ts +10 -0
- package/build/src/stories/controls/Stepper.stories.d.ts +7 -0
- package/build/src/stories/controls/StepperDemoCmp.d.ts +4 -0
- package/build/src/stories/controls/TabMenu.stories.d.ts +7 -0
- package/build/src/stories/controls/TabMenuWrapper.d.ts +4 -0
- package/build/src/stories/controls/ToggleButton.stories.d.ts +10 -0
- package/build/src/stories/icons/index.d.ts +306 -0
- package/build/src/stories/notifications/Banner.stories.d.ts +13 -0
- package/build/src/stories/notifications/ClickTooltip.stories.d.ts +7 -0
- package/build/src/stories/notifications/ClickTooltipWrapper.d.ts +4 -0
- package/build/src/stories/notifications/HoverTooltip.stories.d.ts +9 -0
- package/build/src/stories/notifications/HoverTooltipWrapper.d.ts +4 -0
- package/build/src/stories/notifications/Snackbar.stories.d.ts +7 -0
- package/build/src/stories/notifications/SnackbarWrapper.d.ts +3 -0
- package/build/src/utils/countries-flag.json.d.ts +1755 -0
- package/package.json +34 -3
- package/.env.sample +0 -1
- package/.eslintignore +0 -5
- package/.eslintrc.json +0 -96
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -15
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -6
- package/.prettierignore +0 -7
- package/.prettierrc +0 -9
- package/.storybook/main.ts +0 -22
- package/.storybook/preview.ts +0 -20
- package/.vscode/extensions.json +0 -10
- package/commitlint.config.cjs +0 -1
- package/index.html +0 -31
- package/public/_redirects +0 -1
- package/public/manifest.json +0 -15
- package/public/robots.txt +0 -3
- package/public/vite.svg +0 -1
- package/src/app.tsx +0 -25
- package/src/assets/fonts/Degular-Medium.woff2 +0 -0
- package/src/assets/fonts/Degular-Medium_Italic.woff2 +0 -0
- package/src/assets/fonts/Degular-Semibold.woff2 +0 -0
- package/src/assets/fonts/Degular-Semibold_Italic.woff2 +0 -0
- package/src/assets/fonts/Degular_Display-Bold.woff2 +0 -0
- package/src/assets/fonts/Degular_Display-Bold_Italic.woff2 +0 -0
- package/src/assets/fonts/Degular_Display-Semibold.woff2 +0 -0
- package/src/assets/fonts/Degular_Display-Semibold_Italic.woff2 +0 -0
- package/src/assets/fonts/Sohne-Buch.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Buch.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-BuchKursiv.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Dreiviertelfett.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-DreiviertelfettKursiv.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Extrafett.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Fett.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Halbfett.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-HalbfettKursiv.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Kra/302/246/303/252ftig.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Kra/302/246/303/252ftigKursiv.otf +0 -0
- package/src/assets/fonts/So/302/246/303/252hne-Leicht.otf +0 -0
- package/src/assets/fonts/soehne-buch-kursiv.woff2 +0 -0
- package/src/assets/fonts/soehne-buch.woff2 +0 -0
- package/src/assets/fonts/soehne-dreiviertelfett-kursiv.woff2 +0 -0
- package/src/assets/fonts/soehne-dreiviertelfett.woff2 +0 -0
- package/src/assets/fonts/soehne-extrafett.woff2 +0 -0
- package/src/assets/fonts/soehne-fett.woff2 +0 -0
- package/src/assets/fonts/soehne-halbfett-kursiv.woff2 +0 -0
- package/src/assets/fonts/soehne-halbfett.woff2 +0 -0
- package/src/assets/fonts/soehne-kraftig-kursiv.woff2 +0 -0
- package/src/assets/fonts/soehne-kraftig.woff2 +0 -0
- package/src/assets/fonts/soehne-leicht.woff2 +0 -0
- package/src/assets/styles/index.css +0 -486
- package/src/assets/svgs/check_circle.svg +0 -8
- package/src/assets/svgs/close-circle.svg +0 -3
- package/src/assets/svgs/error_message_icon.svg +0 -8
- package/src/assets/svgs/personal_profile_avatar.svg +0 -13
- package/src/assets/svgs/search-normal.svg +0 -4
- package/src/assets/svgs/store_avatar.svg +0 -13
- package/src/assets/svgs/viewIcon.svg +0 -8
- package/src/assets/svgs/viewOffIcon.svg +0 -3
- package/src/assets/themes/baseThemes.ts +0 -40
- package/src/components/Accordion/index.tsx +0 -111
- package/src/components/Avatars/index.tsx +0 -113
- package/src/components/Button/IconButton.tsx +0 -119
- package/src/components/Button/index.tsx +0 -173
- package/src/components/InputFields/Input.tsx +0 -178
- package/src/components/InputFields/MarkdownEditor.tsx +0 -248
- package/src/components/InputFields/SearchInput.tsx +0 -78
- package/src/components/InputFields/SelectInput/CountrySelect.tsx +0 -142
- package/src/components/InputFields/SelectInput/PhoneNumberInput.tsx +0 -89
- package/src/components/InputFields/SelectInput/SelectInput.tsx +0 -395
- package/src/components/InputFields/SelectInput/index.ts +0 -9
- package/src/components/InputFields/TextArea.tsx +0 -149
- package/src/components/InputFields/UsernameInput.tsx +0 -145
- package/src/components/Tiles/index.tsx +0 -95
- package/src/components/Typography/Display.tsx +0 -84
- package/src/components/Typography/Heading.tsx +0 -136
- package/src/components/Typography/Paragraph.tsx +0 -105
- package/src/components/Typography/Subtitle.tsx +0 -148
- package/src/components/Uploader/FileUploader.tsx +0 -132
- package/src/components/Uploader/ImageUploader.tsx +0 -311
- package/src/components/controls/Chip.tsx +0 -78
- package/src/components/controls/DoubleTab.tsx +0 -80
- package/src/components/controls/Pagination.tsx +0 -164
- package/src/components/controls/RadioButton.tsx +0 -135
- package/src/components/controls/RectangleCheckButton.tsx +0 -106
- package/src/components/controls/RoundCheckButton.tsx +0 -106
- package/src/components/controls/Stepper.tsx +0 -84
- package/src/components/controls/TabMenu.tsx +0 -114
- package/src/components/controls/ToggleButton.tsx +0 -123
- package/src/components/index.ts +0 -33
- package/src/components/notifications/Banner.tsx +0 -175
- package/src/components/notifications/ClickTooltip.tsx +0 -108
- package/src/components/notifications/HoverTooltip.tsx +0 -34
- package/src/components/notifications/Snackbar.tsx +0 -138
- package/src/components/styleGuide/Colors.tsx +0 -176
- package/src/hooks/useImageUpload.ts +0 -78
- package/src/icons/AccountBalanceIcon.tsx +0 -35
- package/src/icons/AccountBalanceWalletFilledIcon.tsx +0 -35
- package/src/icons/AccountBalanceWalletIcon.tsx +0 -35
- package/src/icons/AccountCircleFilledIcon.tsx +0 -35
- package/src/icons/AccountCircleIcon.tsx +0 -35
- package/src/icons/AddAPhotoIcon.tsx +0 -35
- package/src/icons/AddBusinessFilledIcon.tsx +0 -35
- package/src/icons/AddBusinessIcon.tsx +0 -35
- package/src/icons/AddCircleFilledIcon.tsx +0 -35
- package/src/icons/AddCircleIcon.tsx +0 -35
- package/src/icons/AddIcon.tsx +0 -35
- package/src/icons/AddPhotoAlternateIcon.tsx +0 -35
- package/src/icons/AddShoppingCartIcon.tsx +0 -35
- package/src/icons/AddToSocialsIcon.tsx +0 -48
- package/src/icons/AddsClickIcon.tsx +0 -35
- package/src/icons/AdminPanelSettingsIcon.tsx +0 -35
- package/src/icons/AirplaneModeActiveIcon.tsx +0 -35
- package/src/icons/AlarmIcon.tsx +0 -35
- package/src/icons/AllInboxIcon.tsx +0 -35
- package/src/icons/AnimationIcon.tsx +0 -35
- package/src/icons/AppsFilledIcon.tsx +0 -35
- package/src/icons/AppsIcon.tsx +0 -35
- package/src/icons/ArchiveIcon.tsx +0 -35
- package/src/icons/ArrowBackIcon.tsx +0 -35
- package/src/icons/ArrowCircleDownFilledIcon.tsx +0 -35
- package/src/icons/ArrowCircleUpFilledIcon.tsx +0 -35
- package/src/icons/ArrowDropDownIcon.tsx +0 -32
- package/src/icons/ArrowDropUpIcon.tsx +0 -37
- package/src/icons/ArrowForwardIcon.tsx +0 -35
- package/src/icons/ArtTrackIcon.tsx +0 -35
- package/src/icons/ArticleFilledIcon.tsx +0 -35
- package/src/icons/ArticleIcon.tsx +0 -35
- package/src/icons/AttachMoneyIcon.tsx +0 -35
- package/src/icons/AttachmentIcon.tsx +0 -35
- package/src/icons/AudioFileFilledIcon.tsx +0 -35
- package/src/icons/AutoAwesomeMosaicFilledIcon.tsx +0 -35
- package/src/icons/AutoAwesomeMosaicIcon.tsx +0 -35
- package/src/icons/AutoFixFilledIcon.tsx +0 -35
- package/src/icons/AutoFixIcon.tsx +0 -35
- package/src/icons/AutoGraphIcon.tsx +0 -35
- package/src/icons/AwardStarFilledIcon.tsx +0 -35
- package/src/icons/AwardStarIcon.tsx +0 -35
- package/src/icons/BarChartFilledIcon.tsx +0 -35
- package/src/icons/BlockIcon.tsx +0 -35
- package/src/icons/BoltFilledIcon.tsx +0 -35
- package/src/icons/BoltIcon.tsx +0 -35
- package/src/icons/BookOnlineIcon.tsx +0 -35
- package/src/icons/BugReportIcon.tsx +0 -35
- package/src/icons/BusinessCenterFilledIcon.tsx +0 -35
- package/src/icons/BusinessCenterIcon.tsx +0 -35
- package/src/icons/CalendarMonthFilledIcon.tsx +0 -35
- package/src/icons/CalendarMonthIcon.tsx +0 -35
- package/src/icons/CalendarTodayIcon.tsx +0 -35
- package/src/icons/CallMadeIcon.tsx +0 -35
- package/src/icons/CallMissedIcon.tsx +0 -35
- package/src/icons/CallMissedOutgoingIcon.tsx +0 -35
- package/src/icons/CallRecievedIcon.tsx +0 -35
- package/src/icons/CampaignFilledIcon.tsx +0 -22
- package/src/icons/CampaignIcon.tsx +0 -35
- package/src/icons/CancelFilledIcon.tsx +0 -22
- package/src/icons/CancelIcon.tsx +0 -22
- package/src/icons/CaptivePortalIcon.tsx +0 -35
- package/src/icons/CardLayoutIcon.tsx +0 -22
- package/src/icons/CasesFilledIcon.tsx +0 -35
- package/src/icons/CasesIcon.tsx +0 -35
- package/src/icons/CategoryIcon.tsx +0 -35
- package/src/icons/ChairIcon.tsx +0 -35
- package/src/icons/ChangeCircleIcon.tsx +0 -35
- package/src/icons/ChatBubbleFilledIcon.tsx +0 -35
- package/src/icons/ChatBubbleIcon.tsx +0 -35
- package/src/icons/ChatFilledIcon.tsx +0 -35
- package/src/icons/ChatIcon.tsx +0 -35
- package/src/icons/CheckCircleFilledIcon.tsx +0 -35
- package/src/icons/CheckCircleIcon.tsx +0 -35
- package/src/icons/CheckIcon.tsx +0 -35
- package/src/icons/ChevronLeftIcon.tsx +0 -43
- package/src/icons/ChevronRightIcon.tsx +0 -43
- package/src/icons/CloseIcon.tsx +0 -35
- package/src/icons/CloudUploadIcon.tsx +0 -35
- package/src/icons/CodeIcon.tsx +0 -35
- package/src/icons/CoffeeIcon.tsx +0 -35
- package/src/icons/CollectionsBookmarkIcon.tsx +0 -35
- package/src/icons/ColorPickerIcon.tsx +0 -22
- package/src/icons/CommentCircleAltChatMessageIcon.tsx +0 -24
- package/src/icons/ConfirmationNumberIcon.tsx +0 -35
- package/src/icons/ContactMailFilledIcon.tsx +0 -35
- package/src/icons/ContactMailIcon.tsx +0 -35
- package/src/icons/ContactPageIcon.tsx +0 -22
- package/src/icons/ContactPhoneFilledIcon.tsx +0 -35
- package/src/icons/ContactPhoneIcon.tsx +0 -35
- package/src/icons/ContactsIcon.tsx +0 -22
- package/src/icons/ContentCopyIcon.tsx +0 -35
- package/src/icons/CopyIcon.tsx +0 -35
- package/src/icons/CreditCardFilledIcon.tsx +0 -35
- package/src/icons/CreditCardIcon.tsx +0 -35
- package/src/icons/DarkModeIcon.tsx +0 -35
- package/src/icons/DashboardFilledIcon.tsx +0 -35
- package/src/icons/DashboardIcon.tsx +0 -35
- package/src/icons/DatabaseFilledIcon.tsx +0 -35
- package/src/icons/DeleteIcon.tsx +0 -35
- package/src/icons/DescriptionIcon.tsx +0 -35
- package/src/icons/DesktopMacIcon.tsx +0 -35
- package/src/icons/DevicesIcon.tsx +0 -35
- package/src/icons/DiamondFilledIcon.tsx +0 -35
- package/src/icons/DiamondIcon.tsx +0 -35
- package/src/icons/DigitalProductsIcon.tsx +0 -58
- package/src/icons/DiscountIcon.tsx +0 -24
- package/src/icons/Diversity1Icon.tsx +0 -22
- package/src/icons/Diversity2Icon.tsx +0 -22
- package/src/icons/Diversity3Icon.tsx +0 -22
- package/src/icons/DnsIcon.tsx +0 -35
- package/src/icons/DoNotDisturbOnFilledIcon.tsx +0 -35
- package/src/icons/DoNotDisturbOnIcon.tsx +0 -35
- package/src/icons/DomainAddIcon.tsx +0 -35
- package/src/icons/DomainIcon.tsx +0 -35
- package/src/icons/DomainVerificationIcon.tsx +0 -35
- package/src/icons/DownloadIcon.tsx +0 -35
- package/src/icons/DraftsIcon.tsx +0 -35
- package/src/icons/DragHandleIcon.tsx +0 -35
- package/src/icons/DragIndicatorIcon.tsx +0 -35
- package/src/icons/EditFilledIcon.tsx +0 -35
- package/src/icons/EditIcon.tsx +0 -35
- package/src/icons/EmojiEventsFilledIcon.tsx +0 -35
- package/src/icons/EmojiEventsIcon.tsx +0 -35
- package/src/icons/EmojiFoodBeverageIcon.tsx +0 -35
- package/src/icons/EmojiIcon.tsx +0 -35
- package/src/icons/EmptyIcon.tsx +0 -22
- package/src/icons/ErrorFilledIcon.tsx +0 -35
- package/src/icons/ErrorIcon.tsx +0 -35
- package/src/icons/EventFilledIcon.tsx +0 -35
- package/src/icons/EventIcon.tsx +0 -35
- package/src/icons/EventTicketIcon.tsx +0 -54
- package/src/icons/ExpandLessIcon.tsx +0 -40
- package/src/icons/ExpandMoreIcon.tsx +0 -35
- package/src/icons/FastActionPricingIcon.tsx +0 -58
- package/src/icons/FeedFilledIcon.tsx +0 -35
- package/src/icons/FeedIcon.tsx +0 -35
- package/src/icons/FilePresentIcon.tsx +0 -35
- package/src/icons/FilterListIcon.tsx +0 -35
- package/src/icons/FitbitArrowDownIcon.tsx +0 -35
- package/src/icons/FitbitArrowUpwardIcon.tsx +0 -35
- package/src/icons/FlagIcon.tsx +0 -35
- package/src/icons/FormatAlignCenterIcon.tsx +0 -35
- package/src/icons/FormatAlignJustifyIcon.tsx +0 -35
- package/src/icons/FormatAlignLeftIcon.tsx +0 -35
- package/src/icons/FormatAlignRightIcon.tsx +0 -35
- package/src/icons/FormatBoldIcon.tsx +0 -35
- package/src/icons/FormatItalicIcon.tsx +0 -35
- package/src/icons/FormatListBulletedIcon.tsx +0 -35
- package/src/icons/FormatListNumberedIcon.tsx +0 -35
- package/src/icons/FormatSizeIcon.tsx +0 -35
- package/src/icons/FormatUnderlineIcon.tsx +0 -35
- package/src/icons/ForumIcon.tsx +0 -35
- package/src/icons/ForwardToInboxIcon.tsx +0 -35
- package/src/icons/GalleryThumbnailIcon.tsx +0 -35
- package/src/icons/GppBadFilledIcon.tsx +0 -35
- package/src/icons/GppBadIcon.tsx +0 -35
- package/src/icons/GppMaybeFilledIcon.tsx +0 -35
- package/src/icons/GppMaybeIcon.tsx +0 -35
- package/src/icons/GridViewIcon.tsx +0 -35
- package/src/icons/GroupFilledIcon.tsx +0 -35
- package/src/icons/GroupIcon.tsx +0 -35
- package/src/icons/HeadphonesIcon.tsx +0 -35
- package/src/icons/HomeFilledIcon.tsx +0 -35
- package/src/icons/HomeIcon.tsx +0 -35
- package/src/icons/HomePinIcon.tsx +0 -35
- package/src/icons/HourGlassEmptyIcon.tsx +0 -35
- package/src/icons/HubIcon.tsx +0 -22
- package/src/icons/InfoFilledIcon.tsx +0 -35
- package/src/icons/InfoGradientFilledIcon.tsx +0 -49
- package/src/icons/InfoIcon.tsx +0 -35
- package/src/icons/InsertChartFilledIcon.tsx +0 -35
- package/src/icons/InsertChartIcon.tsx +0 -35
- package/src/icons/InventoryIcon.tsx +0 -22
- package/src/icons/IosShareIcon.tsx +0 -35
- package/src/icons/KeyboardBackspaceIcon.tsx +0 -35
- package/src/icons/LanguageIcon.tsx +0 -35
- package/src/icons/LibraryMusicIcon.tsx +0 -35
- package/src/icons/LinkIcon.tsx +0 -35
- package/src/icons/LinkOffIcon.tsx +0 -35
- package/src/icons/LocalActivityIcon.tsx +0 -35
- package/src/icons/LocalFloristFilledIcon.tsx +0 -35
- package/src/icons/LocalFloristIcon.tsx +0 -35
- package/src/icons/LocationOnIcon.tsx +0 -35
- package/src/icons/LockIcon.tsx +0 -35
- package/src/icons/LoginIcon.tsx +0 -35
- package/src/icons/LogoutIcon.tsx +0 -43
- package/src/icons/MailIcon.tsx +0 -35
- package/src/icons/MarkUnreadChatIcon.tsx +0 -35
- package/src/icons/MasterClassIcon.tsx +0 -74
- package/src/icons/MediaLinkFilledIcon.tsx +0 -35
- package/src/icons/MediaLinkIcon.tsx +0 -35
- package/src/icons/MenuIcon.tsx +0 -35
- package/src/icons/MenuOpenIcon.tsx +0 -35
- package/src/icons/MilitaryTechFilledIcon.tsx +0 -35
- package/src/icons/MilitaryTechIcon.tsx +0 -35
- package/src/icons/MonitoringIcon.tsx +0 -35
- package/src/icons/MoreHorizontalIcon.tsx +0 -35
- package/src/icons/MoreHorizontalSmallIcon.tsx +0 -35
- package/src/icons/MoreVerticalIcon.tsx +0 -35
- package/src/icons/NotificationsFilledIcon.tsx +0 -40
- package/src/icons/NotificationsIcon.tsx +0 -35
- package/src/icons/OpenInNewIcon.tsx +0 -35
- package/src/icons/OthersIcon.tsx +0 -58
- package/src/icons/PageViewIcon.tsx +0 -35
- package/src/icons/PaidIcon.tsx +0 -35
- package/src/icons/PaletteFilledIcon.tsx +0 -35
- package/src/icons/PaletteIcon.tsx +0 -35
- package/src/icons/PauseIcon.tsx +0 -22
- package/src/icons/PayInTranchesIcon.tsx +0 -29
- package/src/icons/PaymentsFilledIcon.tsx +0 -35
- package/src/icons/PaymentsIcon.tsx +0 -35
- package/src/icons/PendingActionsIcon.tsx +0 -35
- package/src/icons/PermMediaIcon.tsx +0 -35
- package/src/icons/PersonAddIcon.tsx +0 -35
- package/src/icons/PersonIcon.tsx +0 -35
- package/src/icons/PhotoCameraIcon.tsx +0 -35
- package/src/icons/PhotoFilledIcon.tsx +0 -35
- package/src/icons/PhotoIcon.tsx +0 -35
- package/src/icons/PhotoLibraryFilledIcon.tsx +0 -35
- package/src/icons/PhotoLibraryIcon.tsx +0 -35
- package/src/icons/PictureAsPdfFilledIcon.tsx +0 -35
- package/src/icons/PictureAsPdfIcon.tsx +0 -35
- package/src/icons/PlayArrowIcon.tsx +0 -32
- package/src/icons/PlayCircleFilledIcon.tsx +0 -35
- package/src/icons/PlayCircleIcon.tsx +0 -22
- package/src/icons/PowerRoundedIcon.tsx +0 -35
- package/src/icons/PreviewIcon.tsx +0 -35
- package/src/icons/PublicIcon.tsx +0 -22
- package/src/icons/PublishIcon.tsx +0 -35
- package/src/icons/PushPinFilledIcon.tsx +0 -35
- package/src/icons/PushPinIcon.tsx +0 -35
- package/src/icons/QrCode2Icon.tsx +0 -35
- package/src/icons/RadioButtonCheckedIcon.tsx +0 -35
- package/src/icons/RadioButtonUncheckedIcon.tsx +0 -35
- package/src/icons/RecieptLongFilledIcon.tsx +0 -35
- package/src/icons/RecieptLongIcon.tsx +0 -35
- package/src/icons/RecordVoiceOverIcon.tsx +0 -35
- package/src/icons/RedeemIcon.tsx +0 -35
- package/src/icons/RedoIcon.tsx +0 -35
- package/src/icons/RemoveIcon.tsx +0 -32
- package/src/icons/RemoveRoadIcon.tsx +0 -35
- package/src/icons/ReportFilledIcon.tsx +0 -35
- package/src/icons/ReportIcon.tsx +0 -35
- package/src/icons/ReviewsIcon.tsx +0 -43
- package/src/icons/SavingsFilledIcon.tsx +0 -35
- package/src/icons/SavingsIcon.tsx +0 -35
- package/src/icons/ScheduleIcon.tsx +0 -35
- package/src/icons/ScheduleSendIcon.tsx +0 -35
- package/src/icons/SearchNormalIcon.tsx +0 -32
- package/src/icons/SellIcon.tsx +0 -35
- package/src/icons/SendIcon.tsx +0 -35
- package/src/icons/ServicesIcon.tsx +0 -39
- package/src/icons/SettingsFilledIcon.tsx +0 -35
- package/src/icons/SettingsIcon.tsx +0 -35
- package/src/icons/ShareIcon.tsx +0 -35
- package/src/icons/ShareWithContactsIcon.tsx +0 -62
- package/src/icons/ShareWithSocialsIcon.tsx +0 -64
- package/src/icons/ShoppingCartFilledIcon.tsx +0 -35
- package/src/icons/ShoppingCartIcon.tsx +0 -35
- package/src/icons/ShuffleIcon.tsx +0 -35
- package/src/icons/SmartPhoneIcon.tsx +0 -35
- package/src/icons/SocialLeaderboardIcon.tsx +0 -35
- package/src/icons/StarFilledIcon.tsx +0 -35
- package/src/icons/StarHalfIcon.tsx +0 -35
- package/src/icons/StarIcon.tsx +0 -35
- package/src/icons/StoreFrontFilledIcon.tsx +0 -35
- package/src/icons/StoreFrontIcon.tsx +0 -35
- package/src/icons/StrikeThroughSIcon.tsx +0 -35
- package/src/icons/StyleIcon.tsx +0 -35
- package/src/icons/SubscriptionIcon.tsx +0 -46
- package/src/icons/SubscriptionsFilledIcon.tsx +0 -35
- package/src/icons/SubscriptionsIcon.tsx +0 -35
- package/src/icons/SupervisorAccountIcon.tsx +0 -35
- package/src/icons/SwitchAccountFilledIcon.tsx +0 -35
- package/src/icons/SwitchAccountIcon.tsx +0 -35
- package/src/icons/SyncSavedLocallyIcon.tsx +0 -35
- package/src/icons/TabletIcon.tsx +0 -35
- package/src/icons/ThumbDownFilledIcon.tsx +0 -22
- package/src/icons/ThumbDownIcon.tsx +0 -22
- package/src/icons/ThumbUpFilledIcon.tsx +0 -22
- package/src/icons/ThumbUpIcon.tsx +0 -22
- package/src/icons/TocIcon.tsx +0 -35
- package/src/icons/TrainingsIcon.tsx +0 -37
- package/src/icons/TrashDeleteBinIcon.tsx +0 -36
- package/src/icons/TrendingUpIcon.tsx +0 -35
- package/src/icons/UndoIcon.tsx +0 -35
- package/src/icons/UnfoldMoreIcon.tsx +0 -35
- package/src/icons/UploadIcon.tsx +0 -35
- package/src/icons/VerifiedIcon.tsx +0 -24
- package/src/icons/ViewAgendaIcon.tsx +0 -22
- package/src/icons/ViewArrayIcon.tsx +0 -35
- package/src/icons/ViewCarouselIcon.tsx +0 -35
- package/src/icons/ViewCozyIcon.tsx +0 -22
- package/src/icons/ViewModuleIcon.tsx +0 -35
- package/src/icons/VisibilityIcon.tsx +0 -35
- package/src/icons/VisibilityOffIcon.tsx +0 -35
- package/src/icons/VolunteerActivismFilledIcon.tsx +0 -35
- package/src/icons/VolunteerActivismIcon.tsx +0 -35
- package/src/icons/WBSunnyIcon.tsx +0 -35
- package/src/icons/WarningFilledIcon.tsx +0 -35
- package/src/icons/WarningIcon.tsx +0 -35
- package/src/icons/WebinarsIcon.tsx +0 -57
- package/src/icons/WidgetsFilledIcon.tsx +0 -35
- package/src/icons/WidgetsIcon.tsx +0 -35
- package/src/icons/WorkshopsIcon.tsx +0 -50
- package/src/icons/index.ts +0 -305
- package/src/index.ts +0 -4
- package/src/pages/Home.tsx +0 -30
- package/src/pages/Login.tsx +0 -13
- package/src/pages/Page404.tsx +0 -13
- package/src/pages/index.tsx +0 -21
- package/src/routes/index.tsx +0 -7
- package/src/stories/Accordion/Accordion.stories.tsx +0 -100
- package/src/stories/Accordion/AccordionWrapper.tsx +0 -16
- package/src/stories/Avatars/Avatar.stories.ts +0 -57
- package/src/stories/Buttons/Button.stories.tsx +0 -95
- package/src/stories/Buttons/IconButton.stories.ts +0 -68
- package/src/stories/Buttons/IconButtonWrapper.tsx +0 -14
- package/src/stories/Colors.mdx +0 -12
- package/src/stories/Configure.mdx +0 -371
- package/src/stories/InputFields/InputFields.stories.ts +0 -54
- package/src/stories/InputFields/MarkdownEditor.stories.ts +0 -20
- package/src/stories/InputFields/SearchInput.stories.ts +0 -22
- package/src/stories/InputFields/SearchInput.tsx +0 -19
- package/src/stories/InputFields/Select/CountrySelect.stories.tsx +0 -21
- package/src/stories/InputFields/Select/CountrySelectWrapper.tsx +0 -25
- package/src/stories/InputFields/Select/CreatableSelect.stories.tsx +0 -48
- package/src/stories/InputFields/Select/CreatableSelectWrapper.tsx +0 -25
- package/src/stories/InputFields/Select/PhoneNumberInput.stories.tsx +0 -33
- package/src/stories/InputFields/Select/PhoneNumberInputWrapper.tsx +0 -21
- package/src/stories/InputFields/Select/Select.stories.tsx +0 -49
- package/src/stories/InputFields/Select/SelectWrapper.tsx +0 -25
- package/src/stories/InputFields/TextArea.stories.ts +0 -22
- package/src/stories/InputFields/UsernameInput.stories.ts +0 -22
- package/src/stories/Tiles/Tile.stories.tsx +0 -71
- package/src/stories/Tiles/TileWrapper.tsx +0 -17
- package/src/stories/Typography/DisplayText.stories.ts +0 -52
- package/src/stories/Typography/HeadingText.stories.ts +0 -86
- package/src/stories/Typography/ParagraphText.stories.ts +0 -62
- package/src/stories/Typography/SubtitleText.stories.ts +0 -93
- package/src/stories/Uploaders/FileUploadWrapper.tsx +0 -25
- package/src/stories/Uploaders/FileUploader.stories.tsx +0 -17
- package/src/stories/Uploaders/ImageUploadWrapper.tsx +0 -30
- package/src/stories/Uploaders/ImageUploader.stories.tsx +0 -19
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -5
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -15
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -3
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -12
- package/src/stories/assets/youtube.svg +0 -4
- package/src/stories/colors/index.ts +0 -4
- package/src/stories/controls/Chip.stories.ts +0 -42
- package/src/stories/controls/DoubleTab.stories.ts +0 -32
- package/src/stories/controls/DoubleTabWrapper.tsx +0 -15
- package/src/stories/controls/Pagination.stories.ts +0 -21
- package/src/stories/controls/PaginationWrapper.tsx +0 -23
- package/src/stories/controls/RadioButton.stories.ts +0 -49
- package/src/stories/controls/RectangleCheckButton.stories.ts +0 -41
- package/src/stories/controls/RoundCheckButton.stories.ts +0 -41
- package/src/stories/controls/Stepper.stories.ts +0 -37
- package/src/stories/controls/StepperDemoCmp.tsx +0 -37
- package/src/stories/controls/TabMenu.stories.ts +0 -33
- package/src/stories/controls/TabMenuWrapper.tsx +0 -14
- package/src/stories/controls/ToggleButton.stories.ts +0 -41
- package/src/stories/icons/Icons.mdx +0 -26
- package/src/stories/icons/index.ts +0 -613
- package/src/stories/notifications/Banner.stories.ts +0 -88
- package/src/stories/notifications/ClickTooltip.stories.ts +0 -21
- package/src/stories/notifications/ClickTooltipWrapper.tsx +0 -19
- package/src/stories/notifications/HoverTooltip.stories.ts +0 -35
- package/src/stories/notifications/HoverTooltipWrapper.tsx +0 -16
- package/src/stories/notifications/Snackbar.stories.ts +0 -17
- package/src/stories/notifications/SnackbarWrapper.tsx +0 -107
- package/src/utils/countries-flag.json +0 -1752
- package/tsconfig.json +0 -34
- package/vite.config.ts +0 -31
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { useMemo, useRef } from "react";
|
|
3
|
-
import ReactQuill from "react-quill";
|
|
4
|
-
import { Box, Text, Flex, FormLabel } from "@chakra-ui/react";
|
|
5
|
-
import { AutoFixIcon } from "icons";
|
|
6
|
-
import Colors from "components/styleGuide/Colors";
|
|
7
|
-
import "react-quill/dist/quill.snow.css";
|
|
8
|
-
import "assets/styles/index.css";
|
|
9
|
-
// import { ClipLoader } from "react-spinners";
|
|
10
|
-
|
|
11
|
-
interface IMarkdownEditor {
|
|
12
|
-
onChange: (val: string) => void;
|
|
13
|
-
border?: string;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
onHandleFile: (e: File) => void;
|
|
16
|
-
label?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type MarkdownEditorWithExclusiveValues =
|
|
20
|
-
| (IMarkdownEditor & { value?: string; defaultValue?: never })
|
|
21
|
-
| (IMarkdownEditor & { defaultValue?: string; value?: never });
|
|
22
|
-
|
|
23
|
-
interface ICustomtoolBar {
|
|
24
|
-
setValue: (e: any) => void;
|
|
25
|
-
handleGenerateAiDescription?: () => void;
|
|
26
|
-
isLoading?: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const CustomToolbar = ({
|
|
30
|
-
setValue,
|
|
31
|
-
handleGenerateAiDescription,
|
|
32
|
-
isLoading,
|
|
33
|
-
}: ICustomtoolBar) => {
|
|
34
|
-
return (
|
|
35
|
-
<div id="toolbar">
|
|
36
|
-
<span className="ql-formats">
|
|
37
|
-
<span className="ql-hello">
|
|
38
|
-
<Box borderRight={`1px solid ${Colors.gray100}`} pr={"4px"}>
|
|
39
|
-
<Flex
|
|
40
|
-
justifyContent={"center"}
|
|
41
|
-
alignItems={"center"}
|
|
42
|
-
borderRadius={"100px"}
|
|
43
|
-
px={"12px"}
|
|
44
|
-
py={"6px"}
|
|
45
|
-
bg={Colors.purple50}
|
|
46
|
-
gap={"8px"}
|
|
47
|
-
cursor={isLoading ? "not-allowed" : "pointer"}
|
|
48
|
-
className="aiBtn"
|
|
49
|
-
onClick={handleGenerateAiDescription}
|
|
50
|
-
minWidth={{ md: "150px", base: "auto" }}
|
|
51
|
-
>
|
|
52
|
-
{isLoading ? (
|
|
53
|
-
// <ClipLoader
|
|
54
|
-
// size={pixel2rem(20)}
|
|
55
|
-
// color={Colors.purple400 || ""}
|
|
56
|
-
// />
|
|
57
|
-
<></>
|
|
58
|
-
) : (
|
|
59
|
-
<>
|
|
60
|
-
<Text
|
|
61
|
-
color={Colors.purple400}
|
|
62
|
-
fontFamily={"Degular"}
|
|
63
|
-
fontSize={"0.875rem"}
|
|
64
|
-
fontWeight={600}
|
|
65
|
-
lineHeight={"1rem"}
|
|
66
|
-
letterSpacing={"-0.4px"}
|
|
67
|
-
display={{ md: "block", base: "none" }}
|
|
68
|
-
>
|
|
69
|
-
Generate with AI
|
|
70
|
-
</Text>
|
|
71
|
-
<AutoFixIcon
|
|
72
|
-
color={Colors.purple400}
|
|
73
|
-
boxSize={"20px"}
|
|
74
|
-
mt={1}
|
|
75
|
-
className="aiBtn__icon"
|
|
76
|
-
/>
|
|
77
|
-
</>
|
|
78
|
-
)}
|
|
79
|
-
</Flex>
|
|
80
|
-
</Box>
|
|
81
|
-
</span>
|
|
82
|
-
</span>
|
|
83
|
-
<span className="ql-formats">
|
|
84
|
-
<select
|
|
85
|
-
className="ql-header"
|
|
86
|
-
defaultValue={""}
|
|
87
|
-
onChange={(e) => e.persist()}
|
|
88
|
-
>
|
|
89
|
-
<option value="1" />
|
|
90
|
-
<option value="2" />
|
|
91
|
-
<option value="3" />
|
|
92
|
-
<option value="4" />
|
|
93
|
-
<option value="5" />
|
|
94
|
-
<option value="6" />
|
|
95
|
-
<option selected />
|
|
96
|
-
</select>
|
|
97
|
-
</span>
|
|
98
|
-
|
|
99
|
-
<span className="ql-formats">
|
|
100
|
-
<button className="ql-bold"></button>
|
|
101
|
-
<button className="ql-italic"></button>
|
|
102
|
-
<button className="ql-underline"></button>
|
|
103
|
-
<button className="ql-strike"></button>
|
|
104
|
-
</span>
|
|
105
|
-
<span className="ql-formats">
|
|
106
|
-
<button className="ql-blockquote"></button>
|
|
107
|
-
<button className="ql-code-block"></button>
|
|
108
|
-
</span>
|
|
109
|
-
<span className="ql-formats">
|
|
110
|
-
<button className="ql-list" value="ordered"></button>
|
|
111
|
-
<button className="ql-list" value="bullet"></button>
|
|
112
|
-
</span>
|
|
113
|
-
<span className="ql-formats">
|
|
114
|
-
<button className="ql-script" value="sub"></button>
|
|
115
|
-
<button className="ql-script" value="super"></button>
|
|
116
|
-
</span>
|
|
117
|
-
<span className="ql-formats">
|
|
118
|
-
<button className="ql-indent" value="-1"></button>
|
|
119
|
-
<button className="ql-indent" value="+1"></button>
|
|
120
|
-
</span>
|
|
121
|
-
<span className="ql-formats">
|
|
122
|
-
<button className="ql-direction" value="rtl"></button>
|
|
123
|
-
</span>
|
|
124
|
-
<span className="ql-formats">
|
|
125
|
-
<button className="ql-link"></button>
|
|
126
|
-
<button className="ql-image"></button>
|
|
127
|
-
<button className="ql-video"></button>
|
|
128
|
-
</span>
|
|
129
|
-
<span className="ql-formats">
|
|
130
|
-
<button className="ql-clean"></button>
|
|
131
|
-
</span>
|
|
132
|
-
</div>
|
|
133
|
-
);
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
const MarkdownEditor = ({
|
|
137
|
-
defaultValue,
|
|
138
|
-
onChange,
|
|
139
|
-
border,
|
|
140
|
-
placeholder = "Type your message here...",
|
|
141
|
-
value,
|
|
142
|
-
onHandleFile,
|
|
143
|
-
label,
|
|
144
|
-
}: MarkdownEditorWithExclusiveValues) => {
|
|
145
|
-
const quillRef = useRef<any>(null);
|
|
146
|
-
|
|
147
|
-
const fileToDataUri = (file: File) =>
|
|
148
|
-
new Promise((resolve) => {
|
|
149
|
-
const reader = new FileReader();
|
|
150
|
-
reader.onload = (event) => {
|
|
151
|
-
resolve(event?.target?.result);
|
|
152
|
-
};
|
|
153
|
-
reader.readAsDataURL(file);
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
const imageHandler = () => {
|
|
157
|
-
const input = document.createElement("input");
|
|
158
|
-
const editor = quillRef.current.getEditor();
|
|
159
|
-
|
|
160
|
-
input.setAttribute("type", "file");
|
|
161
|
-
input.setAttribute("accept", "image/*");
|
|
162
|
-
input.click();
|
|
163
|
-
|
|
164
|
-
input.onchange = () => {
|
|
165
|
-
const file: File | null = input && input.files && input.files[0];
|
|
166
|
-
if (file) {
|
|
167
|
-
onHandleFile(file);
|
|
168
|
-
// if (/^image\//.test(file.type)) {
|
|
169
|
-
// fileToDataUri(file).then(async (dataURL) => {
|
|
170
|
-
// const data = {
|
|
171
|
-
// images: [
|
|
172
|
-
// {
|
|
173
|
-
// alt: "",
|
|
174
|
-
// buffer: dataURL,
|
|
175
|
-
// },
|
|
176
|
-
// ],
|
|
177
|
-
// };
|
|
178
|
-
|
|
179
|
-
// const res = await Request.post(
|
|
180
|
-
// `/upload-images?account_id=${account_id}`,
|
|
181
|
-
// data
|
|
182
|
-
// );
|
|
183
|
-
|
|
184
|
-
// const url = res.data && res?.data[0]?.path;
|
|
185
|
-
// editor.insertEmbed(editor.getSelection(), "image", url);
|
|
186
|
-
// });
|
|
187
|
-
// } else {
|
|
188
|
-
// customToast("You can only upload an image.", ToastType.error);
|
|
189
|
-
// }
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
const modules = useMemo(
|
|
195
|
-
() => ({
|
|
196
|
-
toolbar: {
|
|
197
|
-
container: "#toolbar",
|
|
198
|
-
handlers: {
|
|
199
|
-
image: imageHandler,
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
}),
|
|
203
|
-
// eslint-disable-next-line
|
|
204
|
-
[]
|
|
205
|
-
);
|
|
206
|
-
|
|
207
|
-
return (
|
|
208
|
-
<Box w="full" fontFamily={"Degular"} fontWeight={500}>
|
|
209
|
-
{label && (
|
|
210
|
-
<FormLabel
|
|
211
|
-
fontSize={"1rem"}
|
|
212
|
-
lineHeight="1.25rem"
|
|
213
|
-
fontWeight={600}
|
|
214
|
-
fontFamily="Degular"
|
|
215
|
-
letterSpacing="-0.004rem"
|
|
216
|
-
mb="12px"
|
|
217
|
-
>
|
|
218
|
-
{label}
|
|
219
|
-
</FormLabel>
|
|
220
|
-
)}
|
|
221
|
-
<Box
|
|
222
|
-
border={border ?? `1px solid ${Colors.gray50}`}
|
|
223
|
-
borderRadius="12px"
|
|
224
|
-
className="markdown-container"
|
|
225
|
-
p="16px"
|
|
226
|
-
_hover={{
|
|
227
|
-
background: Colors.gray50,
|
|
228
|
-
border: `3px solid ${Colors.black300}`,
|
|
229
|
-
}}
|
|
230
|
-
transition={"all 0.2s ease-in-out"}
|
|
231
|
-
>
|
|
232
|
-
<CustomToolbar setValue={onChange} />
|
|
233
|
-
<ReactQuill
|
|
234
|
-
modules={modules}
|
|
235
|
-
theme="snow"
|
|
236
|
-
onChange={onChange}
|
|
237
|
-
defaultValue={value}
|
|
238
|
-
ref={quillRef}
|
|
239
|
-
placeholder={placeholder}
|
|
240
|
-
style={{ fontSize: "20px" }}
|
|
241
|
-
value={value}
|
|
242
|
-
/>
|
|
243
|
-
</Box>
|
|
244
|
-
</Box>
|
|
245
|
-
);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
export default MarkdownEditor;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
Input as ChakraInput,
|
|
5
|
-
InputGroup,
|
|
6
|
-
InputLeftElement,
|
|
7
|
-
InputProps,
|
|
8
|
-
InputRightElement,
|
|
9
|
-
} from "@chakra-ui/react";
|
|
10
|
-
import Colors from "components/styleGuide/Colors";
|
|
11
|
-
import { CancelFilledIcon, SearchNormalIcon } from "icons";
|
|
12
|
-
|
|
13
|
-
export interface ISearchInput extends InputProps {
|
|
14
|
-
name: string;
|
|
15
|
-
value?: string;
|
|
16
|
-
id: string;
|
|
17
|
-
onChange?: (e?: any) => void;
|
|
18
|
-
defaultValue?: any;
|
|
19
|
-
placeholder?: any;
|
|
20
|
-
error?: boolean;
|
|
21
|
-
errorMessage?: string;
|
|
22
|
-
success?: boolean;
|
|
23
|
-
successMessage?: string;
|
|
24
|
-
hint?: string;
|
|
25
|
-
onClear?: any;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const SearchInput = ({
|
|
29
|
-
name,
|
|
30
|
-
id,
|
|
31
|
-
value,
|
|
32
|
-
onChange,
|
|
33
|
-
defaultValue,
|
|
34
|
-
placeholder,
|
|
35
|
-
onClear,
|
|
36
|
-
}: ISearchInput) => {
|
|
37
|
-
return (
|
|
38
|
-
<InputGroup>
|
|
39
|
-
<InputLeftElement py="12px" ml="4px">
|
|
40
|
-
<SearchNormalIcon color={Colors.gray200} />
|
|
41
|
-
</InputLeftElement>
|
|
42
|
-
{value && (
|
|
43
|
-
<InputRightElement py="12px" mr="8px" onClick={onClear}>
|
|
44
|
-
<CancelFilledIcon />
|
|
45
|
-
</InputRightElement>
|
|
46
|
-
)}
|
|
47
|
-
|
|
48
|
-
<ChakraInput
|
|
49
|
-
name={name}
|
|
50
|
-
id={id}
|
|
51
|
-
value={value}
|
|
52
|
-
defaultValue={defaultValue}
|
|
53
|
-
onChange={onChange}
|
|
54
|
-
placeholder={placeholder || "Search..."}
|
|
55
|
-
bg={Colors.gray50}
|
|
56
|
-
borderRadius="100px"
|
|
57
|
-
border="none"
|
|
58
|
-
fontFamily={"Degular"}
|
|
59
|
-
fontSize={"16px"}
|
|
60
|
-
lineHeight={"24px"}
|
|
61
|
-
letterSpacing={"-0.2px"}
|
|
62
|
-
fontWeight={500}
|
|
63
|
-
_focus={{
|
|
64
|
-
outline: `none !important`,
|
|
65
|
-
}}
|
|
66
|
-
_focusVisible={{
|
|
67
|
-
outline: `none !important`,
|
|
68
|
-
}}
|
|
69
|
-
py="12px"
|
|
70
|
-
px="16px"
|
|
71
|
-
type="text"
|
|
72
|
-
_placeholder={{ color: `${Colors.gray200}` }}
|
|
73
|
-
/>
|
|
74
|
-
</InputGroup>
|
|
75
|
-
);
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export default SearchInput;
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
|
|
3
|
-
import { Box, Circle, Flex, FormLabel, Text } from "@chakra-ui/react";
|
|
4
|
-
import AsyncSelect from "react-select/async";
|
|
5
|
-
import countries_flag from "utils/countries-flag.json";
|
|
6
|
-
import {
|
|
7
|
-
DropdownIndicator,
|
|
8
|
-
ISelectInputProps,
|
|
9
|
-
OptionType,
|
|
10
|
-
selectStyles,
|
|
11
|
-
} from "./SelectInput";
|
|
12
|
-
import { useRef } from "react";
|
|
13
|
-
// eslint-disable-next-line import/named
|
|
14
|
-
import { GroupBase } from "react-select";
|
|
15
|
-
import Select from "react-select/dist/declarations/src/Select";
|
|
16
|
-
|
|
17
|
-
const CustomOption = ({
|
|
18
|
-
value,
|
|
19
|
-
flag,
|
|
20
|
-
abr,
|
|
21
|
-
}: {
|
|
22
|
-
value: string;
|
|
23
|
-
flag: string;
|
|
24
|
-
abr: string;
|
|
25
|
-
}) => {
|
|
26
|
-
return (
|
|
27
|
-
<Flex alignItems="center" cursor={"pointer"} gap="12px">
|
|
28
|
-
{flag && (
|
|
29
|
-
<Circle
|
|
30
|
-
bg={`url(${flag})`}
|
|
31
|
-
bgSize="cover"
|
|
32
|
-
bgPosition="center"
|
|
33
|
-
bgRepeat="no-repeat"
|
|
34
|
-
size="20px"
|
|
35
|
-
></Circle>
|
|
36
|
-
)}
|
|
37
|
-
<Text
|
|
38
|
-
fontSize="17px"
|
|
39
|
-
lineHeight={"120%"}
|
|
40
|
-
fontWeight={600}
|
|
41
|
-
fontFamily="Degular Display"
|
|
42
|
-
letterSpacing="0.1px"
|
|
43
|
-
>
|
|
44
|
-
{value}
|
|
45
|
-
</Text>
|
|
46
|
-
</Flex>
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const countries = countries_flag
|
|
51
|
-
?.sort((a, b) => a.name.localeCompare(b.name))
|
|
52
|
-
?.map((i) => ({
|
|
53
|
-
value: i.name,
|
|
54
|
-
label: i.name,
|
|
55
|
-
flag: i.flag,
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
abr: i.alpha3Code,
|
|
58
|
-
code: i.alpha2Code,
|
|
59
|
-
}));
|
|
60
|
-
|
|
61
|
-
export interface ICountrySelectProps {
|
|
62
|
-
valueType?: "full" | "code";
|
|
63
|
-
options?: any;
|
|
64
|
-
label?: string;
|
|
65
|
-
placeholder?: string;
|
|
66
|
-
onChange?: (e: any) => void;
|
|
67
|
-
onBlur?: (e: any) => void;
|
|
68
|
-
value?: any;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const CountrySelect = ({
|
|
72
|
-
value,
|
|
73
|
-
onChange,
|
|
74
|
-
label = "Country",
|
|
75
|
-
valueType = "full",
|
|
76
|
-
placeholder = "Select your country",
|
|
77
|
-
options = countries,
|
|
78
|
-
}: ICountrySelectProps) => {
|
|
79
|
-
const loadOptions = (
|
|
80
|
-
searchValue: string,
|
|
81
|
-
callBack: (options: any[]) => void
|
|
82
|
-
) => {
|
|
83
|
-
const filteredOptions = options?.filter((option: OptionType) =>
|
|
84
|
-
option.label.toLowerCase().includes(searchValue.toLowerCase())
|
|
85
|
-
);
|
|
86
|
-
callBack(filteredOptions);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
const selectRef = useRef<Select<any, boolean, GroupBase<any>> | null>(null);
|
|
90
|
-
|
|
91
|
-
return (
|
|
92
|
-
<Box w="full" fontFamily={"Degular"} fontWeight={500}>
|
|
93
|
-
{label && (
|
|
94
|
-
<FormLabel
|
|
95
|
-
fontSize={"1rem"}
|
|
96
|
-
lineHeight="1.25rem"
|
|
97
|
-
fontWeight={600}
|
|
98
|
-
fontFamily="Degular"
|
|
99
|
-
letterSpacing="-0.004rem"
|
|
100
|
-
mb="12px"
|
|
101
|
-
htmlFor={"country"}
|
|
102
|
-
>
|
|
103
|
-
{label}
|
|
104
|
-
</FormLabel>
|
|
105
|
-
)}
|
|
106
|
-
|
|
107
|
-
<AsyncSelect
|
|
108
|
-
components={{
|
|
109
|
-
DropdownIndicator,
|
|
110
|
-
IndicatorSeparator: () => null,
|
|
111
|
-
// Option: CustomOption,
|
|
112
|
-
}}
|
|
113
|
-
loadOptions={loadOptions}
|
|
114
|
-
cacheOptions
|
|
115
|
-
defaultOptions={options}
|
|
116
|
-
id="country"
|
|
117
|
-
placeholder={placeholder}
|
|
118
|
-
styles={selectStyles}
|
|
119
|
-
formatOptionLabel={CustomOption}
|
|
120
|
-
name="country"
|
|
121
|
-
onChange={(e: any) => {
|
|
122
|
-
if (onChange) {
|
|
123
|
-
onChange(valueType === "code" ? e : e?.value);
|
|
124
|
-
selectRef?.current?.blur();
|
|
125
|
-
}
|
|
126
|
-
}}
|
|
127
|
-
ref={selectRef}
|
|
128
|
-
value={
|
|
129
|
-
value
|
|
130
|
-
? {
|
|
131
|
-
value,
|
|
132
|
-
abr: options?.find((i: any) => i?.value === value)?.abr,
|
|
133
|
-
flag: options?.find((i: any) => i?.value === value)?.flag,
|
|
134
|
-
}
|
|
135
|
-
: null
|
|
136
|
-
}
|
|
137
|
-
/>
|
|
138
|
-
</Box>
|
|
139
|
-
);
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
export default CountrySelect;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
Box,
|
|
5
|
-
FormControl,
|
|
6
|
-
FormErrorMessage,
|
|
7
|
-
FormLabel,
|
|
8
|
-
} from "@chakra-ui/react";
|
|
9
|
-
import Paragraph from "components/Typography/Paragraph";
|
|
10
|
-
import Colors from "components/styleGuide/Colors";
|
|
11
|
-
import { useEffect } from "react";
|
|
12
|
-
import PhoneInput from "react-phone-input-2";
|
|
13
|
-
import "react-phone-input-2/lib/style.css";
|
|
14
|
-
import "assets/styles/index.css";
|
|
15
|
-
|
|
16
|
-
export interface IPhoneNumberInputProps {
|
|
17
|
-
value?: string;
|
|
18
|
-
onChange?: (value: string) => void;
|
|
19
|
-
enableSearch?: boolean;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
label?: string;
|
|
22
|
-
id?: string;
|
|
23
|
-
subtext?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const PhoneNumberInput = ({
|
|
27
|
-
value,
|
|
28
|
-
onChange,
|
|
29
|
-
enableSearch,
|
|
30
|
-
placeholder,
|
|
31
|
-
label,
|
|
32
|
-
id,
|
|
33
|
-
subtext,
|
|
34
|
-
}: IPhoneNumberInputProps) => {
|
|
35
|
-
const dropdown = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
36
|
-
<mask id="mask0_1047_15277" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
|
|
37
|
-
<rect width="20" height="20" fill="#C4C4C4"/>
|
|
38
|
-
</mask>
|
|
39
|
-
<g mask="url(#mask0_1047_15277)">
|
|
40
|
-
<path d="M9.99942 13.0211C9.8789 13.0211 9.76673 13.0019 9.66289 12.9634C9.55904 12.925 9.46032 12.8589 9.36674 12.7653L4.87252 8.27112C4.73405 8.13267 4.66322 7.95864 4.66002 7.74902C4.6568 7.53941 4.72763 7.36217 4.87252 7.2173C5.01738 7.07243 5.19302 7 5.39942 7C5.60582 7 5.78145 7.07243 5.92632 7.2173L9.99942 11.2904L14.0725 7.2173C14.211 7.07885 14.385 7.00802 14.5946 7.0048C14.8042 7.0016 14.9814 7.07243 15.1263 7.2173C15.2712 7.36217 15.3436 7.53781 15.3436 7.74422C15.3436 7.95062 15.2712 8.12626 15.1263 8.27112L10.6321 12.7653C10.5385 12.8589 10.4398 12.925 10.3359 12.9634C10.2321 13.0019 10.1199 13.0211 9.99942 13.0211Z" fill="#131316"/>
|
|
41
|
-
</g>
|
|
42
|
-
</svg>`;
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
if (window) {
|
|
45
|
-
const el = document.querySelector(".phone_container_class .arrow");
|
|
46
|
-
if (el) {
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
el.innerHTML = dropdown;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}, []);
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<Box w="full" fontFamily={"Degular"} fontWeight={500}>
|
|
55
|
-
{label && (
|
|
56
|
-
<FormLabel
|
|
57
|
-
fontSize={"1rem"}
|
|
58
|
-
lineHeight="1.25rem"
|
|
59
|
-
fontWeight={600}
|
|
60
|
-
fontFamily="Degular"
|
|
61
|
-
letterSpacing="-0.004rem"
|
|
62
|
-
mb="12px"
|
|
63
|
-
htmlFor={id ?? ""}
|
|
64
|
-
>
|
|
65
|
-
{label}
|
|
66
|
-
</FormLabel>
|
|
67
|
-
)}
|
|
68
|
-
<PhoneInput
|
|
69
|
-
enableSearch={enableSearch}
|
|
70
|
-
countryCodeEditable={false}
|
|
71
|
-
value={value}
|
|
72
|
-
onChange={onChange}
|
|
73
|
-
containerClass={`phone-input-container phone_container_class`}
|
|
74
|
-
placeholder={placeholder}
|
|
75
|
-
inputClass="phone_input"
|
|
76
|
-
buttonClass="phone_country_button"
|
|
77
|
-
dropdownClass="phone_country_dropdown"
|
|
78
|
-
/>
|
|
79
|
-
|
|
80
|
-
{subtext && (
|
|
81
|
-
<Paragraph size={"xxs"} color={Colors.gray400} mt={"8px"}>
|
|
82
|
-
{subtext}
|
|
83
|
-
</Paragraph>
|
|
84
|
-
)}
|
|
85
|
-
</Box>
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export default PhoneNumberInput;
|