mainstack-design-system 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.sample +1 -0
- package/.eslintignore +5 -0
- package/.eslintrc.json +96 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +15 -0
- package/.husky/commit-msg +4 -0
- package/.husky/pre-commit +6 -0
- package/.prettierignore +7 -0
- package/.prettierrc +9 -0
- package/.storybook/main.ts +22 -0
- package/.storybook/preview.ts +20 -0
- package/.vscode/extensions.json +10 -0
- package/README.md +139 -0
- package/commitlint.config.cjs +1 -0
- package/index.html +31 -0
- package/package.json +98 -0
- package/public/_redirects +1 -0
- package/public/manifest.json +15 -0
- package/public/robots.txt +3 -0
- package/public/vite.svg +1 -0
- package/src/app.tsx +25 -0
- 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 +486 -0
- package/src/assets/svgs/check_circle.svg +8 -0
- package/src/assets/svgs/close-circle.svg +3 -0
- package/src/assets/svgs/error_message_icon.svg +8 -0
- package/src/assets/svgs/personal_profile_avatar.svg +13 -0
- package/src/assets/svgs/search-normal.svg +4 -0
- package/src/assets/svgs/store_avatar.svg +13 -0
- package/src/assets/svgs/viewIcon.svg +8 -0
- package/src/assets/svgs/viewOffIcon.svg +3 -0
- package/src/assets/themes/baseThemes.ts +40 -0
- package/src/components/Accordion/index.tsx +111 -0
- package/src/components/Avatars/index.tsx +111 -0
- package/src/components/Button/IconButton.tsx +119 -0
- package/src/components/Button/index.tsx +173 -0
- package/src/components/InputFields/Input.tsx +177 -0
- package/src/components/InputFields/MarkdownEditor.tsx +246 -0
- package/src/components/InputFields/SearchInput.tsx +80 -0
- package/src/components/InputFields/SelectInput/CountrySelect.tsx +142 -0
- package/src/components/InputFields/SelectInput/PhoneNumberInput.tsx +89 -0
- package/src/components/InputFields/SelectInput/SelectInput.tsx +395 -0
- package/src/components/InputFields/SelectInput/index.ts +9 -0
- package/src/components/InputFields/TextArea.tsx +150 -0
- package/src/components/InputFields/UsernameInput.tsx +145 -0
- package/src/components/Tiles/index.tsx +95 -0
- package/src/components/Typography/Display.tsx +84 -0
- package/src/components/Typography/Heading.tsx +136 -0
- package/src/components/Typography/Paragraph.tsx +105 -0
- package/src/components/Typography/Subtitle.tsx +148 -0
- package/src/components/Uploader/FileUploader.tsx +132 -0
- package/src/components/Uploader/ImageUploader.tsx +311 -0
- package/src/components/controls/Chip.tsx +78 -0
- package/src/components/controls/DoubleTab.tsx +80 -0
- package/src/components/controls/Pagination.tsx +164 -0
- package/src/components/controls/RadioButton.tsx +135 -0
- package/src/components/controls/RectangleCheckButton.tsx +106 -0
- package/src/components/controls/RoundCheckButton.tsx +106 -0
- package/src/components/controls/Stepper.tsx +84 -0
- package/src/components/controls/TabMenu.tsx +114 -0
- package/src/components/controls/ToggleButton.tsx +123 -0
- package/src/components/notifications/Banner.tsx +175 -0
- package/src/components/notifications/ClickTooltip.tsx +108 -0
- package/src/components/notifications/HoverTooltip.tsx +34 -0
- package/src/components/notifications/Snackbar.tsx +138 -0
- package/src/components/styleGuide/Colors.tsx +176 -0
- package/src/hooks/useImageUpload.ts +78 -0
- package/src/icons/AccountBalanceIcon.tsx +35 -0
- package/src/icons/AccountBalanceWalletFilledIcon.tsx +35 -0
- package/src/icons/AccountBalanceWalletIcon.tsx +35 -0
- package/src/icons/AccountCircleFilledIcon.tsx +35 -0
- package/src/icons/AccountCircleIcon.tsx +35 -0
- package/src/icons/AddAPhotoIcon.tsx +35 -0
- package/src/icons/AddBusinessFilledIcon.tsx +35 -0
- package/src/icons/AddBusinessIcon.tsx +35 -0
- package/src/icons/AddCircleFilledIcon.tsx +35 -0
- package/src/icons/AddCircleIcon.tsx +35 -0
- package/src/icons/AddIcon.tsx +35 -0
- package/src/icons/AddPhotoAlternateIcon.tsx +35 -0
- package/src/icons/AddShoppingCartIcon.tsx +35 -0
- package/src/icons/AddToSocialsIcon.tsx +48 -0
- package/src/icons/AddsClickIcon.tsx +35 -0
- package/src/icons/AdminPanelSettingsIcon.tsx +35 -0
- package/src/icons/AirplaneModeActiveIcon.tsx +35 -0
- package/src/icons/AlarmIcon.tsx +35 -0
- package/src/icons/AllInboxIcon.tsx +35 -0
- package/src/icons/AnimationIcon.tsx +35 -0
- package/src/icons/AppsFilledIcon.tsx +35 -0
- package/src/icons/AppsIcon.tsx +35 -0
- package/src/icons/ArchiveIcon.tsx +35 -0
- package/src/icons/ArrowBackIcon.tsx +35 -0
- package/src/icons/ArrowCircleDownFilledIcon.tsx +35 -0
- package/src/icons/ArrowCircleUpFilledIcon.tsx +35 -0
- package/src/icons/ArrowDropDownIcon.tsx +32 -0
- package/src/icons/ArrowDropUpIcon.tsx +37 -0
- package/src/icons/ArrowForwardIcon.tsx +35 -0
- package/src/icons/ArtTrackIcon.tsx +35 -0
- package/src/icons/ArticleFilledIcon.tsx +35 -0
- package/src/icons/ArticleIcon.tsx +35 -0
- package/src/icons/AttachMoneyIcon.tsx +35 -0
- package/src/icons/AttachmentIcon.tsx +35 -0
- package/src/icons/AudioFileFilledIcon.tsx +35 -0
- package/src/icons/AutoAwesomeMosaicFilledIcon.tsx +35 -0
- package/src/icons/AutoAwesomeMosaicIcon.tsx +35 -0
- package/src/icons/AutoFixFilledIcon.tsx +35 -0
- package/src/icons/AutoFixIcon.tsx +35 -0
- package/src/icons/AutoGraphIcon.tsx +35 -0
- package/src/icons/AwardStarFilledIcon.tsx +35 -0
- package/src/icons/AwardStarIcon.tsx +35 -0
- package/src/icons/BarChartFilledIcon.tsx +35 -0
- package/src/icons/BlockIcon.tsx +35 -0
- package/src/icons/BoltFilledIcon.tsx +35 -0
- package/src/icons/BoltIcon.tsx +35 -0
- package/src/icons/BookOnlineIcon.tsx +35 -0
- package/src/icons/BugReportIcon.tsx +35 -0
- package/src/icons/BusinessCenterFilledIcon.tsx +35 -0
- package/src/icons/BusinessCenterIcon.tsx +35 -0
- package/src/icons/CalendarMonthFilledIcon.tsx +35 -0
- package/src/icons/CalendarMonthIcon.tsx +35 -0
- package/src/icons/CalendarTodayIcon.tsx +35 -0
- package/src/icons/CallMadeIcon.tsx +35 -0
- package/src/icons/CallMissedIcon.tsx +35 -0
- package/src/icons/CallMissedOutgoingIcon.tsx +35 -0
- package/src/icons/CallRecievedIcon.tsx +35 -0
- package/src/icons/CampaignFilledIcon.tsx +22 -0
- package/src/icons/CampaignIcon.tsx +35 -0
- package/src/icons/CancelFilledIcon.tsx +22 -0
- package/src/icons/CancelIcon.tsx +22 -0
- package/src/icons/CaptivePortalIcon.tsx +35 -0
- package/src/icons/CardLayoutIcon.tsx +22 -0
- package/src/icons/CasesFilledIcon.tsx +35 -0
- package/src/icons/CasesIcon.tsx +35 -0
- package/src/icons/CategoryIcon.tsx +35 -0
- package/src/icons/ChairIcon.tsx +35 -0
- package/src/icons/ChangeCircleIcon.tsx +35 -0
- package/src/icons/ChatBubbleFilledIcon.tsx +35 -0
- package/src/icons/ChatBubbleIcon.tsx +35 -0
- package/src/icons/ChatFilledIcon.tsx +35 -0
- package/src/icons/ChatIcon.tsx +35 -0
- package/src/icons/CheckCircleFilledIcon.tsx +35 -0
- package/src/icons/CheckCircleIcon.tsx +35 -0
- package/src/icons/CheckIcon.tsx +35 -0
- package/src/icons/ChevronLeftIcon.tsx +43 -0
- package/src/icons/ChevronRightIcon.tsx +43 -0
- package/src/icons/CloseIcon.tsx +35 -0
- package/src/icons/CloudUploadIcon.tsx +35 -0
- package/src/icons/CodeIcon.tsx +35 -0
- package/src/icons/CoffeeIcon.tsx +35 -0
- package/src/icons/CollectionsBookmarkIcon.tsx +35 -0
- package/src/icons/ColorPickerIcon.tsx +22 -0
- package/src/icons/CommentCircleAltChatMessageIcon.tsx +24 -0
- package/src/icons/ConfirmationNumberIcon.tsx +35 -0
- package/src/icons/ContactMailFilledIcon.tsx +35 -0
- package/src/icons/ContactMailIcon.tsx +35 -0
- package/src/icons/ContactPageIcon.tsx +22 -0
- package/src/icons/ContactPhoneFilledIcon.tsx +35 -0
- package/src/icons/ContactPhoneIcon.tsx +35 -0
- package/src/icons/ContactsIcon.tsx +22 -0
- package/src/icons/ContentCopyIcon.tsx +35 -0
- package/src/icons/CopyIcon.tsx +35 -0
- package/src/icons/CreditCardFilledIcon.tsx +35 -0
- package/src/icons/CreditCardIcon.tsx +35 -0
- package/src/icons/DarkModeIcon.tsx +35 -0
- package/src/icons/DashboardFilledIcon.tsx +35 -0
- package/src/icons/DashboardIcon.tsx +35 -0
- package/src/icons/DatabaseFilledIcon.tsx +35 -0
- package/src/icons/DeleteIcon.tsx +35 -0
- package/src/icons/DescriptionIcon.tsx +35 -0
- package/src/icons/DesktopMacIcon.tsx +35 -0
- package/src/icons/DevicesIcon.tsx +35 -0
- package/src/icons/DiamondFilledIcon.tsx +35 -0
- package/src/icons/DiamondIcon.tsx +35 -0
- package/src/icons/DigitalProductsIcon.tsx +58 -0
- package/src/icons/DiscountIcon.tsx +24 -0
- package/src/icons/Diversity1Icon.tsx +22 -0
- package/src/icons/Diversity2Icon.tsx +22 -0
- package/src/icons/Diversity3Icon.tsx +22 -0
- package/src/icons/DnsIcon.tsx +35 -0
- package/src/icons/DoNotDisturbOnFilledIcon.tsx +35 -0
- package/src/icons/DoNotDisturbOnIcon.tsx +35 -0
- package/src/icons/DomainAddIcon.tsx +35 -0
- package/src/icons/DomainIcon.tsx +35 -0
- package/src/icons/DomainVerificationIcon.tsx +35 -0
- package/src/icons/DownloadIcon.tsx +35 -0
- package/src/icons/DraftsIcon.tsx +35 -0
- package/src/icons/DragHandleIcon.tsx +35 -0
- package/src/icons/DragIndicatorIcon.tsx +35 -0
- package/src/icons/EditFilledIcon.tsx +35 -0
- package/src/icons/EditIcon.tsx +35 -0
- package/src/icons/EmojiEventsFilledIcon.tsx +35 -0
- package/src/icons/EmojiEventsIcon.tsx +35 -0
- package/src/icons/EmojiFoodBeverageIcon.tsx +35 -0
- package/src/icons/EmojiIcon.tsx +35 -0
- package/src/icons/EmptyIcon.tsx +22 -0
- package/src/icons/ErrorFilledIcon.tsx +35 -0
- package/src/icons/ErrorIcon.tsx +35 -0
- package/src/icons/EventFilledIcon.tsx +35 -0
- package/src/icons/EventIcon.tsx +35 -0
- package/src/icons/EventTicketIcon.tsx +54 -0
- package/src/icons/ExpandLessIcon.tsx +40 -0
- package/src/icons/ExpandMoreIcon.tsx +35 -0
- package/src/icons/FastActionPricingIcon.tsx +58 -0
- package/src/icons/FeedFilledIcon.tsx +35 -0
- package/src/icons/FeedIcon.tsx +35 -0
- package/src/icons/FilePresentIcon.tsx +35 -0
- package/src/icons/FilterListIcon.tsx +35 -0
- package/src/icons/FitbitArrowDownIcon.tsx +35 -0
- package/src/icons/FitbitArrowUpwardIcon.tsx +35 -0
- package/src/icons/FlagIcon.tsx +35 -0
- package/src/icons/FormatAlignCenterIcon.tsx +35 -0
- package/src/icons/FormatAlignJustifyIcon.tsx +35 -0
- package/src/icons/FormatAlignLeftIcon.tsx +35 -0
- package/src/icons/FormatAlignRightIcon.tsx +35 -0
- package/src/icons/FormatBoldIcon.tsx +35 -0
- package/src/icons/FormatItalicIcon.tsx +35 -0
- package/src/icons/FormatListBulletedIcon.tsx +35 -0
- package/src/icons/FormatListNumberedIcon.tsx +35 -0
- package/src/icons/FormatSizeIcon.tsx +35 -0
- package/src/icons/FormatUnderlineIcon.tsx +35 -0
- package/src/icons/ForumIcon.tsx +35 -0
- package/src/icons/ForwardToInboxIcon.tsx +35 -0
- package/src/icons/GalleryThumbnailIcon.tsx +35 -0
- package/src/icons/GppBadFilledIcon.tsx +35 -0
- package/src/icons/GppBadIcon.tsx +35 -0
- package/src/icons/GppMaybeFilledIcon.tsx +35 -0
- package/src/icons/GppMaybeIcon.tsx +35 -0
- package/src/icons/GridViewIcon.tsx +35 -0
- package/src/icons/GroupFilledIcon.tsx +35 -0
- package/src/icons/GroupIcon.tsx +35 -0
- package/src/icons/HeadphonesIcon.tsx +35 -0
- package/src/icons/HomeFilledIcon.tsx +35 -0
- package/src/icons/HomeIcon.tsx +35 -0
- package/src/icons/HomePinIcon.tsx +35 -0
- package/src/icons/HourGlassEmptyIcon.tsx +35 -0
- package/src/icons/HubIcon.tsx +22 -0
- package/src/icons/InfoFilledIcon.tsx +35 -0
- package/src/icons/InfoGradientFilledIcon.tsx +49 -0
- package/src/icons/InfoIcon.tsx +35 -0
- package/src/icons/InsertChartFilledIcon.tsx +35 -0
- package/src/icons/InsertChartIcon.tsx +35 -0
- package/src/icons/InventoryIcon.tsx +22 -0
- package/src/icons/IosShareIcon.tsx +35 -0
- package/src/icons/KeyboardBackspaceIcon.tsx +35 -0
- package/src/icons/LanguageIcon.tsx +35 -0
- package/src/icons/LibraryMusicIcon.tsx +35 -0
- package/src/icons/LinkIcon.tsx +35 -0
- package/src/icons/LinkOffIcon.tsx +35 -0
- package/src/icons/LocalActivityIcon.tsx +35 -0
- package/src/icons/LocalFloristFilledIcon.tsx +35 -0
- package/src/icons/LocalFloristIcon.tsx +35 -0
- package/src/icons/LocationOnIcon.tsx +35 -0
- package/src/icons/LockIcon.tsx +35 -0
- package/src/icons/LoginIcon.tsx +35 -0
- package/src/icons/LogoutIcon.tsx +43 -0
- package/src/icons/MailIcon.tsx +35 -0
- package/src/icons/MarkUnreadChatIcon.tsx +35 -0
- package/src/icons/MasterClassIcon.tsx +74 -0
- package/src/icons/MediaLinkFilledIcon.tsx +35 -0
- package/src/icons/MediaLinkIcon.tsx +35 -0
- package/src/icons/MenuIcon.tsx +35 -0
- package/src/icons/MenuOpenIcon.tsx +35 -0
- package/src/icons/MilitaryTechFilledIcon.tsx +35 -0
- package/src/icons/MilitaryTechIcon.tsx +35 -0
- package/src/icons/MonitoringIcon.tsx +35 -0
- package/src/icons/MoreHorizontalIcon.tsx +35 -0
- package/src/icons/MoreHorizontalSmallIcon.tsx +35 -0
- package/src/icons/MoreVerticalIcon.tsx +35 -0
- package/src/icons/NotificationsFilledIcon.tsx +40 -0
- package/src/icons/NotificationsIcon.tsx +35 -0
- package/src/icons/OpenInNewIcon.tsx +35 -0
- package/src/icons/OthersIcon.tsx +58 -0
- package/src/icons/PageViewIcon.tsx +35 -0
- package/src/icons/PaidIcon.tsx +35 -0
- package/src/icons/PaletteFilledIcon.tsx +35 -0
- package/src/icons/PaletteIcon.tsx +35 -0
- package/src/icons/PauseIcon.tsx +22 -0
- package/src/icons/PayInTranchesIcon.tsx +29 -0
- package/src/icons/PaymentsFilledIcon.tsx +35 -0
- package/src/icons/PaymentsIcon.tsx +35 -0
- package/src/icons/PendingActionsIcon.tsx +35 -0
- package/src/icons/PermMediaIcon.tsx +35 -0
- package/src/icons/PersonAddIcon.tsx +35 -0
- package/src/icons/PersonIcon.tsx +35 -0
- package/src/icons/PhotoCameraIcon.tsx +35 -0
- package/src/icons/PhotoFilledIcon.tsx +35 -0
- package/src/icons/PhotoIcon.tsx +35 -0
- package/src/icons/PhotoLibraryFilledIcon.tsx +35 -0
- package/src/icons/PhotoLibraryIcon.tsx +35 -0
- package/src/icons/PictureAsPdfFilledIcon.tsx +35 -0
- package/src/icons/PictureAsPdfIcon.tsx +35 -0
- package/src/icons/PlayArrowIcon.tsx +32 -0
- package/src/icons/PlayCircleFilledIcon.tsx +35 -0
- package/src/icons/PlayCircleIcon.tsx +22 -0
- package/src/icons/PowerRoundedIcon.tsx +35 -0
- package/src/icons/PreviewIcon.tsx +35 -0
- package/src/icons/PublicIcon.tsx +22 -0
- package/src/icons/PublishIcon.tsx +35 -0
- package/src/icons/PushPinFilledIcon.tsx +35 -0
- package/src/icons/PushPinIcon.tsx +35 -0
- package/src/icons/QrCode2Icon.tsx +35 -0
- package/src/icons/RadioButtonCheckedIcon.tsx +35 -0
- package/src/icons/RadioButtonUncheckedIcon.tsx +35 -0
- package/src/icons/RecieptLongFilledIcon.tsx +35 -0
- package/src/icons/RecieptLongIcon.tsx +35 -0
- package/src/icons/RecordVoiceOverIcon.tsx +35 -0
- package/src/icons/RedeemIcon.tsx +35 -0
- package/src/icons/RedoIcon.tsx +35 -0
- package/src/icons/RemoveIcon.tsx +32 -0
- package/src/icons/RemoveRoadIcon.tsx +35 -0
- package/src/icons/ReportFilledIcon.tsx +35 -0
- package/src/icons/ReportIcon.tsx +35 -0
- package/src/icons/ReviewsIcon.tsx +43 -0
- package/src/icons/SavingsFilledIcon.tsx +35 -0
- package/src/icons/SavingsIcon.tsx +35 -0
- package/src/icons/ScheduleIcon.tsx +35 -0
- package/src/icons/ScheduleSendIcon.tsx +35 -0
- package/src/icons/SearchNormalIcon.tsx +32 -0
- package/src/icons/SellIcon.tsx +35 -0
- package/src/icons/SendIcon.tsx +35 -0
- package/src/icons/ServicesIcon.tsx +39 -0
- package/src/icons/SettingsFilledIcon.tsx +35 -0
- package/src/icons/SettingsIcon.tsx +35 -0
- package/src/icons/ShareIcon.tsx +35 -0
- package/src/icons/ShareWithContactsIcon.tsx +62 -0
- package/src/icons/ShareWithSocialsIcon.tsx +64 -0
- package/src/icons/ShoppingCartFilledIcon.tsx +35 -0
- package/src/icons/ShoppingCartIcon.tsx +35 -0
- package/src/icons/ShuffleIcon.tsx +35 -0
- package/src/icons/SmartPhoneIcon.tsx +35 -0
- package/src/icons/SocialLeaderboardIcon.tsx +35 -0
- package/src/icons/StarFilledIcon.tsx +35 -0
- package/src/icons/StarHalfIcon.tsx +35 -0
- package/src/icons/StarIcon.tsx +35 -0
- package/src/icons/StoreFrontFilledIcon.tsx +35 -0
- package/src/icons/StoreFrontIcon.tsx +35 -0
- package/src/icons/StrikeThroughSIcon.tsx +35 -0
- package/src/icons/StyleIcon.tsx +35 -0
- package/src/icons/SubscriptionIcon.tsx +46 -0
- package/src/icons/SubscriptionsFilledIcon.tsx +35 -0
- package/src/icons/SubscriptionsIcon.tsx +35 -0
- package/src/icons/SupervisorAccountIcon.tsx +35 -0
- package/src/icons/SwitchAccountFilledIcon.tsx +35 -0
- package/src/icons/SwitchAccountIcon.tsx +35 -0
- package/src/icons/SyncSavedLocallyIcon.tsx +35 -0
- package/src/icons/TabletIcon.tsx +35 -0
- package/src/icons/ThumbDownFilledIcon.tsx +22 -0
- package/src/icons/ThumbDownIcon.tsx +22 -0
- package/src/icons/ThumbUpFilledIcon.tsx +22 -0
- package/src/icons/ThumbUpIcon.tsx +22 -0
- package/src/icons/TocIcon.tsx +35 -0
- package/src/icons/TrainingsIcon.tsx +37 -0
- package/src/icons/TrashDeleteBinIcon.tsx +36 -0
- package/src/icons/TrendingUpIcon.tsx +35 -0
- package/src/icons/UndoIcon.tsx +35 -0
- package/src/icons/UnfoldMoreIcon.tsx +35 -0
- package/src/icons/UploadIcon.tsx +35 -0
- package/src/icons/VerifiedIcon.tsx +24 -0
- package/src/icons/ViewAgendaIcon.tsx +22 -0
- package/src/icons/ViewArrayIcon.tsx +35 -0
- package/src/icons/ViewCarouselIcon.tsx +35 -0
- package/src/icons/ViewCozyIcon.tsx +22 -0
- package/src/icons/ViewModuleIcon.tsx +35 -0
- package/src/icons/VisibilityIcon.tsx +35 -0
- package/src/icons/VisibilityOffIcon.tsx +35 -0
- package/src/icons/VolunteerActivismFilledIcon.tsx +35 -0
- package/src/icons/VolunteerActivismIcon.tsx +35 -0
- package/src/icons/WBSunnyIcon.tsx +35 -0
- package/src/icons/WarningFilledIcon.tsx +35 -0
- package/src/icons/WarningIcon.tsx +35 -0
- package/src/icons/WebinarsIcon.tsx +57 -0
- package/src/icons/WidgetsFilledIcon.tsx +35 -0
- package/src/icons/WidgetsIcon.tsx +35 -0
- package/src/icons/WorkshopsIcon.tsx +50 -0
- package/src/icons/index.ts +305 -0
- package/src/pages/Home.tsx +30 -0
- package/src/pages/Login.tsx +13 -0
- package/src/pages/Page404.tsx +13 -0
- package/src/pages/index.tsx +21 -0
- package/src/routes/index.tsx +7 -0
- package/src/stories/Accordion/Accordion.stories.tsx +100 -0
- package/src/stories/Accordion/AccordionWrapper.tsx +16 -0
- package/src/stories/Avatars/Avatar.stories.ts +57 -0
- package/src/stories/Buttons/Button.stories.tsx +95 -0
- package/src/stories/Buttons/IconButton.stories.ts +68 -0
- package/src/stories/Buttons/IconButtonWrapper.tsx +14 -0
- package/src/stories/Colors.mdx +12 -0
- package/src/stories/Configure.mdx +371 -0
- package/src/stories/InputFields/InputFields.stories.ts +54 -0
- package/src/stories/InputFields/MarkdownEditor.stories.ts +20 -0
- package/src/stories/InputFields/SearchInput.stories.ts +22 -0
- package/src/stories/InputFields/SearchInput.tsx +19 -0
- package/src/stories/InputFields/Select/CountrySelect.stories.tsx +21 -0
- package/src/stories/InputFields/Select/CountrySelectWrapper.tsx +25 -0
- package/src/stories/InputFields/Select/CreatableSelect.stories.tsx +48 -0
- package/src/stories/InputFields/Select/CreatableSelectWrapper.tsx +25 -0
- package/src/stories/InputFields/Select/PhoneNumberInput.stories.tsx +33 -0
- package/src/stories/InputFields/Select/PhoneNumberInputWrapper.tsx +21 -0
- package/src/stories/InputFields/Select/Select.stories.tsx +49 -0
- package/src/stories/InputFields/Select/SelectWrapper.tsx +25 -0
- package/src/stories/InputFields/TextArea.stories.ts +22 -0
- package/src/stories/InputFields/UsernameInput.stories.ts +22 -0
- package/src/stories/Tiles/Tile.stories.tsx +71 -0
- package/src/stories/Tiles/TileWrapper.tsx +17 -0
- package/src/stories/Typography/DisplayText.stories.ts +52 -0
- package/src/stories/Typography/HeadingText.stories.ts +86 -0
- package/src/stories/Typography/ParagraphText.stories.ts +62 -0
- package/src/stories/Typography/SubtitleText.stories.ts +93 -0
- package/src/stories/Uploaders/FileUploadWrapper.tsx +25 -0
- package/src/stories/Uploaders/FileUploader.stories.tsx +17 -0
- package/src/stories/Uploaders/ImageUploadWrapper.tsx +30 -0
- package/src/stories/Uploaders/ImageUploader.stories.tsx +19 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +5 -0
- 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 +15 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +3 -0
- 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 +12 -0
- package/src/stories/assets/youtube.svg +4 -0
- package/src/stories/colors/index.ts +4 -0
- package/src/stories/controls/Chip.stories.ts +42 -0
- package/src/stories/controls/DoubleTab.stories.ts +32 -0
- package/src/stories/controls/DoubleTabWrapper.tsx +15 -0
- package/src/stories/controls/Pagination.stories.ts +21 -0
- package/src/stories/controls/PaginationWrapper.tsx +23 -0
- package/src/stories/controls/RadioButton.stories.ts +49 -0
- package/src/stories/controls/RectangleCheckButton.stories.ts +41 -0
- package/src/stories/controls/RoundCheckButton.stories.ts +41 -0
- package/src/stories/controls/Stepper.stories.ts +37 -0
- package/src/stories/controls/StepperDemoCmp.tsx +37 -0
- package/src/stories/controls/TabMenu.stories.ts +33 -0
- package/src/stories/controls/TabMenuWrapper.tsx +14 -0
- package/src/stories/controls/ToggleButton.stories.ts +41 -0
- package/src/stories/icons/Icons.mdx +26 -0
- package/src/stories/icons/index.ts +613 -0
- package/src/stories/notifications/Banner.stories.ts +88 -0
- package/src/stories/notifications/ClickTooltip.stories.ts +21 -0
- package/src/stories/notifications/ClickTooltipWrapper.tsx +19 -0
- package/src/stories/notifications/HoverTooltip.stories.ts +35 -0
- package/src/stories/notifications/HoverTooltipWrapper.tsx +16 -0
- package/src/stories/notifications/Snackbar.stories.ts +17 -0
- package/src/stories/notifications/SnackbarWrapper.tsx +107 -0
- package/src/utils/countries-flag.json +1752 -0
- package/tsconfig.json +34 -0
- package/vite.config.ts +27 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
ISelectInputProps,
|
|
5
|
+
CreatableSelectInput,
|
|
6
|
+
} from "components/InputFields/SelectInput";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
|
|
9
|
+
const CreatableSelectWrapper = (props: ISelectInputProps) => {
|
|
10
|
+
const [selectValue, setSelectValue] = useState<{
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}>();
|
|
14
|
+
return (
|
|
15
|
+
<CreatableSelectInput
|
|
16
|
+
{...props}
|
|
17
|
+
value={selectValue}
|
|
18
|
+
onChange={(e) => {
|
|
19
|
+
setSelectValue(e);
|
|
20
|
+
}}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default CreatableSelectWrapper;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta } from "@storybook/react";
|
|
4
|
+
import { PhoneNumberInput as PhoneNumberInputType } from "components/InputFields/SelectInput";
|
|
5
|
+
import PhoneNumberInputWrapper from "./PhoneNumberInputWrapper";
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof PhoneNumberInputType> = {
|
|
8
|
+
title: "Components/InputFields/PhoneNumberInput",
|
|
9
|
+
component: PhoneNumberInputWrapper,
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = typeof meta;
|
|
15
|
+
|
|
16
|
+
export const PhoneNumberInput: Story = {
|
|
17
|
+
args: {
|
|
18
|
+
placeholder: "+111 111111 11",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const PhoneNumberInputWithLabel: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
label: "Phone Number",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const PhoneNumberInputWithLabelAndSubtext: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
label: "Phone Number",
|
|
31
|
+
subtext: "Enter your phone number",
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
import {
|
|
3
|
+
IPhoneNumberInputProps,
|
|
4
|
+
PhoneNumberInput,
|
|
5
|
+
} from "components/InputFields/SelectInput";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
|
|
8
|
+
const PhoneNumberInputWrapper = (props: IPhoneNumberInputProps) => {
|
|
9
|
+
const [selectValue, setSelectValue] = useState();
|
|
10
|
+
return (
|
|
11
|
+
<PhoneNumberInput
|
|
12
|
+
value={selectValue}
|
|
13
|
+
onChange={(e: any) => {
|
|
14
|
+
setSelectValue(e);
|
|
15
|
+
}}
|
|
16
|
+
{...props}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default PhoneNumberInputWrapper;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta } from "@storybook/react";
|
|
4
|
+
import { SelectInput } from "components/InputFields/SelectInput";
|
|
5
|
+
import SelectWrapper from "./SelectWrapper";
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof SelectInput> = {
|
|
8
|
+
title: "Components/InputFields/Select",
|
|
9
|
+
component: SelectWrapper,
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = typeof meta;
|
|
15
|
+
|
|
16
|
+
export const Select: Story = {
|
|
17
|
+
args: {
|
|
18
|
+
label: "Title",
|
|
19
|
+
id: "title",
|
|
20
|
+
name: "title",
|
|
21
|
+
placeholder: "Select an option",
|
|
22
|
+
options: [
|
|
23
|
+
{ value: "mr", label: "Mr" },
|
|
24
|
+
{ value: "mrs", label: "Mrs" },
|
|
25
|
+
{ value: "miss", label: "Miss" },
|
|
26
|
+
{ value: "ms", label: "Ms" },
|
|
27
|
+
{ value: "dr", label: "Dr" },
|
|
28
|
+
{ value: "other", label: "Other" },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const MultiSelect: Story = {
|
|
34
|
+
args: {
|
|
35
|
+
label: "Title",
|
|
36
|
+
id: "title",
|
|
37
|
+
name: "title",
|
|
38
|
+
isMulti: true,
|
|
39
|
+
placeholder: "Select an option",
|
|
40
|
+
options: [
|
|
41
|
+
{ value: "mr", label: "Mr" },
|
|
42
|
+
{ value: "mrs", label: "Mrs" },
|
|
43
|
+
{ value: "miss", label: "Miss" },
|
|
44
|
+
{ value: "ms", label: "Ms" },
|
|
45
|
+
{ value: "dr", label: "Dr" },
|
|
46
|
+
{ value: "other", label: "Other" },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
SelectInput,
|
|
5
|
+
ISelectInputProps,
|
|
6
|
+
} from "components/InputFields/SelectInput/";
|
|
7
|
+
import { useState } from "react";
|
|
8
|
+
|
|
9
|
+
const SelectWrapper = (props: ISelectInputProps) => {
|
|
10
|
+
const [selectValue, setSelectValue] = useState<{
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}>();
|
|
14
|
+
return (
|
|
15
|
+
<SelectInput
|
|
16
|
+
{...props}
|
|
17
|
+
value={selectValue}
|
|
18
|
+
onChange={(e) => {
|
|
19
|
+
setSelectValue(e);
|
|
20
|
+
}}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default SelectWrapper;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import TextArea from "components/InputFields/TextArea";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof TextArea> = {
|
|
7
|
+
title: "Components/InputFields/TextArea",
|
|
8
|
+
component: TextArea,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof TextArea>;
|
|
14
|
+
|
|
15
|
+
export const TextAreaField: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
label: "Text Area",
|
|
18
|
+
name: "sample",
|
|
19
|
+
id: "sample",
|
|
20
|
+
textLimit: 20,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import UsernameInput from "components/InputFields/UsernameInput";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof UsernameInput> = {
|
|
7
|
+
title: "Components/InputFields/UsernameInput",
|
|
8
|
+
component: UsernameInput,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof UsernameInput>;
|
|
14
|
+
|
|
15
|
+
export const UsernameField: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
label: "Username",
|
|
18
|
+
name: "sample",
|
|
19
|
+
id: "sample",
|
|
20
|
+
type: "text",
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import TileWrapper from "./TileWrapper";
|
|
5
|
+
import { LocalFloristFilledIcon } from "icons";
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof TileWrapper> = {
|
|
8
|
+
title: "Components/Tiles",
|
|
9
|
+
component: TileWrapper,
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof TileWrapper>;
|
|
15
|
+
|
|
16
|
+
export const TileWithTrailingIconAndSubtext: Story = {
|
|
17
|
+
args: {
|
|
18
|
+
title: "Tile",
|
|
19
|
+
icon: <LocalFloristFilledIcon fontSize={"28px"} />,
|
|
20
|
+
iconPosition: "trailing",
|
|
21
|
+
subText:
|
|
22
|
+
"Lorem ipsum dolor sit amet consectetur. Suscipit ac amet bibendum convallis quis turpis dolor elit ",
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const TileWithTopRadioIconAndSubtext: Story = {
|
|
27
|
+
args: {
|
|
28
|
+
title: "Tile",
|
|
29
|
+
icon: <LocalFloristFilledIcon fontSize={"28px"} />,
|
|
30
|
+
iconPosition: "top",
|
|
31
|
+
hasRadioButton: true,
|
|
32
|
+
subText:
|
|
33
|
+
"Lorem ipsum dolor sit amet consectetur. Suscipit ac amet bibendum convallis quis turpis dolor elit ",
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export const TileWithTopIconAndSubtext: Story = {
|
|
37
|
+
args: {
|
|
38
|
+
title: "Tile",
|
|
39
|
+
icon: <LocalFloristFilledIcon fontSize={"28px"} />,
|
|
40
|
+
iconPosition: "top",
|
|
41
|
+
subText:
|
|
42
|
+
"Lorem ipsum dolor sit amet consectetur. Suscipit ac amet bibendum convallis quis turpis dolor elit ",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export const TileWithTopIcon: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
title: "Tile",
|
|
48
|
+
icon: <LocalFloristFilledIcon fontSize={"28px"} />,
|
|
49
|
+
iconPosition: "top",
|
|
50
|
+
hasRadioButton: true,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
export const TileWithSubtext: Story = {
|
|
54
|
+
args: {
|
|
55
|
+
title: "Tile",
|
|
56
|
+
hasRadioButton: true,
|
|
57
|
+
subText:
|
|
58
|
+
"Lorem ipsum dolor sit amet consectetur. Suscipit ac amet bibendum convallis quis turpis dolor elit ",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export const TileWithLeadingRadioIconAndSubtext: Story = {
|
|
63
|
+
args: {
|
|
64
|
+
title: "Tile",
|
|
65
|
+
icon: <LocalFloristFilledIcon fontSize={"28px"} />,
|
|
66
|
+
iconPosition: "leading",
|
|
67
|
+
hasRadioButton: true,
|
|
68
|
+
subText:
|
|
69
|
+
"Lorem ipsum dolor sit amet consectetur. Suscipit ac amet bibendum convallis quis turpis dolor elit ",
|
|
70
|
+
},
|
|
71
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import Tile, { TileProps } from "components/Tiles";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
|
|
6
|
+
const TileWrapper = (props: TileProps) => {
|
|
7
|
+
const [isSelected, setIsSelected] = useState(false);
|
|
8
|
+
return (
|
|
9
|
+
<Tile
|
|
10
|
+
{...props}
|
|
11
|
+
isSelected={isSelected}
|
|
12
|
+
onClick={() => setIsSelected((prev) => !prev)}
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default TileWrapper;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import Display from "components/Typography/Display";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Display> = {
|
|
7
|
+
title: "Components/Typography",
|
|
8
|
+
component: Display,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof Display>;
|
|
14
|
+
|
|
15
|
+
export const DisplayText3XL: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
size: "3xl",
|
|
18
|
+
children: "A sample text",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const DisplayTextXXL: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
size: "xxl",
|
|
25
|
+
children: "A sample text",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export const DisplayTextXL: Story = {
|
|
29
|
+
args: {
|
|
30
|
+
size: "xl",
|
|
31
|
+
children: "A sample text",
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export const DisplayTextL: Story = {
|
|
35
|
+
args: {
|
|
36
|
+
size: "l",
|
|
37
|
+
children: "A sample text",
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
export const DisplayTextM: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
size: "m",
|
|
43
|
+
children: "A sample text",
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const DisplayTextResponsive: Story = {
|
|
48
|
+
args: {
|
|
49
|
+
size: { xl: "3xl", lg: "xxl", md: "xl", base: "l" },
|
|
50
|
+
children: "A sample text",
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import Heading from "components/Typography/Heading";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Heading> = {
|
|
7
|
+
title: "Components/Typography",
|
|
8
|
+
component: Heading,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof Heading>;
|
|
14
|
+
|
|
15
|
+
export const HeadingText3XL: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
size: "3xl",
|
|
18
|
+
children: "A sample text",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const HeadingTextXXL: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
size: "xxl",
|
|
24
|
+
children: "A sample text",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const HeadingTextXL: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
size: "xl",
|
|
30
|
+
children: "A sample text",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const HeadingTextL: Story = {
|
|
34
|
+
args: {
|
|
35
|
+
size: "l",
|
|
36
|
+
children: "A sample text",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const HeadingTextM: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
size: "m",
|
|
42
|
+
children: "A sample text",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export const HeadingTextS: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
size: "s",
|
|
48
|
+
children: "A sample text",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const HeadingTextXS: Story = {
|
|
52
|
+
args: {
|
|
53
|
+
size: "xs",
|
|
54
|
+
children: "A sample text",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
export const HeadingTextXXS: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
size: "xxs",
|
|
60
|
+
children: "A sample text",
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
export const HeadingText3XS: Story = {
|
|
64
|
+
args: {
|
|
65
|
+
size: "3xs",
|
|
66
|
+
children: "A sample text",
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
export const HeadingText4XS: Story = {
|
|
70
|
+
args: {
|
|
71
|
+
size: "4xs",
|
|
72
|
+
children: "A sample text",
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
export const HeadingText5XS: Story = {
|
|
76
|
+
args: {
|
|
77
|
+
size: "5xs",
|
|
78
|
+
children: "A sample text",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
export const HeadingTextResponsive: Story = {
|
|
82
|
+
args: {
|
|
83
|
+
size: { xl: "3xl", lg: "xxl", md: "l", base: "s" },
|
|
84
|
+
children: "A sample text",
|
|
85
|
+
},
|
|
86
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import Paragraph from "components/Typography/Paragraph";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Paragraph> = {
|
|
7
|
+
title: "Components/Typography",
|
|
8
|
+
component: Paragraph,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof Paragraph>;
|
|
14
|
+
|
|
15
|
+
export const ParagraphTextXL: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
size: "xl",
|
|
18
|
+
children: "A sample text",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const ParagraphTextL: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
size: "l",
|
|
24
|
+
children: "A sample text",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const ParagraphTextM: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
size: "m",
|
|
30
|
+
children: "A sample text",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const ParagraphTextS: Story = {
|
|
34
|
+
args: {
|
|
35
|
+
size: "s",
|
|
36
|
+
children: "A sample text",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const ParagraphTextXS: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
size: "xs",
|
|
42
|
+
children: "A sample text",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export const ParagraphTextXXS: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
size: "xxs",
|
|
48
|
+
children: "A sample text",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const ParagraphText3XS: Story = {
|
|
52
|
+
args: {
|
|
53
|
+
size: "3xs",
|
|
54
|
+
children: "A sample text",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
export const ParagraphTextResponsive: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
size: { xl: "xl", lg: "l", md: "m", base: "s" },
|
|
60
|
+
children: "A sample text",
|
|
61
|
+
},
|
|
62
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import Subtitle from "components/Typography/Subtitle";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof Subtitle> = {
|
|
7
|
+
title: "Components/Typography",
|
|
8
|
+
component: Subtitle,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof Subtitle>;
|
|
14
|
+
|
|
15
|
+
export const SubtitleText3XL: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
size: "3xl",
|
|
18
|
+
children: "A sample text",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const SubtitleTextXXL: Story = {
|
|
22
|
+
args: {
|
|
23
|
+
size: "xxl",
|
|
24
|
+
children: "A sample text",
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const SubtitleTextXL: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
size: "xl",
|
|
30
|
+
children: "A sample text",
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
export const SubtitleTextL: Story = {
|
|
34
|
+
args: {
|
|
35
|
+
size: "l",
|
|
36
|
+
children: "A sample text",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const SubtitleTextM: Story = {
|
|
40
|
+
args: {
|
|
41
|
+
size: "m",
|
|
42
|
+
children: "A sample text",
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
export const SubtitleTextS: Story = {
|
|
46
|
+
args: {
|
|
47
|
+
size: "s",
|
|
48
|
+
children: "A sample text",
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const SubtitleTextXS: Story = {
|
|
52
|
+
args: {
|
|
53
|
+
size: "xs",
|
|
54
|
+
children: "A sample text",
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
export const SubtitleTextXXS: Story = {
|
|
58
|
+
args: {
|
|
59
|
+
size: "xxs",
|
|
60
|
+
children: "A sample text",
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
export const SubtitleText3XS: Story = {
|
|
64
|
+
args: {
|
|
65
|
+
size: "3xs",
|
|
66
|
+
children: "A sample text",
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
export const SubtitleText4XS: Story = {
|
|
70
|
+
args: {
|
|
71
|
+
size: "4xs",
|
|
72
|
+
children: "A sample text",
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
export const SubtitleText5XS: Story = {
|
|
76
|
+
args: {
|
|
77
|
+
size: "5xs",
|
|
78
|
+
children: "A sample text",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
export const SubtitleText6XSText: Story = {
|
|
82
|
+
args: {
|
|
83
|
+
size: "6xs",
|
|
84
|
+
children: "A sample text",
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const SubtitleText7XS: Story = {
|
|
89
|
+
args: {
|
|
90
|
+
size: "7xs",
|
|
91
|
+
children: "A sample text",
|
|
92
|
+
},
|
|
93
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import FileUploader, { IFileUpload } from "components/Uploader/FileUploader";
|
|
4
|
+
import { PictureAsPdfIcon } from "icons";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
|
|
7
|
+
const FileUploadWrapper = (props: IFileUpload) => {
|
|
8
|
+
const [file, setFile] = useState<File>();
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<FileUploader
|
|
12
|
+
{...props}
|
|
13
|
+
onHandleChange={(e) => {
|
|
14
|
+
e.preventDefault();
|
|
15
|
+
if (e.target.files) {
|
|
16
|
+
setFile(e.target.files[0]);
|
|
17
|
+
}
|
|
18
|
+
}}
|
|
19
|
+
file={file}
|
|
20
|
+
fileTypeIcon={<PictureAsPdfIcon />}
|
|
21
|
+
/>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default FileUploadWrapper;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import FileUploadWrapper from "./FileUploadWrapper";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof FileUploadWrapper> = {
|
|
7
|
+
title: "Components/FileUploader",
|
|
8
|
+
component: FileUploadWrapper,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof FileUploadWrapper>;
|
|
14
|
+
|
|
15
|
+
export const FileUpload: Story = {
|
|
16
|
+
args: { accept: "*" },
|
|
17
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import { Box } from "@chakra-ui/react";
|
|
4
|
+
import ImageUploader, { IImageUpload } from "components/Uploader/ImageUploader";
|
|
5
|
+
import { useImageUpload } from "hooks/useImageUpload";
|
|
6
|
+
|
|
7
|
+
const ImageUploadWrapper = (props: IImageUpload) => {
|
|
8
|
+
const {
|
|
9
|
+
imageArray,
|
|
10
|
+
coverImageIndex,
|
|
11
|
+
handleChange,
|
|
12
|
+
handleDelete,
|
|
13
|
+
changeCoverImage,
|
|
14
|
+
} = useImageUpload({ multiple: props.multiple });
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<Box w="70%">
|
|
18
|
+
<ImageUploader
|
|
19
|
+
{...props}
|
|
20
|
+
onHandleChange={handleChange}
|
|
21
|
+
imageArray={imageArray}
|
|
22
|
+
coverImageIndex={coverImageIndex}
|
|
23
|
+
handleDeleteImage={handleDelete}
|
|
24
|
+
handleChangeCoverImage={changeCoverImage}
|
|
25
|
+
/>
|
|
26
|
+
</Box>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default ImageUploadWrapper;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** @format */
|
|
2
|
+
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
4
|
+
import ImageUploadWrapper from "./ImageUploadWrapper";
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ImageUploadWrapper> = {
|
|
7
|
+
title: "Components/ImageUploader",
|
|
8
|
+
component: ImageUploadWrapper,
|
|
9
|
+
tags: ["autodocs"],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof ImageUploadWrapper>;
|
|
14
|
+
|
|
15
|
+
export const ImageUpload: Story = {
|
|
16
|
+
args: {
|
|
17
|
+
multiple: false,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<title>Accessibility</title>
|
|
3
|
+
<circle cx="24.334" cy="24" r="24" fill="#A849FF" fill-opacity="0.3"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M27.8609 11.585C27.8609 9.59506 26.2497 7.99023 24.2519 7.99023C22.254 7.99023 20.6429 9.65925 20.6429 11.585C20.6429 13.575 22.254 15.1799 24.2519 15.1799C26.2497 15.1799 27.8609 13.575 27.8609 11.585ZM21.8922 22.6473C21.8467 23.9096 21.7901 25.4788 21.5897 26.2771C20.9853 29.0462 17.7348 36.3314 17.3325 37.2275C17.1891 37.4923 17.1077 37.7955 17.1077 38.1178C17.1077 39.1519 17.946 39.9902 18.9802 39.9902C19.6587 39.9902 20.253 39.6293 20.5814 39.0889L20.6429 38.9874L24.2841 31.22C24.2841 31.22 27.5529 37.9214 27.9238 38.6591C28.2948 39.3967 28.8709 39.9902 29.7168 39.9902C30.751 39.9902 31.5893 39.1519 31.5893 38.1178C31.5893 37.7951 31.3639 37.2265 31.3639 37.2265C30.9581 36.3258 27.698 29.0452 27.0938 26.2771C26.8975 25.4948 26.847 23.9722 26.8056 22.7236C26.7927 22.333 26.7806 21.9693 26.7653 21.6634C26.7008 21.214 27.0231 20.8289 27.4097 20.7005L35.3366 18.3253C36.3033 18.0685 36.8834 16.9773 36.6256 16.0144C36.3678 15.0515 35.2722 14.4737 34.3055 14.7305C34.3055 14.7305 26.8619 17.1057 24.2841 17.1057C21.7062 17.1057 14.456 14.7947 14.456 14.7947C13.4893 14.5379 12.3937 14.9873 12.0715 15.9502C11.7493 16.9131 12.3293 18.0044 13.3604 18.3253L21.2873 20.7005C21.674 20.8289 21.9318 21.214 21.9318 21.6634C21.9174 21.9493 21.9053 22.2857 21.8922 22.6473Z" fill="#A470D5"/>
|
|
5
|
+
</svg>
|