@moises.ai/design-system 3.4.5 → 3.4.6
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/package.json +3 -2
- package/src/Introduction.mdx +56 -0
- package/src/colors/custom-styles.css +293 -0
- package/src/components/AdditionalItems/AdditionalItems.jsx +43 -0
- package/src/components/AdditionalItems/AdditionalItems.module.css +76 -0
- package/src/components/AdditionalItems/AdditionalItems.stories.jsx +32 -0
- package/src/components/BannerAnnouncement/BannerAnnouncement.jsx +77 -0
- package/src/components/BannerAnnouncement/BannerAnnouncement.module.css +58 -0
- package/src/components/BannerAnnouncement/BannerAnnouncement.stories.jsx +120 -0
- package/src/components/Button/Button.jsx +45 -0
- package/src/components/Button/Button.module.css +288 -0
- package/src/components/Button/Button.stories.jsx +269 -0
- package/src/components/Callout/Callout.jsx +47 -0
- package/src/components/Callout/Callout.module.css +56 -0
- package/src/components/Callout/Callout.stories.jsx +296 -0
- package/src/components/Card/Card.jsx +46 -0
- package/src/components/Card/Card.module.css +89 -0
- package/src/components/Card/Card.stories.jsx +116 -0
- package/src/components/Checkbox/Checkbox.jsx +36 -0
- package/src/components/Checkbox/Checkbox.module.css +136 -0
- package/src/components/Checkbox/Checkbox.stories.jsx +64 -0
- package/src/components/CigarBar/CigarBar.jsx +73 -0
- package/src/components/CigarBar/CigarBar.module.css +57 -0
- package/src/components/CigarBar/CigarBar.stories.jsx +66 -0
- package/src/components/ContextMenu/ContextMenu.jsx +56 -0
- package/src/components/ContextMenu/ContextMenu.stories.jsx +657 -0
- package/src/components/Countdown/Countdown.jsx +97 -0
- package/src/components/Countdown/Countdown.module.css +206 -0
- package/src/components/Countdown/Countdown.stories.jsx +108 -0
- package/src/components/DataTable/DataTable.jsx +300 -0
- package/src/components/DataTable/DataTable.module.css +372 -0
- package/src/components/DataTable/DataTable.stories.jsx +365 -0
- package/src/components/DropdownButton/DropdownButton.jsx +124 -0
- package/src/components/DropdownButton/DropdownButton.module.css +102 -0
- package/src/components/DropdownButton/DropdownButton.stories.jsx +267 -0
- package/src/components/DropdownMenu/DropdownMenu.jsx +102 -0
- package/src/components/DropdownMenu/DropdownMenu.stories.jsx +645 -0
- package/src/components/FloatingBanner/FloatingBanner.jsx +87 -0
- package/src/components/FloatingBanner/FloatingBanner.module.css +92 -0
- package/src/components/FloatingBanner/FloatingBanner.stories.jsx +115 -0
- package/src/components/FooterPanel/FooterPanel.jsx +56 -0
- package/src/components/FooterPanel/FooterPanel.stories.jsx +289 -0
- package/src/components/GenerationSourceCallout/GenerationSourceCallout.jsx +53 -0
- package/src/components/GenerationSourceCallout/GenerationSourceCallout.module.css +98 -0
- package/src/components/GroupButtons/GroupButtons.jsx +97 -0
- package/src/components/GroupButtons/GroupButtons.module.css +8 -0
- package/src/components/GroupButtons/GroupButtons.stories.jsx +301 -0
- package/src/components/HeaderPanel/HeaderPanel.jsx +115 -0
- package/src/components/HeaderPanel/HeaderPanel.stories.jsx +389 -0
- package/src/components/HorizontalVolume/HorizontalVolume.jsx +157 -0
- package/src/components/HorizontalVolume/HorizontalVolume.module.css +123 -0
- package/src/components/HorizontalVolume/HorizontalVolume.stories.jsx +109 -0
- package/src/components/IconButton/IconButton.jsx +47 -0
- package/src/components/IconButton/IconButton.module.css +302 -0
- package/src/components/IconButton/IconButton.stories.jsx +532 -0
- package/src/components/InstrumentSelector/InstrumentSelector.jsx +61 -0
- package/src/components/InstrumentSelector/InstrumentSelector.module.css +80 -0
- package/src/components/InstrumentSelector/InstrumentSelector.stories.jsx +33 -0
- package/src/components/Knob/Knob.jsx +173 -0
- package/src/components/Knob/Knob.module.css +70 -0
- package/src/components/Knob/Knob.stories.jsx +289 -0
- package/src/components/Knob/constants.js +38 -0
- package/src/components/Knob/useKnob.js +117 -0
- package/src/components/Knob/utils.js +117 -0
- package/src/components/ListCards/CardDetails.stories.jsx +484 -0
- package/src/components/ListCards/ListCards.jsx +297 -0
- package/src/components/ListCards/ListCards.module.css +234 -0
- package/src/components/ListCards/ListCards.stories.jsx +386 -0
- package/src/components/LokalisePoc/LokalisePoc.jsx +7 -0
- package/src/components/LokalisePoc/LokalisePoc.stories.jsx +63 -0
- package/src/components/MessageWithAction/MessageWithAction.jsx +54 -0
- package/src/components/MessageWithAction/MessageWithAction.module.css +16 -0
- package/src/components/MessageWithAction/MessageWithAction.stories.jsx +280 -0
- package/src/components/MetronomeForm/MetronomeForm.jsx +74 -0
- package/src/components/MetronomeForm/MetronomeForm.stories.jsx +137 -0
- package/src/components/MultiSelect/MultiSelect.jsx +129 -0
- package/src/components/MultiSelect/MultiSelect.module.css +105 -0
- package/src/components/MultiSelect/MultiSelect.stories.jsx +296 -0
- package/src/components/MultiSelectCards/MultiSelectCards.jsx +96 -0
- package/src/components/MultiSelectCards/MultiSelectCards.module.css +60 -0
- package/src/components/MultiSelectCards/MultiSelectCards.stories.jsx +439 -0
- package/src/components/PanControl/PanControl.jsx +227 -0
- package/src/components/PanControl/PanControl.module.css +71 -0
- package/src/components/PanControl/PanControl.stories.jsx +100 -0
- package/src/components/ProductsBrandPattern/Patterns/aiStudio.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/mastering.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/product.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/stemSeparation.png +0 -0
- package/src/components/ProductsBrandPattern/Patterns/voiceStudio.png +0 -0
- package/src/components/ProductsBrandPattern/ProductsBrandPattern.jsx +36 -0
- package/src/components/ProductsBrandPattern/ProductsBrandPattern.stories.jsx +47 -0
- package/src/components/ProductsList/ProductsList.jsx +54 -0
- package/src/components/ProductsList/ProductsList.module.css +81 -0
- package/src/components/ProductsList/ProductsList.stories.jsx +69 -0
- package/src/components/ProfileMenu/MenuTrigger.jsx +45 -0
- package/src/components/ProfileMenu/ProfileMenu.jsx +66 -0
- package/src/components/ProfileMenu/ProfileMenu.module.css +101 -0
- package/src/components/ProfileMenu/ProfileMenu.stories.jsx +44 -0
- package/src/components/RadioCardsGroup/RadioCardsGroup.jsx +35 -0
- package/src/components/RadioCardsGroup/RadioCardsGroup.module.css +66 -0
- package/src/components/RadioCardsGroup/RadioCardsGroup.stories.jsx +89 -0
- package/src/components/Rating/Rating.jsx +154 -0
- package/src/components/Rating/Rating.module.css +70 -0
- package/src/components/Rating/Rating.stories.jsx +215 -0
- package/src/components/RecordingForm/RecordingForm.jsx +142 -0
- package/src/components/RecordingForm/RecordingForm.module.css +49 -0
- package/src/components/RecordingForm/RecordingForm.stories.jsx +319 -0
- package/src/components/SectionExpander/SectionExpander.jsx +53 -0
- package/src/components/SectionExpander/SectionExpander.module.css +46 -0
- package/src/components/SectionExpander/SectionExpander.stories.jsx +48 -0
- package/src/components/SegmentedControl/SegmentedControl.jsx +48 -0
- package/src/components/SegmentedControl/SegmentedControl.stories.jsx +133 -0
- package/src/components/SegmentedControl/SegmentedControl.styles.css +55 -0
- package/src/components/Select/Select.jsx +132 -0
- package/src/components/Select/Select.module.css +76 -0
- package/src/components/Select/Select.stories.jsx +294 -0
- package/src/components/SetlistList/SetlistList.jsx +338 -0
- package/src/components/SetlistList/SetlistList.module.css +246 -0
- package/src/components/SetlistList/SetlistList.stories.jsx +121 -0
- package/src/components/Shell/Shell.jsx +75 -0
- package/src/components/Shell/Shell.module.css +3 -0
- package/src/components/Shell/Shell.stories.jsx +354 -0
- package/src/components/Sidebar/Sidebar.jsx +173 -0
- package/src/components/Sidebar/Sidebar.module.css +267 -0
- package/src/components/Sidebar/Sidebar.stories.jsx +247 -0
- package/src/components/Sidebar/SidebarSection/SidebarSection.jsx +20 -0
- package/src/components/Sidebar/SidebarSection/SidebarSection.module.css +20 -0
- package/src/components/Slider/Slider.jsx +114 -0
- package/src/components/Slider/Slider.module.css +159 -0
- package/src/components/Slider/Slider.stories.jsx +199 -0
- package/src/components/StemGenerationForm/BesideFooter/BesideFooter.jsx +107 -0
- package/src/components/StemGenerationForm/BesideFooter/BesideFooter.module.css +4 -0
- package/src/components/StemGenerationForm/Concurrency/Concurrency.jsx +54 -0
- package/src/components/StemGenerationForm/Concurrency/Concurrency.module.css +26 -0
- package/src/components/StemGenerationForm/CreateFromPreset/CreateFromPreset.jsx +44 -0
- package/src/components/StemGenerationForm/CreateNew/CreateNew.jsx +107 -0
- package/src/components/StemGenerationForm/CreativeFreedomSection/CreativeFreedomSection.jsx +185 -0
- package/src/components/StemGenerationForm/CreativeFreedomSection/CreativeFreedomSection.module.css +8 -0
- package/src/components/StemGenerationForm/GenerationStatus/GenerationStatus.jsx +91 -0
- package/src/components/StemGenerationForm/StemGenerationForm.jsx +342 -0
- package/src/components/StemGenerationForm/StemGenerationForm.stories.jsx +703 -0
- package/src/components/StemGenerationForm/utils/constants.js +24 -0
- package/src/components/StemGenerationForm/utils/formatFileInfo.js +20 -0
- package/src/components/StemGenerationForm/utils/getInstrumentDescription.js +27 -0
- package/src/components/StemGenerationForm/utils/getLocalizedGenerationInstruments.js +31 -0
- package/src/components/StemGenerationForm/utils/index.js +13 -0
- package/src/components/StemGenerationForm/utils/secondsToTime.js +15 -0
- package/src/components/StemSeparationForm/GenerationStatus/GenerationStatus.jsx +70 -0
- package/src/components/StemSeparationForm/StemSeparationForm.jsx +354 -0
- package/src/components/StemSeparationForm/StemSeparationForm.module.css +0 -0
- package/src/components/StemSeparationForm/StemSeparationForm.stories.jsx +221 -0
- package/src/components/TempoControlsForm/AutoDetect/AutoDetect.jsx +114 -0
- package/src/components/TempoControlsForm/TempoControlsForm.jsx +59 -0
- package/src/components/TempoControlsForm/TempoControlsForm.stories.jsx +228 -0
- package/src/components/TempoControlsForm/TempoForm/TempoForm.jsx +94 -0
- package/src/components/TempoControlsForm/TempoFormInput/TempoFormInput.jsx +136 -0
- package/src/components/TempoControlsForm/TempoFormInput/TempoFormInput.module.css +19 -0
- package/src/components/TempoControlsForm/constants.js +77 -0
- package/src/components/TempoControlsForm/utils/formatDateTime.js +50 -0
- package/src/components/TempoControlsForm/utils/getTempoMarking.js +6 -0
- package/src/components/Text/Text.jsx +19 -0
- package/src/components/Text/Text.module.css +5 -0
- package/src/components/Text/Text.stories.jsx +117 -0
- package/src/components/TextArea/TextArea.jsx +53 -0
- package/src/components/TextArea/TextArea.module.css +35 -0
- package/src/components/TextArea/TextArea.stories.jsx +140 -0
- package/src/components/TextField/TextField.jsx +61 -0
- package/src/components/TextField/TextField.module.css +41 -0
- package/src/components/TextField/TextField.stories.jsx +243 -0
- package/src/components/ThumbnailPicker/ThumbColors/ThumbColors.js +101 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/ThumbGraphics.js +90 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/circles01.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/circles02.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/circles03.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/circles04.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/circles05.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/circles06.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/lines01.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/lines02.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/lines03.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/lines04.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/lines05.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/lines06.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/patterns01.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/patterns02.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/patterns03.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/patterns04.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes01.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes02.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes03.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes04.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes05.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes06.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes07.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes08.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/shapes09.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/synth01.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/synth02.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/synth03.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/synth04.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/synth05.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/waves01.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/waves02.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/waves03.png +0 -0
- package/src/components/ThumbnailPicker/ThumbGraphics/waves04.png +0 -0
- package/src/components/ThumbnailPicker/ThumbnailPicker.jsx +67 -0
- package/src/components/ThumbnailPicker/ThumbnailPicker.module.css +0 -0
- package/src/components/ThumbnailPicker/ThumbnailPicker.stories.jsx +406 -0
- package/src/components/ThumbnailPicker/getStyleFromID.js +31 -0
- package/src/components/TooltipWithInfoIcon/TooltipWithInfoIcon.jsx +18 -0
- package/src/components/TooltipWithInfoIcon/TooltipWithInfoIcon.module.css +6 -0
- package/src/components/TooltipWithInfoIcon/TooltipWithInfoIcon.stories.jsx +28 -0
- package/src/components/TrackControlButton/TrackControlButton.jsx +28 -0
- package/src/components/TrackControlButton/TrackControlButton.module.css +32 -0
- package/src/components/TrackControlButton/TrackControlButton.stories.jsx +47 -0
- package/src/components/TrackControlButton/index.js +1 -0
- package/src/components/TrackHeader/TrackHeader.jsx +143 -0
- package/src/components/TrackHeader/TrackHeader.module.css +194 -0
- package/src/components/TrackHeader/TrackHeader.stories.jsx +212 -0
- package/src/components/TrackHeader/TrackHeaderOptions/TrackHeaderOptions.jsx +18 -0
- package/src/components/TrackHeader/TrackHeaderOptions/TrackHeaderOptions.module.css +8 -0
- package/src/components/TrackHeader/TrackHeaderOptions/index.js +1 -0
- package/src/components/VoiceConversionForm/BesideFooter/BesideFooter.jsx +74 -0
- package/src/components/VoiceConversionForm/ClickableAvatar/ClickableAvatar.jsx +40 -0
- package/src/components/VoiceConversionForm/ClickableAvatar/ClickableAvatar.module.css +21 -0
- package/src/components/VoiceConversionForm/Concurrency/Concurrency.jsx +53 -0
- package/src/components/VoiceConversionForm/Concurrency/Concurrency.module.css +26 -0
- package/src/components/VoiceConversionForm/GenerationStatus/GenerationStatus.jsx +49 -0
- package/src/components/VoiceConversionForm/VoiceConversionForm.jsx +231 -0
- package/src/components/VoiceConversionForm/VoiceConversionForm.module.css +9 -0
- package/src/components/VoiceConversionForm/VoiceConversionForm.stories.jsx +582 -0
- package/src/components/VoiceConversionForm/VoiceDetails/VoiceDetails.jsx +93 -0
- package/src/components/VoiceConversionForm/VoiceDetails/VoiceDetails.module.css +44 -0
- package/src/components/VoiceConversionForm/VoiceList/VoiceList.jsx +84 -0
- package/src/components/VoiceConversionForm/VoiceList/VoiceList.module.css +11 -0
- package/src/components/VoiceConversionForm/Waveform/Waveform.jsx +262 -0
- package/src/components/VoiceConversionForm/Waveform/Waveform.module.css +36 -0
- package/src/components/theme/Theme.jsx +16 -0
- package/src/components/theme/Theme.stories.jsx +59 -0
- package/src/icons/AbbeyRoadIcon.jsx +117 -0
- package/src/icons/AccessibilityIcon.jsx +33 -0
- package/src/icons/AcousticGuitarIcon.jsx +16 -0
- package/src/icons/AddIcon.jsx +18 -0
- package/src/icons/AddLyricsIcon.jsx +25 -0
- package/src/icons/AddRoundIcon.jsx +26 -0
- package/src/icons/AirplayIcon.jsx +26 -0
- package/src/icons/AlertIcon.jsx +28 -0
- package/src/icons/AppIcon.jsx +18 -0
- package/src/icons/ArVrIcon.jsx +21 -0
- package/src/icons/ArrowDownIcon.jsx +26 -0
- package/src/icons/ArrowDownloadIcon.jsx +26 -0
- package/src/icons/ArrowLeftIcon.jsx +26 -0
- package/src/icons/ArrowRightIcon.jsx +26 -0
- package/src/icons/ArrowUpIcon.jsx +26 -0
- package/src/icons/ArrowsHorizontalIcon.jsx +26 -0
- package/src/icons/ArrowsVerticalIcon.jsx +26 -0
- package/src/icons/AtomIcon.jsx +32 -0
- package/src/icons/AttachmentIcon.jsx +26 -0
- package/src/icons/AudioAdjustmentsIcon.jsx +26 -0
- package/src/icons/AudioFileIcon.jsx +26 -0
- package/src/icons/AudioFilesIcon.jsx +26 -0
- package/src/icons/AutoplayIcon.jsx +26 -0
- package/src/icons/BackwardIcon.jsx +18 -0
- package/src/icons/BarsIcon.jsx +27 -0
- package/src/icons/BassIcon.jsx +39 -0
- package/src/icons/BoldIcon.jsx +21 -0
- package/src/icons/BookIcon.jsx +21 -0
- package/src/icons/BookmarkIcon.jsx +24 -0
- package/src/icons/BoxIcon.jsx +20 -0
- package/src/icons/BriefcaseIcon.jsx +26 -0
- package/src/icons/CalendarIcon.jsx +26 -0
- package/src/icons/CameraFlip2Icon.jsx +26 -0
- package/src/icons/CameraFlip3Icon.jsx +26 -0
- package/src/icons/CameraFlipIcon.jsx +26 -0
- package/src/icons/CameraIcon.jsx +33 -0
- package/src/icons/CameraRollIcon.jsx +31 -0
- package/src/icons/CarIcon.jsx +18 -0
- package/src/icons/CartIcon.jsx +28 -0
- package/src/icons/CassetteIcon.jsx +26 -0
- package/src/icons/CastIcon.jsx +20 -0
- package/src/icons/CdIcon.jsx +19 -0
- package/src/icons/CheckboxCicleIcon.jsx +26 -0
- package/src/icons/CheckboxFillIcon.jsx +25 -0
- package/src/icons/CheckboxOffIcon.jsx +25 -0
- package/src/icons/CheckboxOnIcon.jsx +25 -0
- package/src/icons/ChevronDownIcon.jsx +26 -0
- package/src/icons/ChevronLeftIcon.jsx +26 -0
- package/src/icons/ChevronRightIcon.jsx +26 -0
- package/src/icons/ChevronUpIcon.jsx +26 -0
- package/src/icons/ChordGrid2Icon.jsx +26 -0
- package/src/icons/ChordGridIcon.jsx +26 -0
- package/src/icons/ChordSequenceIcon.jsx +26 -0
- package/src/icons/Chords2Icon.jsx +25 -0
- package/src/icons/Chords3Icon.jsx +24 -0
- package/src/icons/ChordsDetection2Icon.jsx +31 -0
- package/src/icons/ChordsDetectionIcon.jsx +31 -0
- package/src/icons/ChordsIcon.jsx +25 -0
- package/src/icons/ClipIcon.jsx +27 -0
- package/src/icons/ClipboardIcon.jsx +23 -0
- package/src/icons/CloseIcon.jsx +27 -0
- package/src/icons/Cloud2Icon.jsx +24 -0
- package/src/icons/Cloud3Icon.jsx +24 -0
- package/src/icons/CloudDownload2Icon.jsx +26 -0
- package/src/icons/CloudDownloadErrorIcon.jsx +26 -0
- package/src/icons/CloudDownloadGradientIcon.jsx +44 -0
- package/src/icons/CloudDownloadIcon.jsx +26 -0
- package/src/icons/CloudIcon.jsx +20 -0
- package/src/icons/CloudUploadIcon.jsx +26 -0
- package/src/icons/CodeIcon.jsx +28 -0
- package/src/icons/CollectionsIcon.jsx +26 -0
- package/src/icons/CompressorIcon.jsx +25 -0
- package/src/icons/ComputerIcon.jsx +26 -0
- package/src/icons/CopilotIcon.jsx +26 -0
- package/src/icons/CountInIcon.jsx +23 -0
- package/src/icons/CountdownIcon.jsx +33 -0
- package/src/icons/CowbellIcon.jsx +25 -0
- package/src/icons/CropIcon.jsx +27 -0
- package/src/icons/CrownIcon.jsx +21 -0
- package/src/icons/CueBackIcon.jsx +25 -0
- package/src/icons/CueIcon.jsx +20 -0
- package/src/icons/CymbalsIcon.jsx +26 -0
- package/src/icons/DatabaseIcon.jsx +26 -0
- package/src/icons/DelayIcon.jsx +20 -0
- package/src/icons/DenoiserIcon.jsx +23 -0
- package/src/icons/DevicesIcon.jsx +26 -0
- package/src/icons/DialogueIcon.jsx +33 -0
- package/src/icons/DojoIcon.jsx +21 -0
- package/src/icons/DotsVertical2Icon.jsx +43 -0
- package/src/icons/DotsVerticalIcon.jsx +47 -0
- package/src/icons/DownloadApp2Icon.jsx +26 -0
- package/src/icons/DownloadAppIcon.jsx +23 -0
- package/src/icons/Drums2Icon.jsx +25 -0
- package/src/icons/DrumsIcon.jsx +18 -0
- package/src/icons/EditIcon.jsx +20 -0
- package/src/icons/EffectsIcon.jsx +25 -0
- package/src/icons/ElectricGuitarIcon.jsx +54 -0
- package/src/icons/EqIcon.jsx +20 -0
- package/src/icons/FeaturesIcon.jsx +24 -0
- package/src/icons/FileIcon.jsx +21 -0
- package/src/icons/FileNewIcon.jsx +26 -0
- package/src/icons/Filter2Icon.jsx +26 -0
- package/src/icons/FilterIcon.jsx +26 -0
- package/src/icons/FireIcon.jsx +21 -0
- package/src/icons/FlagIcon.jsx +21 -0
- package/src/icons/FlashGradientIcon.jsx +39 -0
- package/src/icons/FlashIcon.jsx +21 -0
- package/src/icons/FlatAndSharpIcon.jsx +25 -0
- package/src/icons/FlatIcon.jsx +20 -0
- package/src/icons/FolderIcon.jsx +32 -0
- package/src/icons/FolderPlusIcon.jsx +26 -0
- package/src/icons/ForwardIcon.jsx +18 -0
- package/src/icons/GiftIcon.jsx +21 -0
- package/src/icons/GlobeIcon.jsx +22 -0
- package/src/icons/GoalsIcon.jsx +25 -0
- package/src/icons/GraphIcon.jsx +21 -0
- package/src/icons/GuitarAmpIcon.jsx +41 -0
- package/src/icons/HamburgerMenu2Icon.jsx +26 -0
- package/src/icons/HamburgerMenu3Icon.jsx +26 -0
- package/src/icons/HandbagIcon.jsx +26 -0
- package/src/icons/HeadphonesIcon.jsx +26 -0
- package/src/icons/HeadphonesLeftIcon.jsx +30 -0
- package/src/icons/HeadphonesRightIcon.jsx +30 -0
- package/src/icons/HiFiGradientIcon.jsx +36 -0
- package/src/icons/HiFiIcon.jsx +112 -0
- package/src/icons/HiHatIcon.jsx +21 -0
- package/src/icons/HomeIcon.jsx +18 -0
- package/src/icons/Icons.stories.jsx +154 -0
- package/src/icons/ImageGalleryIcon.jsx +25 -0
- package/src/icons/ImageIcon.jsx +21 -0
- package/src/icons/Info2Icon.jsx +18 -0
- package/src/icons/InfoIcon.jsx +20 -0
- package/src/icons/InternetSignalIcon.jsx +26 -0
- package/src/icons/IpadIcon.jsx +20 -0
- package/src/icons/IsolateDrumsGradientIcon.jsx +41 -0
- package/src/icons/IsolateDrumsIcon.jsx +23 -0
- package/src/icons/KaraokeIcon.jsx +23 -0
- package/src/icons/KaraokeMicIcon.jsx +23 -0
- package/src/icons/KeyDetectionIcon.jsx +25 -0
- package/src/icons/KeyboardIcon.jsx +25 -0
- package/src/icons/KeysIcon.jsx +21 -0
- package/src/icons/KickdrumIcon.jsx +30 -0
- package/src/icons/Knob2Icon.jsx +27 -0
- package/src/icons/Knob3Icon.jsx +27 -0
- package/src/icons/KnobIcon.jsx +28 -0
- package/src/icons/LabIcon.jsx +21 -0
- package/src/icons/LaptopIcon.jsx +25 -0
- package/src/icons/LibraryIcon.jsx +31 -0
- package/src/icons/LinkIcon.jsx +21 -0
- package/src/icons/ListCheckIcon.jsx +26 -0
- package/src/icons/ListIcon.jsx +21 -0
- package/src/icons/LivePerformanceIcon.jsx +23 -0
- package/src/icons/LockIcon.jsx +28 -0
- package/src/icons/LogInIcon.jsx +21 -0
- package/src/icons/LogOutIcon.jsx +26 -0
- package/src/icons/LoopIcon.jsx +29 -0
- package/src/icons/LoopSection2Icon.jsx +26 -0
- package/src/icons/LoopSection3Icon.jsx +26 -0
- package/src/icons/LoopSectionIcon.jsx +26 -0
- package/src/icons/LyricsIcon.jsx +33 -0
- package/src/icons/MaracasIcon.jsx +24 -0
- package/src/icons/MasteringIcon.jsx +37 -0
- package/src/icons/Maximize2Icon.jsx +26 -0
- package/src/icons/MaximizeIcon.jsx +26 -0
- package/src/icons/MetronomeIcon.jsx +23 -0
- package/src/icons/Minimize2Icon.jsx +26 -0
- package/src/icons/MinimizeIcon.jsx +26 -0
- package/src/icons/Mixer2Icon.jsx +25 -0
- package/src/icons/MixerIcon.jsx +20 -0
- package/src/icons/MoisesIcon.jsx +47 -0
- package/src/icons/MoisesLogoIcon.jsx +43 -0
- package/src/icons/MoneyIcon.jsx +20 -0
- package/src/icons/MonoIcon.jsx +18 -0
- package/src/icons/MoonIcon.jsx +21 -0
- package/src/icons/More2Icon.jsx +44 -0
- package/src/icons/MoreIcon.jsx +51 -0
- package/src/icons/MultipleUsersIcon.jsx +26 -0
- package/src/icons/MusicAddIcon.jsx +26 -0
- package/src/icons/MusicControlIcon.jsx +23 -0
- package/src/icons/MusicDevice2Icon.jsx +23 -0
- package/src/icons/MusicDeviceIcon.jsx +25 -0
- package/src/icons/MusicIcon.jsx +26 -0
- package/src/icons/MusicListIcon.jsx +26 -0
- package/src/icons/MusicLoverIcon.jsx +23 -0
- package/src/icons/MusicNoteIcon.jsx +21 -0
- package/src/icons/MusicNotesIcon.jsx +26 -0
- package/src/icons/MusicRemoveIcon.jsx +26 -0
- package/src/icons/NewCollectionsIcon.jsx +25 -0
- package/src/icons/NextIcon.jsx +20 -0
- package/src/icons/NoAcousticGuitarIcon.jsx +23 -0
- package/src/icons/NoBassIcon.jsx +23 -0
- package/src/icons/NoChords2Icon.jsx +25 -0
- package/src/icons/NoChordsDetectionIcon.jsx +31 -0
- package/src/icons/NoCloud3Icon.jsx +23 -0
- package/src/icons/NoComputerIcon.jsx +26 -0
- package/src/icons/NoCymbalsIcon.jsx +26 -0
- package/src/icons/NoDialogueIcon.jsx +26 -0
- package/src/icons/NoDrums2Icon.jsx +23 -0
- package/src/icons/NoDrumsIcon.jsx +23 -0
- package/src/icons/NoElectricGuitarIcon.jsx +23 -0
- package/src/icons/NoFileIcon.jsx +26 -0
- package/src/icons/NoHeadphonesIcon.jsx +26 -0
- package/src/icons/NoHiHatIcon.jsx +26 -0
- package/src/icons/NoInternetSignalIcon.jsx +33 -0
- package/src/icons/NoKeysIcon.jsx +38 -0
- package/src/icons/NoKickdrumIcon.jsx +23 -0
- package/src/icons/NoLoopSection2Icon.jsx +23 -0
- package/src/icons/NoLoopSectionIcon.jsx +26 -0
- package/src/icons/NoLyricsIcon.jsx +25 -0
- package/src/icons/NoMaracasIcon.jsx +23 -0
- package/src/icons/NoMetronomeIcon.jsx +23 -0
- package/src/icons/NoMoneyIcon.jsx +26 -0
- package/src/icons/NoMusicIcon.jsx +32 -0
- package/src/icons/NoMusicNoteIcon.jsx +25 -0
- package/src/icons/NoPianoIcon.jsx +33 -0
- package/src/icons/NoSearchIcon.jsx +26 -0
- package/src/icons/NoSectionsIcon.jsx +25 -0
- package/src/icons/NoSnareIcon.jsx +26 -0
- package/src/icons/NoSoundEffectsIcon.jsx +23 -0
- package/src/icons/NoSoundIcon.jsx +23 -0
- package/src/icons/NoSoundtrackIcon.jsx +30 -0
- package/src/icons/NoSpliterIcon.jsx +23 -0
- package/src/icons/NoStringsIcon.jsx +23 -0
- package/src/icons/NoTomsIcon.jsx +23 -0
- package/src/icons/NoUkuleleIcon.jsx +26 -0
- package/src/icons/NoVideoIcon.jsx +26 -0
- package/src/icons/NoVocalsIcon.jsx +23 -0
- package/src/icons/NoVolume2Icon.jsx +26 -0
- package/src/icons/NoVolumeIcon.jsx +26 -0
- package/src/icons/NoWoodwindBrassIcon.jsx +23 -0
- package/src/icons/NotificationsIcon.jsx +26 -0
- package/src/icons/OffloadDeviceIcon.jsx +23 -0
- package/src/icons/PauseFilledIcon.jsx +27 -0
- package/src/icons/PauseIcon.jsx +22 -0
- package/src/icons/PianoIcon.jsx +25 -0
- package/src/icons/PinIcon.jsx +20 -0
- package/src/icons/Pip2Icon.jsx +18 -0
- package/src/icons/PipIcon.jsx +21 -0
- package/src/icons/PitchCorrectionIcon.jsx +25 -0
- package/src/icons/PitchIcon.jsx +21 -0
- package/src/icons/PlayAllIcon.jsx +25 -0
- package/src/icons/PlayBackSpeedIcon.jsx +37 -0
- package/src/icons/PlayCircleIcon.jsx +44 -0
- package/src/icons/PlayIcon.jsx +20 -0
- package/src/icons/PlayOnRepeatIcon.jsx +26 -0
- package/src/icons/PlusIcon.jsx +21 -0
- package/src/icons/PreferencesIcon.jsx +25 -0
- package/src/icons/PreviousIcon.jsx +25 -0
- package/src/icons/PriceTagIcon.jsx +26 -0
- package/src/icons/ProducerIcon.jsx +69 -0
- package/src/icons/PuzzlePiece2Icon.jsx +26 -0
- package/src/icons/PuzzlePieceIcon.jsx +26 -0
- package/src/icons/QuantizationIcon.jsx +25 -0
- package/src/icons/RadioIcon.jsx +36 -0
- package/src/icons/RadioOffIcon.jsx +26 -0
- package/src/icons/RecordIcon.jsx +15 -0
- package/src/icons/RecordingIcon.jsx +22 -0
- package/src/icons/RedoIcon.jsx +26 -0
- package/src/icons/RefreshBackIcon.jsx +32 -0
- package/src/icons/RefreshIcon.jsx +26 -0
- package/src/icons/RemoveFromDeviceIcon.jsx +23 -0
- package/src/icons/RemoveIcon.jsx +25 -0
- package/src/icons/ReorderIcon.jsx +26 -0
- package/src/icons/RepostIcon.jsx +26 -0
- package/src/icons/ReverbIcon.jsx +25 -0
- package/src/icons/RocketIcon.jsx +30 -0
- package/src/icons/SaveTimeIcon.jsx +26 -0
- package/src/icons/SearchIcon.jsx +32 -0
- package/src/icons/SectionsIcon.jsx +25 -0
- package/src/icons/Setlist2Icon.jsx +26 -0
- package/src/icons/SetlistIcon.jsx +26 -0
- package/src/icons/SettingsIcon.jsx +27 -0
- package/src/icons/SharpIcon.jsx +20 -0
- package/src/icons/ShiftIcon.jsx +20 -0
- package/src/icons/ShuffleIcon.jsx +26 -0
- package/src/icons/SidebarIslandIcon.jsx +26 -0
- package/src/icons/SidebarLeftIcon.jsx +25 -0
- package/src/icons/SidebarRightIcon.jsx +26 -0
- package/src/icons/SlidersIcon.jsx +26 -0
- package/src/icons/SnareIcon.jsx +18 -0
- package/src/icons/SongBarIcon.jsx +26 -0
- package/src/icons/SongDetailIcon.jsx +26 -0
- package/src/icons/Songkey2Icon.jsx +25 -0
- package/src/icons/SongwritingIcon.jsx +26 -0
- package/src/icons/SoundEffectsGradientIcon.jsx +39 -0
- package/src/icons/SoundEffectsIcon.jsx +26 -0
- package/src/icons/SoundbarIcon.jsx +26 -0
- package/src/icons/SoundtrackGradientIcon.jsx +44 -0
- package/src/icons/SoundtrackIcon.jsx +26 -0
- package/src/icons/SparkBarsIcon.jsx +25 -0
- package/src/icons/SparkleIcon.jsx +35 -0
- package/src/icons/SparklesGradientIcon.jsx +62 -0
- package/src/icons/SpatialAudioIcon.jsx +55 -0
- package/src/icons/SpeakerIcon.jsx +23 -0
- package/src/icons/SpeakerLoudIcon.jsx +34 -0
- package/src/icons/SpeedChangerIcon.jsx +30 -0
- package/src/icons/SpeedIcon.jsx +18 -0
- package/src/icons/SplitIcon.jsx +21 -0
- package/src/icons/SpliterGradientIcon.jsx +44 -0
- package/src/icons/SpliterIcon.jsx +26 -0
- package/src/icons/StarFilledIcon.jsx +23 -0
- package/src/icons/StarIcon.jsx +20 -0
- package/src/icons/Stop2Icon.jsx +15 -0
- package/src/icons/StringsIcon.jsx +36 -0
- package/src/icons/TargetIcon.jsx +33 -0
- package/src/icons/ThumbDownIcon.jsx +26 -0
- package/src/icons/ThumbUpIcon.jsx +26 -0
- package/src/icons/ThumbsIcon.jsx +26 -0
- package/src/icons/TomsIcon.jsx +21 -0
- package/src/icons/TransposeIcon.jsx +26 -0
- package/src/icons/TrashIcon.jsx +21 -0
- package/src/icons/TrimIcon.jsx +27 -0
- package/src/icons/Tuner2Icon.jsx +23 -0
- package/src/icons/TunerIcon.jsx +18 -0
- package/src/icons/TvIcon.jsx +20 -0
- package/src/icons/UkuleleIcon.jsx +49 -0
- package/src/icons/UndoIcon.jsx +26 -0
- package/src/icons/UploadIcon.jsx +29 -0
- package/src/icons/UserGroup3Icon.jsx +26 -0
- package/src/icons/UserGroupIcon.jsx +26 -0
- package/src/icons/UserIcon.jsx +27 -0
- package/src/icons/Video2Icon.jsx +31 -0
- package/src/icons/Video3Icon.jsx +24 -0
- package/src/icons/VideoFileIcon.jsx +30 -0
- package/src/icons/VideoFilesIcon.jsx +30 -0
- package/src/icons/VideoIcon.jsx +21 -0
- package/src/icons/VocalIcon.jsx +18 -0
- package/src/icons/VocalIsolationIcon.jsx +29 -0
- package/src/icons/VocalsBackgroundIcon.jsx +32 -0
- package/src/icons/VocalsIcon.jsx +26 -0
- package/src/icons/Volume0Icon.jsx +26 -0
- package/src/icons/Volume1Icon.jsx +26 -0
- package/src/icons/Volume2Icon.jsx +26 -0
- package/src/icons/VolumeBarIcon.jsx +25 -0
- package/src/icons/WaveIcon.jsx +21 -0
- package/src/icons/WaveformIcon.jsx +25 -0
- package/src/icons/WidgetIcon.jsx +35 -0
- package/src/icons/WindIcon.jsx +18 -0
- package/src/icons/WoodwindBrassIcon.jsx +23 -0
- package/src/icons/ZoomCloseIcon.jsx +38 -0
- package/src/icons/ZoomInIcon.jsx +32 -0
- package/src/icons.jsx +343 -0
- package/src/index.jsx +151 -0
- package/src/lib/menu/Menu.module.css +356 -0
- package/src/lib/menu/index.js +2 -0
- package/src/lib/menu/renderItem.jsx +190 -0
- package/src/primitives.jsx +71 -0
- package/src/styles.css +10 -0
- package/src/utils/avatarUtils.js +18 -0
- package/src/utils/constants.js +16 -0
- package/src/utils/use-isomorphic-layout-effect.js +6 -0
- package/src/utils/useEventListener.js +34 -0
- package/src/utils/useIsMobileViewport.js +32 -0
- package/src/utils/useMobileDrawer.js +41 -0
- package/src/utils/useSubmitWithFeedback.js +32 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useCallback } from 'react'
|
|
2
|
+
import classNames from 'classnames'
|
|
3
|
+
import { Button } from '../Button/Button'
|
|
4
|
+
import { IconButton } from '../IconButton/IconButton'
|
|
5
|
+
import { CloseIcon } from '../../icons'
|
|
6
|
+
import styles from './FloatingBanner.module.css'
|
|
7
|
+
|
|
8
|
+
export const FloatingBanner = ({
|
|
9
|
+
id,
|
|
10
|
+
type = 'white',
|
|
11
|
+
title,
|
|
12
|
+
icon,
|
|
13
|
+
closable = false,
|
|
14
|
+
buttonText,
|
|
15
|
+
description,
|
|
16
|
+
column = false,
|
|
17
|
+
onConfirm,
|
|
18
|
+
onDismiss,
|
|
19
|
+
className,
|
|
20
|
+
}) => {
|
|
21
|
+
const handleDismiss = useCallback(() => {
|
|
22
|
+
onDismiss?.(id)
|
|
23
|
+
}, [id, onDismiss])
|
|
24
|
+
|
|
25
|
+
const handleConfirm = useCallback(() => {
|
|
26
|
+
onConfirm?.(id)
|
|
27
|
+
}, [id, onConfirm])
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<div
|
|
31
|
+
className={classNames(styles.floatingBanner, className, {
|
|
32
|
+
[styles.white]: type === 'white',
|
|
33
|
+
[styles.error]: type === 'error',
|
|
34
|
+
[styles.warning]: type === 'warning',
|
|
35
|
+
[styles.success]: type === 'success',
|
|
36
|
+
})}
|
|
37
|
+
>
|
|
38
|
+
{icon && <div className={styles.iconWrapper}>{icon}</div>}
|
|
39
|
+
|
|
40
|
+
<div
|
|
41
|
+
className={classNames(styles.container, {
|
|
42
|
+
[styles.column]: column,
|
|
43
|
+
})}
|
|
44
|
+
>
|
|
45
|
+
<div className={styles.content}>
|
|
46
|
+
{title && (
|
|
47
|
+
<p
|
|
48
|
+
className={classNames(styles.title, {
|
|
49
|
+
[styles.strong]: !!description,
|
|
50
|
+
})}
|
|
51
|
+
>
|
|
52
|
+
{title}
|
|
53
|
+
</p>
|
|
54
|
+
)}
|
|
55
|
+
|
|
56
|
+
{description && <p className={styles.description}>{description}</p>}
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
{onConfirm && buttonText && (
|
|
60
|
+
<Button
|
|
61
|
+
size="1"
|
|
62
|
+
variant="outline"
|
|
63
|
+
color="gray"
|
|
64
|
+
onClick={handleConfirm}
|
|
65
|
+
className={styles.action}
|
|
66
|
+
>
|
|
67
|
+
{buttonText}
|
|
68
|
+
</Button>
|
|
69
|
+
)}
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
{closable && (
|
|
73
|
+
<IconButton
|
|
74
|
+
variant="ghost"
|
|
75
|
+
color="gray"
|
|
76
|
+
onClick={handleDismiss}
|
|
77
|
+
className={styles.close}
|
|
78
|
+
aria-label="Close"
|
|
79
|
+
>
|
|
80
|
+
<CloseIcon width={16} height={16} />
|
|
81
|
+
</IconButton>
|
|
82
|
+
)}
|
|
83
|
+
</div>
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
FloatingBanner.displayName = 'FloatingBanner'
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.floatingBanner {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 10px;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 420px;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.white {
|
|
13
|
+
background: #ffffff;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.error {
|
|
17
|
+
background: #ff613d;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.warning {
|
|
21
|
+
background: #ffd200;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.success {
|
|
25
|
+
background: #48dc6b;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.iconWrapper {
|
|
29
|
+
margin-right: 8px;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
color: #1C2024;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.container {
|
|
36
|
+
flex: 1;
|
|
37
|
+
gap: 6px;
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: flex-start;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.container.column {
|
|
45
|
+
align-items: center;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.content {
|
|
50
|
+
gap: 4px;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.title {
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
line-height: 14px;
|
|
58
|
+
color: #1C2024;
|
|
59
|
+
margin: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.title.strong {
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.description {
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 18px;
|
|
69
|
+
color: #1C2024;
|
|
70
|
+
margin: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.action {
|
|
74
|
+
width: fit-content;
|
|
75
|
+
padding: 3px 8px !important;
|
|
76
|
+
color: #1C2024 !important;
|
|
77
|
+
border-color: #1C2024 !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.action:hover {
|
|
81
|
+
background-color: rgba(0, 0, 0, 0.1) !important;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.close {
|
|
85
|
+
margin-left: 8px;
|
|
86
|
+
color: #1C2024 !important;
|
|
87
|
+
opacity: 1 !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.close:hover {
|
|
91
|
+
background-color: rgba(0, 0, 0, 0.1) !important;
|
|
92
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { FloatingBanner } from './FloatingBanner'
|
|
2
|
+
import { AlertIcon, InfoIcon } from '../../icons'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/FloatingBanner',
|
|
6
|
+
component: FloatingBanner,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
type: {
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['white', 'error', 'warning', 'success'],
|
|
12
|
+
},
|
|
13
|
+
title: { control: 'text' },
|
|
14
|
+
description: { control: 'text' },
|
|
15
|
+
buttonText: { control: 'text' },
|
|
16
|
+
closable: { control: 'boolean' },
|
|
17
|
+
column: { control: 'boolean' },
|
|
18
|
+
onConfirm: { action: 'confirm' },
|
|
19
|
+
onDismiss: { action: 'dismiss' },
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const Default = {
|
|
24
|
+
args: {
|
|
25
|
+
id: '0',
|
|
26
|
+
type: 'white',
|
|
27
|
+
title: 'Information',
|
|
28
|
+
description: 'This is a default notification message.',
|
|
29
|
+
closable: true,
|
|
30
|
+
},
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const Success = {
|
|
34
|
+
args: {
|
|
35
|
+
id: '1',
|
|
36
|
+
type: 'success',
|
|
37
|
+
title: 'Success!',
|
|
38
|
+
description: 'Your changes have been saved successfully.',
|
|
39
|
+
closable: true,
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const Warning = {
|
|
44
|
+
args: {
|
|
45
|
+
id: '2',
|
|
46
|
+
type: 'warning',
|
|
47
|
+
title: 'Warning',
|
|
48
|
+
description: 'Please review your changes before continuing.',
|
|
49
|
+
closable: true,
|
|
50
|
+
},
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const Error = {
|
|
54
|
+
args: {
|
|
55
|
+
id: '3',
|
|
56
|
+
type: 'error',
|
|
57
|
+
title: 'Error',
|
|
58
|
+
description: 'Something went wrong. Please try again.',
|
|
59
|
+
closable: true,
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export const WithIcon = {
|
|
64
|
+
args: {
|
|
65
|
+
id: '4',
|
|
66
|
+
type: 'warning',
|
|
67
|
+
title: 'Attention required',
|
|
68
|
+
description: 'Your session is about to expire.',
|
|
69
|
+
icon: <AlertIcon width={20} height={20} />,
|
|
70
|
+
closable: true,
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const WithButton = {
|
|
75
|
+
args: {
|
|
76
|
+
id: '5',
|
|
77
|
+
type: 'success',
|
|
78
|
+
title: 'New feature available',
|
|
79
|
+
description: 'Check out the new AI Studio features.',
|
|
80
|
+
buttonText: 'Learn more',
|
|
81
|
+
closable: true,
|
|
82
|
+
},
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const ColumnLayout = {
|
|
86
|
+
args: {
|
|
87
|
+
id: '6',
|
|
88
|
+
type: 'success',
|
|
89
|
+
title: 'Your file is ready',
|
|
90
|
+
buttonText: 'Download',
|
|
91
|
+
column: true,
|
|
92
|
+
closable: true,
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export const TitleOnly = {
|
|
97
|
+
args: {
|
|
98
|
+
id: '7',
|
|
99
|
+
type: 'success',
|
|
100
|
+
title: 'File uploaded successfully!',
|
|
101
|
+
closable: true,
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export const WithIconAndButton = {
|
|
106
|
+
args: {
|
|
107
|
+
id: '8',
|
|
108
|
+
type: 'error',
|
|
109
|
+
title: 'Connection lost',
|
|
110
|
+
description: 'Please check your internet connection.',
|
|
111
|
+
icon: <InfoIcon width={20} height={20} />,
|
|
112
|
+
buttonText: 'Retry',
|
|
113
|
+
closable: true,
|
|
114
|
+
},
|
|
115
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Flex, Text, Spinner } from '@radix-ui/themes'
|
|
2
|
+
import { Button } from '../Button/Button'
|
|
3
|
+
|
|
4
|
+
export const FooterPanel = ({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
title,
|
|
8
|
+
Icon,
|
|
9
|
+
variant = 'solid',
|
|
10
|
+
size = '2',
|
|
11
|
+
color = 'gray',
|
|
12
|
+
disabled = false,
|
|
13
|
+
onClick,
|
|
14
|
+
loading,
|
|
15
|
+
besideFooter,
|
|
16
|
+
...props
|
|
17
|
+
}) => {
|
|
18
|
+
return (
|
|
19
|
+
<Flex
|
|
20
|
+
gap="4"
|
|
21
|
+
align="center"
|
|
22
|
+
direction="column"
|
|
23
|
+
width="100%"
|
|
24
|
+
style={{
|
|
25
|
+
padding: '16px 0',
|
|
26
|
+
borderTop: '1px solid var(--neutral-3)',
|
|
27
|
+
}}
|
|
28
|
+
className={className}
|
|
29
|
+
{...props}
|
|
30
|
+
>
|
|
31
|
+
{children && <Flex width="100%">{children}</Flex>}
|
|
32
|
+
<Flex width="100%" justify="between" gap="3" align="center">
|
|
33
|
+
{besideFooter}
|
|
34
|
+
<Button
|
|
35
|
+
variant="solid"
|
|
36
|
+
size={size}
|
|
37
|
+
color={color}
|
|
38
|
+
disabled={disabled || loading}
|
|
39
|
+
onClick={onClick}
|
|
40
|
+
style={{ flex: 1 }}
|
|
41
|
+
>
|
|
42
|
+
{loading ? (
|
|
43
|
+
<Spinner loading>{Icon && <Icon width={16} height={16} />}</Spinner>
|
|
44
|
+
) : (
|
|
45
|
+
Icon && <Icon width={16} height={16} />
|
|
46
|
+
)}
|
|
47
|
+
<Text size="2" weight="medium">
|
|
48
|
+
{title}
|
|
49
|
+
</Text>
|
|
50
|
+
</Button>
|
|
51
|
+
</Flex>
|
|
52
|
+
</Flex>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
FooterPanel.displayName = 'FooterPanel'
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { FooterPanel } from './FooterPanel'
|
|
3
|
+
import { Text, Flex } from '@radix-ui/themes'
|
|
4
|
+
import { InfoCircledIcon, MixerHorizontalIcon } from '@radix-ui/react-icons'
|
|
5
|
+
import { SparkleIcon } from '../../icons/SparkleIcon'
|
|
6
|
+
import { IconButton } from '../IconButton/IconButton'
|
|
7
|
+
import { PreferencesIcon } from '../../icons/PreferencesIcon'
|
|
8
|
+
import { MessageWithAction } from '../MessageWithAction/MessageWithAction'
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/FooterPanel',
|
|
12
|
+
component: FooterPanel,
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: 'centered',
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
component:
|
|
18
|
+
'A footer panel component used to display information and actions at the bottom of panels or cards.\n\n' +
|
|
19
|
+
'## Usage\n\n' +
|
|
20
|
+
'```jsx\n' +
|
|
21
|
+
"import { FooterPanel } from '@moises.ai/design-system'\n" +
|
|
22
|
+
"import { SparkleIcon } from '@moises.ai/design-system/icons'\n\n" +
|
|
23
|
+
'const MyComponent = () => {\n' +
|
|
24
|
+
' return (\n' +
|
|
25
|
+
' <FooterPanel\n' +
|
|
26
|
+
' title="AI Enhancement"\n' +
|
|
27
|
+
' Icon={SparkleIcon}\n' +
|
|
28
|
+
' >\n' +
|
|
29
|
+
' <Text>Additional footer content goes here</Text>\n' +
|
|
30
|
+
' </FooterPanel>\n' +
|
|
31
|
+
' )\n' +
|
|
32
|
+
'}\n' +
|
|
33
|
+
'```',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
tags: ['autodocs'],
|
|
38
|
+
argTypes: {
|
|
39
|
+
title: {
|
|
40
|
+
description: 'The text to display on the footer button',
|
|
41
|
+
control: 'text',
|
|
42
|
+
table: {
|
|
43
|
+
type: { summary: 'string' },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
Icon: {
|
|
47
|
+
description: 'Icon component to display on the footer button',
|
|
48
|
+
table: {
|
|
49
|
+
type: { summary: 'React.ComponentType' },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
color: {
|
|
53
|
+
description: 'Color of the footer button',
|
|
54
|
+
control: 'select',
|
|
55
|
+
options: ['gray', 'cyan'],
|
|
56
|
+
table: {
|
|
57
|
+
type: { summary: 'string' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
disabled: {
|
|
61
|
+
description: 'Disables user interaction with the footer button',
|
|
62
|
+
control: 'boolean',
|
|
63
|
+
table: {
|
|
64
|
+
type: { summary: 'boolean' },
|
|
65
|
+
defaultValue: { summary: false },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
loading: {
|
|
69
|
+
description: 'Shows a loading state on the footer button',
|
|
70
|
+
control: 'boolean',
|
|
71
|
+
table: {
|
|
72
|
+
type: { summary: 'boolean' },
|
|
73
|
+
defaultValue: { summary: false },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
size: {
|
|
77
|
+
description: 'Size of the footer button',
|
|
78
|
+
control: 'select',
|
|
79
|
+
options: ['1', '2', '3', '4'],
|
|
80
|
+
table: {
|
|
81
|
+
type: { summary: 'string' },
|
|
82
|
+
defaultValue: { summary: '2' },
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
className: {
|
|
86
|
+
description: 'Additional CSS class to apply to the component',
|
|
87
|
+
table: {
|
|
88
|
+
type: { summary: 'string' },
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
children: {
|
|
92
|
+
description:
|
|
93
|
+
'Content to render inside the footer panel, above the button',
|
|
94
|
+
control: 'text',
|
|
95
|
+
table: {
|
|
96
|
+
type: { summary: 'React.ReactNode' },
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
besideFooter: {
|
|
100
|
+
description: 'Content to render beside the footer button',
|
|
101
|
+
control: 'text',
|
|
102
|
+
table: {
|
|
103
|
+
type: { summary: 'React.ReactNode' },
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
decorators: [
|
|
108
|
+
(Story) => (
|
|
109
|
+
<div style={{ width: '400px' }}>
|
|
110
|
+
<Story />
|
|
111
|
+
</div>
|
|
112
|
+
),
|
|
113
|
+
],
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export const Default = {
|
|
117
|
+
args: {
|
|
118
|
+
title: 'Use AI',
|
|
119
|
+
},
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const WithIcon = {
|
|
123
|
+
render: () => (
|
|
124
|
+
<Flex direction="column" gap="4">
|
|
125
|
+
<Flex>
|
|
126
|
+
<Text size="2" weight="bold" mb="2">
|
|
127
|
+
Gray
|
|
128
|
+
</Text>
|
|
129
|
+
</Flex>
|
|
130
|
+
<FooterPanel title="Create" Icon={SparkleIcon} color="gray" />
|
|
131
|
+
<Flex mt="4">
|
|
132
|
+
<Text size="2" weight="bold" mb="2">
|
|
133
|
+
Cyan
|
|
134
|
+
</Text>
|
|
135
|
+
</Flex>
|
|
136
|
+
<FooterPanel title="Create" Icon={SparkleIcon} color="cyan" />
|
|
137
|
+
</Flex>
|
|
138
|
+
),
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const WithChildren = {
|
|
142
|
+
render: () => (
|
|
143
|
+
<Flex direction="column" gap="4">
|
|
144
|
+
<Flex>
|
|
145
|
+
<Text size="2" weight="bold" mb="2">
|
|
146
|
+
Gray
|
|
147
|
+
</Text>
|
|
148
|
+
</Flex>
|
|
149
|
+
<FooterPanel
|
|
150
|
+
title="Information"
|
|
151
|
+
Icon={InfoCircledIcon}
|
|
152
|
+
color="gray"
|
|
153
|
+
children={<Text>Item 1</Text>}
|
|
154
|
+
/>
|
|
155
|
+
<Flex>
|
|
156
|
+
<Text size="2" weight="bold" mb="2">
|
|
157
|
+
Cyan
|
|
158
|
+
</Text>
|
|
159
|
+
</Flex>
|
|
160
|
+
<FooterPanel
|
|
161
|
+
title="Information"
|
|
162
|
+
Icon={InfoCircledIcon}
|
|
163
|
+
color="cyan"
|
|
164
|
+
children={<Text>Item 1</Text>}
|
|
165
|
+
/>
|
|
166
|
+
</Flex>
|
|
167
|
+
),
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const Disabled = {
|
|
171
|
+
args: {
|
|
172
|
+
title: 'Disabled Button',
|
|
173
|
+
Icon: MixerHorizontalIcon,
|
|
174
|
+
children: <Text>Footer with disabled button</Text>,
|
|
175
|
+
disabled: true,
|
|
176
|
+
},
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export const Loading = {
|
|
180
|
+
args: {
|
|
181
|
+
title: 'Processing...',
|
|
182
|
+
Icon: SparkleIcon,
|
|
183
|
+
children: <Text>Footer with loading button</Text>,
|
|
184
|
+
loading: true,
|
|
185
|
+
},
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export const LoadingWithProgress = {
|
|
189
|
+
render: () => {
|
|
190
|
+
const [progress, setProgress] = React.useState(0)
|
|
191
|
+
|
|
192
|
+
React.useEffect(() => {
|
|
193
|
+
const interval = setInterval(() => {
|
|
194
|
+
setProgress((prev) => {
|
|
195
|
+
if (prev >= 100) {
|
|
196
|
+
clearInterval(interval)
|
|
197
|
+
return 100
|
|
198
|
+
}
|
|
199
|
+
return prev + 10
|
|
200
|
+
})
|
|
201
|
+
}, 500)
|
|
202
|
+
|
|
203
|
+
return () => clearInterval(interval)
|
|
204
|
+
}, [])
|
|
205
|
+
|
|
206
|
+
return (
|
|
207
|
+
<FooterPanel
|
|
208
|
+
title={`Exporting... ${progress}%`}
|
|
209
|
+
Icon={SparkleIcon}
|
|
210
|
+
children={<Text>Processing your request</Text>}
|
|
211
|
+
loading={true}
|
|
212
|
+
/>
|
|
213
|
+
)
|
|
214
|
+
},
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export const ColorVariants = {
|
|
218
|
+
render: () => (
|
|
219
|
+
<Flex direction="column" gap="4">
|
|
220
|
+
<Flex>
|
|
221
|
+
<Text size="2" weight="bold" mb="2">
|
|
222
|
+
Normal (Gray)
|
|
223
|
+
</Text>
|
|
224
|
+
</Flex>
|
|
225
|
+
<FooterPanel title="Gray Button" Icon={SparkleIcon} color="gray" />
|
|
226
|
+
<Flex>
|
|
227
|
+
<Text size="2" weight="bold" mb="2">
|
|
228
|
+
Disabled (Gray)
|
|
229
|
+
</Text>
|
|
230
|
+
</Flex>
|
|
231
|
+
<FooterPanel
|
|
232
|
+
title="Gray Disabled"
|
|
233
|
+
Icon={SparkleIcon}
|
|
234
|
+
color="gray"
|
|
235
|
+
disabled
|
|
236
|
+
/>
|
|
237
|
+
<Flex>
|
|
238
|
+
<Text size="2" weight="bold" mb="2">
|
|
239
|
+
Normal (Cyan)
|
|
240
|
+
</Text>
|
|
241
|
+
</Flex>
|
|
242
|
+
<FooterPanel title="Cyan Button" Icon={SparkleIcon} color="cyan" />
|
|
243
|
+
<Flex>
|
|
244
|
+
<Text size="2" weight="bold" mb="2">
|
|
245
|
+
Disabled (Cyan)
|
|
246
|
+
</Text>
|
|
247
|
+
</Flex>
|
|
248
|
+
<FooterPanel
|
|
249
|
+
title="Cyan Disabled"
|
|
250
|
+
Icon={SparkleIcon}
|
|
251
|
+
color="cyan"
|
|
252
|
+
disabled
|
|
253
|
+
/>
|
|
254
|
+
</Flex>
|
|
255
|
+
),
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export const WithBesideFooter = {
|
|
259
|
+
args: {
|
|
260
|
+
title: 'With Beside Footer',
|
|
261
|
+
Icon: SparkleIcon,
|
|
262
|
+
besideFooter: (
|
|
263
|
+
<IconButton variant="soft" size="2" color="gray">
|
|
264
|
+
<PreferencesIcon />
|
|
265
|
+
</IconButton>
|
|
266
|
+
),
|
|
267
|
+
},
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export const WithBesideFooterAndChildren = {
|
|
271
|
+
args: {
|
|
272
|
+
title: 'With Beside Footer and Children',
|
|
273
|
+
Icon: SparkleIcon,
|
|
274
|
+
besideFooter: (
|
|
275
|
+
<IconButton variant="soft" size="2" color="gray">
|
|
276
|
+
<PreferencesIcon />
|
|
277
|
+
</IconButton>
|
|
278
|
+
),
|
|
279
|
+
children: (
|
|
280
|
+
<MessageWithAction.Info
|
|
281
|
+
ctaLabel="Add"
|
|
282
|
+
onClick={() => {}}
|
|
283
|
+
tooltip="Additional information about this item"
|
|
284
|
+
>
|
|
285
|
+
<Text size="1">This is a text with icon, tooltip, and CTA button</Text>
|
|
286
|
+
</MessageWithAction.Info>
|
|
287
|
+
),
|
|
288
|
+
},
|
|
289
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Flex, Text } from '@radix-ui/themes'
|
|
2
|
+
import { TooltipWithInfoIcon } from '../TooltipWithInfoIcon/TooltipWithInfoIcon'
|
|
3
|
+
import { MessageWithAction } from '../MessageWithAction/MessageWithAction'
|
|
4
|
+
import styles from './GenerationSourceCallout.module.css'
|
|
5
|
+
import classNames from 'classnames'
|
|
6
|
+
|
|
7
|
+
export function GenerationSourceCallout({
|
|
8
|
+
trackName,
|
|
9
|
+
onClick = null,
|
|
10
|
+
ctaLabel = null,
|
|
11
|
+
interval = null,
|
|
12
|
+
tooltopContent,
|
|
13
|
+
i18n = { _: (text) => text },
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<MessageWithAction
|
|
17
|
+
type="info"
|
|
18
|
+
onClick={onClick}
|
|
19
|
+
ctaLabel={ctaLabel}
|
|
20
|
+
showIcon={false}
|
|
21
|
+
showBackground={false}
|
|
22
|
+
className={styles.customMessageWithAction}
|
|
23
|
+
>
|
|
24
|
+
<Flex gap="1" align="center" className={styles.calloutContainer}>
|
|
25
|
+
<Text size="2" className={styles.neutral10}>
|
|
26
|
+
{i18n._('Using')}
|
|
27
|
+
</Text>
|
|
28
|
+
<Flex align="center" gap="1">
|
|
29
|
+
<Text
|
|
30
|
+
size="2"
|
|
31
|
+
truncate
|
|
32
|
+
className={classNames(styles.neutral12, styles.truncate, {
|
|
33
|
+
[styles.trucateWithInterval]: interval,
|
|
34
|
+
})}
|
|
35
|
+
>
|
|
36
|
+
{trackName}
|
|
37
|
+
</Text>
|
|
38
|
+
{interval && (
|
|
39
|
+
<Text size="2" wrap="nowrap" className={styles.neutral12}>
|
|
40
|
+
{interval}
|
|
41
|
+
</Text>
|
|
42
|
+
)}
|
|
43
|
+
</Flex>
|
|
44
|
+
<Flex align="center" gap="1">
|
|
45
|
+
<Text size="2" className={styles.neutral10}>
|
|
46
|
+
{i18n._('to generate')}
|
|
47
|
+
</Text>
|
|
48
|
+
<TooltipWithInfoIcon content={tooltopContent} />
|
|
49
|
+
</Flex>
|
|
50
|
+
</Flex>
|
|
51
|
+
</MessageWithAction>
|
|
52
|
+
)
|
|
53
|
+
}
|