@dust-tt/sparkle 0.2.183 → 0.2.184
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/components/AssistantPreview.tsx +231 -0
- package/src/components/Avatar.tsx +317 -0
- package/src/components/Banner.tsx +65 -0
- package/src/components/BarHeader.tsx +152 -0
- package/src/components/Button.tsx +283 -0
- package/src/components/CardButton.tsx +90 -0
- package/src/components/Checkbox.tsx +90 -0
- package/src/components/Chip.tsx +97 -0
- package/src/components/Citation.tsx +168 -0
- package/src/components/CollapseButton.tsx +90 -0
- package/src/components/Collapsible.tsx +165 -0
- package/src/components/ColorPicker.tsx +39 -0
- package/src/components/ConfettiBackground.tsx +103 -0
- package/src/components/ContentMessage.tsx +80 -0
- package/src/components/ContextItem.tsx +166 -0
- package/src/components/DataTable.tsx +108 -0
- package/src/components/Dialog.tsx +110 -0
- package/src/components/DropdownMenu.tsx +476 -0
- package/src/components/ElementDialog.tsx +38 -0
- package/src/components/ElementModal.tsx +32 -0
- package/src/components/EmojiPicker.tsx +32 -0
- package/src/components/FilterChips.tsx +46 -0
- package/src/components/Hover3D.tsx +159 -0
- package/src/components/Hoverable.tsx +28 -0
- package/src/components/Icon.tsx +30 -0
- package/src/components/IconButton.tsx +126 -0
- package/src/components/IconToggleButton.tsx +114 -0
- package/src/components/Input.tsx +81 -0
- package/src/components/Item.tsx +327 -0
- package/src/components/Markdown.tsx +167 -0
- package/src/components/Modal.tsx +184 -0
- package/src/components/Notification.tsx +76 -0
- package/src/components/Page.tsx +272 -0
- package/src/components/PaginatedCitationsGrid.tsx +79 -0
- package/src/components/Pagination.tsx +212 -0
- package/src/components/Popup.tsx +74 -0
- package/src/components/PriceTable.tsx +229 -0
- package/src/components/RadioButton.tsx +83 -0
- package/src/components/Searchbar.tsx +105 -0
- package/src/components/SliderToggle.tsx +79 -0
- package/src/components/Spinner.tsx +152 -0
- package/src/components/Tab.tsx +241 -0
- package/src/components/TextArea.tsx +63 -0
- package/src/components/Tooltip.tsx +86 -0
- package/src/components/Tree.tsx +147 -0
- package/src/components/ZoomableImageCitationWrapper.tsx +54 -0
- package/src/components/index.ts +46 -0
- package/src/context.tsx +80 -0
- package/src/icons/deprecated_src/mini/arrow-up-on-square.svg +3 -0
- package/src/icons/deprecated_src/mini/beaker-plus.svg +3 -0
- package/src/icons/deprecated_src/mini/beaker.svg +3 -0
- package/src/icons/deprecated_src/mini/chat-bubble-bottom-center-plus.svg +3 -0
- package/src/icons/deprecated_src/mini/chat-bubble-bottom-center-text.svg +3 -0
- package/src/icons/deprecated_src/mini/chat-bubble-left-right.svg +4 -0
- package/src/icons/deprecated_src/mini/check-circle.svg +3 -0
- package/src/icons/deprecated_src/mini/chevron-down.svg +3 -0
- package/src/icons/deprecated_src/mini/chevron-left.svg +3 -0
- package/src/icons/deprecated_src/mini/chevron-right.svg +3 -0
- package/src/icons/deprecated_src/mini/chevron-up.svg +3 -0
- package/src/icons/deprecated_src/mini/clipboard.svg +3 -0
- package/src/icons/deprecated_src/mini/cloud-arrow-down.svg +3 -0
- package/src/icons/deprecated_src/mini/cog-6-tooth.svg +3 -0
- package/src/icons/deprecated_src/mini/command-line.svg +3 -0
- package/src/icons/deprecated_src/mini/document-plus.svg +3 -0
- package/src/icons/deprecated_src/mini/document-text.svg +3 -0
- package/src/icons/deprecated_src/mini/exclamation-circle.svg +3 -0
- package/src/icons/deprecated_src/mini/folder-open.svg +4 -0
- package/src/icons/deprecated_src/mini/hand-thumb-down.svg +4 -0
- package/src/icons/deprecated_src/mini/hand-thumb-up.svg +4 -0
- package/src/icons/deprecated_src/mini/information-circle.svg +3 -0
- package/src/icons/deprecated_src/mini/key.svg +3 -0
- package/src/icons/deprecated_src/mini/magnifying-glass.svg +3 -0
- package/src/icons/deprecated_src/mini/paper-airplane.svg +3 -0
- package/src/icons/deprecated_src/mini/pencil-square.svg +4 -0
- package/src/icons/deprecated_src/mini/plus.svg +3 -0
- package/src/icons/deprecated_src/mini/question-mark-circle.svg +3 -0
- package/src/icons/deprecated_src/mini/server.svg +4 -0
- package/src/icons/deprecated_src/mini/square-3-stack-3d.svg +5 -0
- package/src/icons/deprecated_src/mini/trash.svg +3 -0
- package/src/icons/deprecated_src/mini/user-group.svg +8 -0
- package/src/icons/deprecated_src/mini/x-circle.svg +3 -0
- package/src/icons/deprecated_src/mini/x-mark.svg +3 -0
- package/src/icons/deprecated_src/solid/arrow-up-on-square.svg +4 -0
- package/src/icons/deprecated_src/solid/beaker-plus.svg +3 -0
- package/src/icons/deprecated_src/solid/beaker.svg +3 -0
- package/src/icons/deprecated_src/solid/chat-bubble-bottom-center-plus.svg +3 -0
- package/src/icons/deprecated_src/solid/chat-bubble-bottom-center-text.svg +3 -0
- package/src/icons/deprecated_src/solid/chat-bubble-left-right.svg +4 -0
- package/src/icons/deprecated_src/solid/check-circle.svg +3 -0
- package/src/icons/deprecated_src/solid/chevron-down.svg +3 -0
- package/src/icons/deprecated_src/solid/chevron-left.svg +3 -0
- package/src/icons/deprecated_src/solid/chevron-right.svg +3 -0
- package/src/icons/deprecated_src/solid/chevron-up.svg +3 -0
- package/src/icons/deprecated_src/solid/clipboard.svg +3 -0
- package/src/icons/deprecated_src/solid/cloud-arrow-down.svg +3 -0
- package/src/icons/deprecated_src/solid/cog-6-tooth.svg +3 -0
- package/src/icons/deprecated_src/solid/command-line.svg +3 -0
- package/src/icons/deprecated_src/solid/document-plus.svg +4 -0
- package/src/icons/deprecated_src/solid/document-text.svg +4 -0
- package/src/icons/deprecated_src/solid/exclamation-circle.svg +3 -0
- package/src/icons/deprecated_src/solid/folder-open.svg +4 -0
- package/src/icons/deprecated_src/solid/hand-thumb-down.svg +4 -0
- package/src/icons/deprecated_src/solid/hand-thumb-up.svg +4 -0
- package/src/icons/deprecated_src/solid/information-circle.svg +3 -0
- package/src/icons/deprecated_src/solid/key.svg +3 -0
- package/src/icons/deprecated_src/solid/magnifying-glass.svg +3 -0
- package/src/icons/deprecated_src/solid/paper-airplane.svg +3 -0
- package/src/icons/deprecated_src/solid/pencil-square.svg +5 -0
- package/src/icons/deprecated_src/solid/plus.svg +3 -0
- package/src/icons/deprecated_src/solid/question-mark-circle.svg +3 -0
- package/src/icons/deprecated_src/solid/server.svg +4 -0
- package/src/icons/deprecated_src/solid/square-3-stack-3d.svg +5 -0
- package/src/icons/deprecated_src/solid/x-circle.svg +3 -0
- package/src/icons/deprecated_src/solid/x-mark.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/arrow-up-on-square.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/beaker-plus.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/beaker.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/chat-bubble-bottom-center-plus.svg +4 -0
- package/src/icons/deprecated_src/solid_stroke/chat-bubble-bottom-center-text.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/chat-bubble-left-right.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/check-circle.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/chevron-down.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/chevron-left.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/chevron-right.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/chevron-up.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/clipboard.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/cloud-arrow-down.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/cog-6-tooth.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/command-line.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/document-plus.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/document-text.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/exclamation-circle.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/folder-open.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/hand-thumb-down.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/hand-thumb-up.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/information-circle.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/key.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/magnifying-glass.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/paper-airplane.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/pencil-square.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/plus.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/question-mark-circle.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/server.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/square-3-stack-3d.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/trash.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/user-group.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/x-circle.svg +3 -0
- package/src/icons/deprecated_src/solid_stroke/x-mark.svg +3 -0
- package/src/icons/index.ts +2 -0
- package/src/icons/solid/ArrowDown.tsx +18 -0
- package/src/icons/solid/ArrowDownCircle.tsx +18 -0
- package/src/icons/solid/ArrowDownOnSquare.tsx +22 -0
- package/src/icons/solid/ArrowLeft.tsx +18 -0
- package/src/icons/solid/ArrowPath.tsx +18 -0
- package/src/icons/solid/ArrowRight.tsx +18 -0
- package/src/icons/solid/ArrowUp.tsx +18 -0
- package/src/icons/solid/ArrowUpOnSquare.tsx +22 -0
- package/src/icons/solid/Attachment.tsx +18 -0
- package/src/icons/solid/Backspace.tsx +20 -0
- package/src/icons/solid/BookOpen.tsx +18 -0
- package/src/icons/solid/Bookmark.tsx +18 -0
- package/src/icons/solid/Braces.tsx +18 -0
- package/src/icons/solid/Card.tsx +18 -0
- package/src/icons/solid/ChatBubbleBottomCenterPlus.tsx +20 -0
- package/src/icons/solid/ChatBubbleBottomCenterText.tsx +18 -0
- package/src/icons/solid/ChatBubbleLeftRight.tsx +20 -0
- package/src/icons/solid/Check.tsx +18 -0
- package/src/icons/solid/CheckCircle.tsx +18 -0
- package/src/icons/solid/ChevronDown.tsx +18 -0
- package/src/icons/solid/ChevronLeft.tsx +18 -0
- package/src/icons/solid/ChevronRight.tsx +18 -0
- package/src/icons/solid/ChevronUp.tsx +18 -0
- package/src/icons/solid/ChevronUpDown.tsx +18 -0
- package/src/icons/solid/Circle.tsx +15 -0
- package/src/icons/solid/Clipboard.tsx +18 -0
- package/src/icons/solid/ClipboardCheck.tsx +22 -0
- package/src/icons/solid/Clock.tsx +18 -0
- package/src/icons/solid/CloudArrowDown.tsx +20 -0
- package/src/icons/solid/CloudArrowLeftRight.tsx +20 -0
- package/src/icons/solid/CloudArrowUp.tsx +20 -0
- package/src/icons/solid/CloudX.tsx +20 -0
- package/src/icons/solid/Cog6Tooth.tsx +18 -0
- package/src/icons/solid/Command.tsx +18 -0
- package/src/icons/solid/CommandLine.tsx +18 -0
- package/src/icons/solid/Cube.tsx +18 -0
- package/src/icons/solid/Dash.tsx +15 -0
- package/src/icons/solid/Document.tsx +21 -0
- package/src/icons/solid/DocumentDuplicate.tsx +21 -0
- package/src/icons/solid/DocumentPile.tsx +21 -0
- package/src/icons/solid/DocumentPlus.tsx +21 -0
- package/src/icons/solid/DocumentText.tsx +21 -0
- package/src/icons/solid/Dust.tsx +20 -0
- package/src/icons/solid/EmotionLaugh.tsx +18 -0
- package/src/icons/solid/Equalizer.tsx +20 -0
- package/src/icons/solid/ExclamationCircle.tsx +18 -0
- package/src/icons/solid/ExternalLink.tsx +19 -0
- package/src/icons/solid/Eye.tsx +18 -0
- package/src/icons/solid/EyeSlash.tsx +18 -0
- package/src/icons/solid/Flag.tsx +18 -0
- package/src/icons/solid/Folder.tsx +18 -0
- package/src/icons/solid/FolderOpen.tsx +20 -0
- package/src/icons/solid/Fullscreen.tsx +18 -0
- package/src/icons/solid/FullscreenExit.tsx +24 -0
- package/src/icons/solid/GlobeAlt.tsx +18 -0
- package/src/icons/solid/Grab.tsx +18 -0
- package/src/icons/solid/HandHeart.tsx +18 -0
- package/src/icons/solid/HandThumbDown.tsx +18 -0
- package/src/icons/solid/HandThumbUp.tsx +18 -0
- package/src/icons/solid/HeartAlt.tsx +18 -0
- package/src/icons/solid/Hexagon.tsx +15 -0
- package/src/icons/solid/Image.tsx +21 -0
- package/src/icons/solid/InformationCircle.tsx +18 -0
- package/src/icons/solid/Key.tsx +18 -0
- package/src/icons/solid/Lightbulb.tsx +18 -0
- package/src/icons/solid/Link.tsx +20 -0
- package/src/icons/solid/List.tsx +20 -0
- package/src/icons/solid/ListAdd.tsx +24 -0
- package/src/icons/solid/ListCheck.tsx +24 -0
- package/src/icons/solid/ListRemove.tsx +24 -0
- package/src/icons/solid/Lock.tsx +20 -0
- package/src/icons/solid/Login.tsx +18 -0
- package/src/icons/solid/Logout.tsx +18 -0
- package/src/icons/solid/Magic.tsx +18 -0
- package/src/icons/solid/MagnifyingGlass.tsx +18 -0
- package/src/icons/solid/Menu.tsx +18 -0
- package/src/icons/solid/More.tsx +18 -0
- package/src/icons/solid/MovingMail.tsx +16 -0
- package/src/icons/solid/Paint.tsx +24 -0
- package/src/icons/solid/PaperAirplane.tsx +18 -0
- package/src/icons/solid/Pause.tsx +15 -0
- package/src/icons/solid/PencilSquare.tsx +19 -0
- package/src/icons/solid/Planet.tsx +18 -0
- package/src/icons/solid/Play.tsx +15 -0
- package/src/icons/solid/Plus.tsx +18 -0
- package/src/icons/solid/PlusCircle.tsx +18 -0
- package/src/icons/solid/Pushpin.tsx +18 -0
- package/src/icons/solid/Puzzle.tsx +18 -0
- package/src/icons/solid/QuestionMarkCircle.tsx +18 -0
- package/src/icons/solid/Reaction.tsx +21 -0
- package/src/icons/solid/Rectangle.tsx +15 -0
- package/src/icons/solid/Robot.tsx +25 -0
- package/src/icons/solid/Rocket.tsx +18 -0
- package/src/icons/solid/Scan.tsx +21 -0
- package/src/icons/solid/Server.tsx +18 -0
- package/src/icons/solid/ShakeHands.tsx +18 -0
- package/src/icons/solid/Shapes.tsx +18 -0
- package/src/icons/solid/Sparkles.tsx +18 -0
- package/src/icons/solid/Square.tsx +15 -0
- package/src/icons/solid/Square3Stack3D.tsx +28 -0
- package/src/icons/solid/Star.tsx +18 -0
- package/src/icons/solid/Stop.tsx +15 -0
- package/src/icons/solid/Table.tsx +20 -0
- package/src/icons/solid/Template.tsx +18 -0
- package/src/icons/solid/TestTube.tsx +18 -0
- package/src/icons/solid/Time.tsx +18 -0
- package/src/icons/solid/Trash.tsx +21 -0
- package/src/icons/solid/Triangle.tsx +15 -0
- package/src/icons/solid/User.tsx +18 -0
- package/src/icons/solid/UserArrow.tsx +18 -0
- package/src/icons/solid/UserGroup.tsx +18 -0
- package/src/icons/solid/UserPlus.tsx +18 -0
- package/src/icons/solid/Wrench.tsx +18 -0
- package/src/icons/solid/XCircle.tsx +18 -0
- package/src/icons/solid/XMark.tsx +18 -0
- package/src/icons/solid/index.ts +115 -0
- package/src/icons/src/solid/arrow-down-circle.svg +3 -0
- package/src/icons/src/solid/arrow-down-on-square.svg +4 -0
- package/src/icons/src/solid/arrow-down.svg +3 -0
- package/src/icons/src/solid/arrow-left.svg +3 -0
- package/src/icons/src/solid/arrow-path.svg +4 -0
- package/src/icons/src/solid/arrow-right.svg +3 -0
- package/src/icons/src/solid/arrow-up-on-square.svg +4 -0
- package/src/icons/src/solid/arrow-up.svg +3 -0
- package/src/icons/src/solid/attachment.svg +3 -0
- package/src/icons/src/solid/backspace.svg +3 -0
- package/src/icons/src/solid/book-open.svg +3 -0
- package/src/icons/src/solid/bookmark.svg +3 -0
- package/src/icons/src/solid/braces.svg +4 -0
- package/src/icons/src/solid/card.svg +3 -0
- package/src/icons/src/solid/chat-bubble-bottom-center-plus.svg +3 -0
- package/src/icons/src/solid/chat-bubble-bottom-center-text.svg +3 -0
- package/src/icons/src/solid/chat-bubble-left-right.svg +3 -0
- package/src/icons/src/solid/check-circle.svg +3 -0
- package/src/icons/src/solid/check.svg +3 -0
- package/src/icons/src/solid/chevron-down.svg +3 -0
- package/src/icons/src/solid/chevron-left.svg +3 -0
- package/src/icons/src/solid/chevron-right.svg +3 -0
- package/src/icons/src/solid/chevron-up-down.svg +4 -0
- package/src/icons/src/solid/chevron-up.svg +3 -0
- package/src/icons/src/solid/circle.svg +3 -0
- package/src/icons/src/solid/clipboard-check.svg +4 -0
- package/src/icons/src/solid/clipboard.svg +3 -0
- package/src/icons/src/solid/clock.svg +3 -0
- package/src/icons/src/solid/cloud-arrow-down.svg +3 -0
- package/src/icons/src/solid/cloud-arrow-left-right.svg +3 -0
- package/src/icons/src/solid/cloud-arrow-up.svg +3 -0
- package/src/icons/src/solid/cloud-x.svg +3 -0
- package/src/icons/src/solid/cog-6-tooth.svg +3 -0
- package/src/icons/src/solid/command-line.svg +3 -0
- package/src/icons/src/solid/command.svg +3 -0
- package/src/icons/src/solid/cube.svg +3 -0
- package/src/icons/src/solid/dash.svg +3 -0
- package/src/icons/src/solid/document-duplicate.svg +4 -0
- package/src/icons/src/solid/document-pile.svg +4 -0
- package/src/icons/src/solid/document-plus.svg +4 -0
- package/src/icons/src/solid/document-text.svg +4 -0
- package/src/icons/src/solid/document.svg +4 -0
- package/src/icons/src/solid/dust.svg +3 -0
- package/src/icons/src/solid/emotion-laugh.svg +3 -0
- package/src/icons/src/solid/equalizer.svg +4 -0
- package/src/icons/src/solid/exclamation-circle.svg +3 -0
- package/src/icons/src/solid/external-link.svg +4 -0
- package/src/icons/src/solid/eye-slash.svg +3 -0
- package/src/icons/src/solid/eye.svg +3 -0
- package/src/icons/src/solid/flag.svg +3 -0
- package/src/icons/src/solid/folder-open.svg +3 -0
- package/src/icons/src/solid/folder.svg +3 -0
- package/src/icons/src/solid/fullscreen-exit.svg +4 -0
- package/src/icons/src/solid/fullscreen.svg +4 -0
- package/src/icons/src/solid/globe-alt.svg +3 -0
- package/src/icons/src/solid/grab.svg +8 -0
- package/src/icons/src/solid/hand-heart.svg +3 -0
- package/src/icons/src/solid/hand-thumb-down.svg +3 -0
- package/src/icons/src/solid/hand-thumb-up.svg +3 -0
- package/src/icons/src/solid/heart-alt.svg +3 -0
- package/src/icons/src/solid/hexagon.svg +3 -0
- package/src/icons/src/solid/image.svg +4 -0
- package/src/icons/src/solid/information-circle.svg +3 -0
- package/src/icons/src/solid/key.svg +3 -0
- package/src/icons/src/solid/lightbulb.svg +3 -0
- package/src/icons/src/solid/link.svg +3 -0
- package/src/icons/src/solid/list-add.svg +6 -0
- package/src/icons/src/solid/list-check.svg +6 -0
- package/src/icons/src/solid/list-remove.svg +6 -0
- package/src/icons/src/solid/list.svg +6 -0
- package/src/icons/src/solid/lock.svg +3 -0
- package/src/icons/src/solid/login.svg +3 -0
- package/src/icons/src/solid/logout.svg +3 -0
- package/src/icons/src/solid/magic.svg +4 -0
- package/src/icons/src/solid/magnifying-glass.svg +3 -0
- package/src/icons/src/solid/menu.svg +3 -0
- package/src/icons/src/solid/more.svg +3 -0
- package/src/icons/src/solid/moving-mail.svg +4 -0
- package/src/icons/src/solid/paint.svg +4 -0
- package/src/icons/src/solid/paper-airplane.svg +3 -0
- package/src/icons/src/solid/pause.svg +3 -0
- package/src/icons/src/solid/pencil-square.svg +5 -0
- package/src/icons/src/solid/planet.svg +3 -0
- package/src/icons/src/solid/play.svg +3 -0
- package/src/icons/src/solid/plus-circle.svg +3 -0
- package/src/icons/src/solid/plus.svg +3 -0
- package/src/icons/src/solid/pushpin.svg +3 -0
- package/src/icons/src/solid/puzzle.svg +3 -0
- package/src/icons/src/solid/question-mark-circle.svg +3 -0
- package/src/icons/src/solid/reaction.svg +4 -0
- package/src/icons/src/solid/rectangle.svg +3 -0
- package/src/icons/src/solid/robot.svg +6 -0
- package/src/icons/src/solid/rocket.svg +3 -0
- package/src/icons/src/solid/scan.svg +5 -0
- package/src/icons/src/solid/server.svg +3 -0
- package/src/icons/src/solid/shake-hands.svg +3 -0
- package/src/icons/src/solid/shapes.svg +3 -0
- package/src/icons/src/solid/sparkles.svg +3 -0
- package/src/icons/src/solid/square-3-stack-3d.svg +5 -0
- package/src/icons/src/solid/square.svg +3 -0
- package/src/icons/src/solid/star.svg +3 -0
- package/src/icons/src/solid/stop.svg +3 -0
- package/src/icons/src/solid/table.svg +3 -0
- package/src/icons/src/solid/template.svg +3 -0
- package/src/icons/src/solid/test-tube.svg +3 -0
- package/src/icons/src/solid/time.svg +3 -0
- package/src/icons/src/solid/trash.svg +4 -0
- package/src/icons/src/solid/triangle.svg +3 -0
- package/src/icons/src/solid/user-arrow.svg +5 -0
- package/src/icons/src/solid/user-group.svg +8 -0
- package/src/icons/src/solid/user-plus.svg +5 -0
- package/src/icons/src/solid/user.svg +4 -0
- package/src/icons/src/solid/wrench.svg +3 -0
- package/src/icons/src/solid/x-circle.svg +3 -0
- package/src/icons/src/solid/x-mark.svg +3 -0
- package/src/icons/src/stroke/arrow-down-circle.svg +3 -0
- package/src/icons/src/stroke/arrow-down-on-square.svg +4 -0
- package/src/icons/src/stroke/arrow-down.svg +3 -0
- package/src/icons/src/stroke/arrow-left.svg +3 -0
- package/src/icons/src/stroke/arrow-path.svg +4 -0
- package/src/icons/src/stroke/arrow-right.svg +3 -0
- package/src/icons/src/stroke/arrow-up-on-square.svg +4 -0
- package/src/icons/src/stroke/arrow-up.svg +3 -0
- package/src/icons/src/stroke/attachment.svg +3 -0
- package/src/icons/src/stroke/backspace.svg +4 -0
- package/src/icons/src/stroke/book-open.svg +3 -0
- package/src/icons/src/stroke/bookmark.svg +3 -0
- package/src/icons/src/stroke/braces.svg +3 -0
- package/src/icons/src/stroke/card.svg +3 -0
- package/src/icons/src/stroke/chat-bubble-bottom-center-plus.svg +4 -0
- package/src/icons/src/stroke/chat-bubble-bottom-center-text.svg +3 -0
- package/src/icons/src/stroke/chat-bubble-left-right.svg +3 -0
- package/src/icons/src/stroke/check-circle.svg +3 -0
- package/src/icons/src/stroke/check.svg +3 -0
- package/src/icons/src/stroke/chevron-down.svg +3 -0
- package/src/icons/src/stroke/chevron-left.svg +3 -0
- package/src/icons/src/stroke/chevron-right.svg +3 -0
- package/src/icons/src/stroke/chevron-up-down.svg +4 -0
- package/src/icons/src/stroke/chevron-up.svg +3 -0
- package/src/icons/src/stroke/circle.svg +3 -0
- package/src/icons/src/stroke/clipboard-check.svg +4 -0
- package/src/icons/src/stroke/clipboard.svg +3 -0
- package/src/icons/src/stroke/clock.svg +3 -0
- package/src/icons/src/stroke/cloud-arrow-down.svg +4 -0
- package/src/icons/src/stroke/cloud-arrow-left-right.svg +5 -0
- package/src/icons/src/stroke/cloud-arrow-up.svg +4 -0
- package/src/icons/src/stroke/cloud-x.svg +4 -0
- package/src/icons/src/stroke/cog-6-tooth.svg +3 -0
- package/src/icons/src/stroke/command-line.svg +3 -0
- package/src/icons/src/stroke/command.svg +3 -0
- package/src/icons/src/stroke/cube.svg +3 -0
- package/src/icons/src/stroke/dash.svg +3 -0
- package/src/icons/src/stroke/document-duplicate.svg +3 -0
- package/src/icons/src/stroke/document-pile.svg +3 -0
- package/src/icons/src/stroke/document-plus.svg +4 -0
- package/src/icons/src/stroke/document-text.svg +6 -0
- package/src/icons/src/stroke/document.svg +3 -0
- package/src/icons/src/stroke/dust.svg +5 -0
- package/src/icons/src/stroke/emotion-laugh.svg +3 -0
- package/src/icons/src/stroke/equalizer.svg +4 -0
- package/src/icons/src/stroke/exclamation-circle.svg +3 -0
- package/src/icons/src/stroke/external-link.svg +4 -0
- package/src/icons/src/stroke/eye-slash.svg +3 -0
- package/src/icons/src/stroke/eye.svg +3 -0
- package/src/icons/src/stroke/flag.svg +3 -0
- package/src/icons/src/stroke/folder-open.svg +3 -0
- package/src/icons/src/stroke/folder.svg +3 -0
- package/src/icons/src/stroke/fullscreen-exit.svg +4 -0
- package/src/icons/src/stroke/fullscreen.svg +4 -0
- package/src/icons/src/stroke/globe-alt.svg +3 -0
- package/src/icons/src/stroke/grab.svg +8 -0
- package/src/icons/src/stroke/hand-heart.svg +3 -0
- package/src/icons/src/stroke/hand-thumb-down.svg +3 -0
- package/src/icons/src/stroke/hand-thumb-up.svg +3 -0
- package/src/icons/src/stroke/heart-alt.svg +3 -0
- package/src/icons/src/stroke/hexagon.svg +3 -0
- package/src/icons/src/stroke/image.svg +4 -0
- package/src/icons/src/stroke/information-circle.svg +3 -0
- package/src/icons/src/stroke/key.svg +3 -0
- package/src/icons/src/stroke/lightbulb.svg +3 -0
- package/src/icons/src/stroke/link.svg +3 -0
- package/src/icons/src/stroke/list-add.svg +6 -0
- package/src/icons/src/stroke/list-check.svg +6 -0
- package/src/icons/src/stroke/list-remove.svg +6 -0
- package/src/icons/src/stroke/list.svg +6 -0
- package/src/icons/src/stroke/lock.svg +3 -0
- package/src/icons/src/stroke/login.svg +3 -0
- package/src/icons/src/stroke/logout.svg +4 -0
- package/src/icons/src/stroke/magic.svg +4 -0
- package/src/icons/src/stroke/magnifying-glass.svg +3 -0
- package/src/icons/src/stroke/menu.svg +3 -0
- package/src/icons/src/stroke/more.svg +3 -0
- package/src/icons/src/stroke/moving-mail.svg +3 -0
- package/src/icons/src/stroke/paint.svg +4 -0
- package/src/icons/src/stroke/paper-airplane.svg +3 -0
- package/src/icons/src/stroke/pause.svg +3 -0
- package/src/icons/src/stroke/pencil-square.svg +4 -0
- package/src/icons/src/stroke/planet.svg +3 -0
- package/src/icons/src/stroke/play.svg +3 -0
- package/src/icons/src/stroke/plus-circle.svg +3 -0
- package/src/icons/src/stroke/plus.svg +3 -0
- package/src/icons/src/stroke/pushpin.svg +3 -0
- package/src/icons/src/stroke/puzzle.svg +3 -0
- package/src/icons/src/stroke/question-mark-circle.svg +3 -0
- package/src/icons/src/stroke/reaction.svg +7 -0
- package/src/icons/src/stroke/rectangle.svg +3 -0
- package/src/icons/src/stroke/robot.svg +9 -0
- package/src/icons/src/stroke/rocket.svg +3 -0
- package/src/icons/src/stroke/scan.svg +5 -0
- package/src/icons/src/stroke/server.svg +4 -0
- package/src/icons/src/stroke/shake-hands.svg +3 -0
- package/src/icons/src/stroke/shapes.svg +3 -0
- package/src/icons/src/stroke/sparkles.svg +3 -0
- package/src/icons/src/stroke/square-3-stack-3d.svg +5 -0
- package/src/icons/src/stroke/square.svg +3 -0
- package/src/icons/src/stroke/star.svg +3 -0
- package/src/icons/src/stroke/stop.svg +3 -0
- package/src/icons/src/stroke/table.svg +3 -0
- package/src/icons/src/stroke/template.svg +3 -0
- package/src/icons/src/stroke/test-tube.svg +3 -0
- package/src/icons/src/stroke/time.svg +3 -0
- package/src/icons/src/stroke/trash.svg +3 -0
- package/src/icons/src/stroke/triangle.svg +3 -0
- package/src/icons/src/stroke/user-arrow.svg +5 -0
- package/src/icons/src/stroke/user-group.svg +8 -0
- package/src/icons/src/stroke/user-plus.svg +5 -0
- package/src/icons/src/stroke/user.svg +4 -0
- package/src/icons/src/stroke/wrench.svg +3 -0
- package/src/icons/src/stroke/x-circle.svg +3 -0
- package/src/icons/src/stroke/x-mark.svg +3 -0
- package/src/icons/stroke/ArrowDown.tsx +18 -0
- package/src/icons/stroke/ArrowDownCircle.tsx +18 -0
- package/src/icons/stroke/ArrowDownOnSquare.tsx +22 -0
- package/src/icons/stroke/ArrowLeft.tsx +18 -0
- package/src/icons/stroke/ArrowPath.tsx +18 -0
- package/src/icons/stroke/ArrowRight.tsx +18 -0
- package/src/icons/stroke/ArrowUp.tsx +18 -0
- package/src/icons/stroke/ArrowUpOnSquare.tsx +22 -0
- package/src/icons/stroke/Attachment.tsx +18 -0
- package/src/icons/stroke/Backspace.tsx +24 -0
- package/src/icons/stroke/BookOpen.tsx +18 -0
- package/src/icons/stroke/Bookmark.tsx +18 -0
- package/src/icons/stroke/Braces.tsx +18 -0
- package/src/icons/stroke/Card.tsx +20 -0
- package/src/icons/stroke/ChatBubbleBottomCenterPlus.tsx +21 -0
- package/src/icons/stroke/ChatBubbleBottomCenterText.tsx +18 -0
- package/src/icons/stroke/ChatBubbleLeftRight.tsx +20 -0
- package/src/icons/stroke/Check.tsx +15 -0
- package/src/icons/stroke/CheckCircle.tsx +18 -0
- package/src/icons/stroke/ChevronDown.tsx +15 -0
- package/src/icons/stroke/ChevronLeft.tsx +15 -0
- package/src/icons/stroke/ChevronRight.tsx +15 -0
- package/src/icons/stroke/ChevronUp.tsx +15 -0
- package/src/icons/stroke/ChevronUpDown.tsx +18 -0
- package/src/icons/stroke/Circle.tsx +20 -0
- package/src/icons/stroke/Clipboard.tsx +18 -0
- package/src/icons/stroke/ClipboardCheck.tsx +22 -0
- package/src/icons/stroke/Clock.tsx +18 -0
- package/src/icons/stroke/CloudArrowDown.tsx +21 -0
- package/src/icons/stroke/CloudArrowLeftRight.tsx +24 -0
- package/src/icons/stroke/CloudArrowUp.tsx +21 -0
- package/src/icons/stroke/CloudX.tsx +24 -0
- package/src/icons/stroke/Cog6Tooth.tsx +18 -0
- package/src/icons/stroke/Command.tsx +18 -0
- package/src/icons/stroke/CommandLine.tsx +18 -0
- package/src/icons/stroke/Cube.tsx +18 -0
- package/src/icons/stroke/Dash.tsx +15 -0
- package/src/icons/stroke/Document.tsx +20 -0
- package/src/icons/stroke/DocumentDuplicate.tsx +20 -0
- package/src/icons/stroke/DocumentPile.tsx +20 -0
- package/src/icons/stroke/DocumentPlus.tsx +21 -0
- package/src/icons/stroke/DocumentText.tsx +21 -0
- package/src/icons/stroke/Dust.tsx +26 -0
- package/src/icons/stroke/EmotionLaugh.tsx +18 -0
- package/src/icons/stroke/Equalizer.tsx +20 -0
- package/src/icons/stroke/ExclamationCircle.tsx +18 -0
- package/src/icons/stroke/ExternalLink.tsx +19 -0
- package/src/icons/stroke/Eye.tsx +18 -0
- package/src/icons/stroke/EyeSlash.tsx +18 -0
- package/src/icons/stroke/Flag.tsx +18 -0
- package/src/icons/stroke/Folder.tsx +18 -0
- package/src/icons/stroke/FolderOpen.tsx +20 -0
- package/src/icons/stroke/Fullscreen.tsx +18 -0
- package/src/icons/stroke/FullscreenExit.tsx +18 -0
- package/src/icons/stroke/GlobeAlt.tsx +18 -0
- package/src/icons/stroke/Grab.tsx +18 -0
- package/src/icons/stroke/HandHeart.tsx +18 -0
- package/src/icons/stroke/HandThumbDown.tsx +18 -0
- package/src/icons/stroke/HandThumbUp.tsx +18 -0
- package/src/icons/stroke/HeartAlt.tsx +18 -0
- package/src/icons/stroke/Hexagon.tsx +20 -0
- package/src/icons/stroke/Image.tsx +21 -0
- package/src/icons/stroke/InformationCircle.tsx +18 -0
- package/src/icons/stroke/Key.tsx +18 -0
- package/src/icons/stroke/Lightbulb.tsx +18 -0
- package/src/icons/stroke/Link.tsx +18 -0
- package/src/icons/stroke/List.tsx +20 -0
- package/src/icons/stroke/ListAdd.tsx +24 -0
- package/src/icons/stroke/ListCheck.tsx +24 -0
- package/src/icons/stroke/ListRemove.tsx +24 -0
- package/src/icons/stroke/Lock.tsx +20 -0
- package/src/icons/stroke/Login.tsx +18 -0
- package/src/icons/stroke/Logout.tsx +19 -0
- package/src/icons/stroke/Magic.tsx +24 -0
- package/src/icons/stroke/MagnifyingGlass.tsx +18 -0
- package/src/icons/stroke/Menu.tsx +18 -0
- package/src/icons/stroke/More.tsx +18 -0
- package/src/icons/stroke/MovingMail.tsx +20 -0
- package/src/icons/stroke/Paint.tsx +24 -0
- package/src/icons/stroke/PaperAirplane.tsx +18 -0
- package/src/icons/stroke/Pause.tsx +15 -0
- package/src/icons/stroke/PencilSquare.tsx +21 -0
- package/src/icons/stroke/Planet.tsx +18 -0
- package/src/icons/stroke/Play.tsx +20 -0
- package/src/icons/stroke/Plus.tsx +15 -0
- package/src/icons/stroke/PlusCircle.tsx +18 -0
- package/src/icons/stroke/Pushpin.tsx +18 -0
- package/src/icons/stroke/Puzzle.tsx +18 -0
- package/src/icons/stroke/QuestionMarkCircle.tsx +18 -0
- package/src/icons/stroke/Reaction.tsx +23 -0
- package/src/icons/stroke/Rectangle.tsx +20 -0
- package/src/icons/stroke/Robot.tsx +28 -0
- package/src/icons/stroke/Rocket.tsx +18 -0
- package/src/icons/stroke/Scan.tsx +24 -0
- package/src/icons/stroke/Server.tsx +21 -0
- package/src/icons/stroke/ShakeHands.tsx +18 -0
- package/src/icons/stroke/Shapes.tsx +18 -0
- package/src/icons/stroke/Sparkles.tsx +18 -0
- package/src/icons/stroke/Square.tsx +20 -0
- package/src/icons/stroke/Square3Stack3D.tsx +28 -0
- package/src/icons/stroke/Star.tsx +18 -0
- package/src/icons/stroke/Stop.tsx +20 -0
- package/src/icons/stroke/Table.tsx +20 -0
- package/src/icons/stroke/Template.tsx +18 -0
- package/src/icons/stroke/TestTube.tsx +18 -0
- package/src/icons/stroke/Time.tsx +18 -0
- package/src/icons/stroke/Trash.tsx +18 -0
- package/src/icons/stroke/Triangle.tsx +20 -0
- package/src/icons/stroke/User.tsx +24 -0
- package/src/icons/stroke/UserArrow.tsx +24 -0
- package/src/icons/stroke/UserGroup.tsx +24 -0
- package/src/icons/stroke/UserPlus.tsx +24 -0
- package/src/icons/stroke/Wrench.tsx +18 -0
- package/src/icons/stroke/XCircle.tsx +18 -0
- package/src/icons/stroke/XMark.tsx +18 -0
- package/src/icons/stroke/index.ts +115 -0
- package/src/index.ts +5 -0
- package/src/index_with_tw_base.ts +2 -0
- package/src/lib/avatar/types.ts +13 -0
- package/src/lib/avatar/utils.ts +56 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/utils.ts +37 -0
- package/src/logo/Logo.tsx +32 -0
- package/src/logo/LogoColoredGrey.tsx +26 -0
- package/src/logo/LogoFullColor.tsx +31 -0
- package/src/logo/LogoSquareColoredGrey.tsx +26 -0
- package/src/logo/LogoSquareFullColor.tsx +37 -0
- package/src/logo/dust/LogoHorizontalColor.tsx +37 -0
- package/src/logo/dust/LogoHorizontalColorLayer1.tsx +29 -0
- package/src/logo/dust/LogoHorizontalColorLayer2.tsx +22 -0
- package/src/logo/dust/LogoHorizontalDark.tsx +27 -0
- package/src/logo/dust/LogoHorizontalWhite.tsx +27 -0
- package/src/logo/dust/LogoSquareColor.tsx +37 -0
- package/src/logo/dust/LogoSquareColorLayer1.tsx +29 -0
- package/src/logo/dust/LogoSquareColorLayer2.tsx +22 -0
- package/src/logo/dust/LogoSquareDark.tsx +27 -0
- package/src/logo/dust/LogoSquareWhite.tsx +27 -0
- package/src/logo/dust/index.ts +10 -0
- package/src/logo/index.ts +48 -0
- package/src/logo/platforms/Ai21.tsx +31 -0
- package/src/logo/platforms/Anthropic.tsx +18 -0
- package/src/logo/platforms/AnthropicWhite.tsx +18 -0
- package/src/logo/platforms/Claude.tsx +29 -0
- package/src/logo/platforms/Cohere.tsx +26 -0
- package/src/logo/platforms/Confluence.tsx +51 -0
- package/src/logo/platforms/Drive.tsx +38 -0
- package/src/logo/platforms/Gemini.tsx +40 -0
- package/src/logo/platforms/Github.tsx +20 -0
- package/src/logo/platforms/GithubWhite.tsx +20 -0
- package/src/logo/platforms/Gong.tsx +18 -0
- package/src/logo/platforms/Google.tsx +38 -0
- package/src/logo/platforms/GoogleDoc.tsx +20 -0
- package/src/logo/platforms/GooglePdf.tsx +35 -0
- package/src/logo/platforms/GoogleSlide.tsx +22 -0
- package/src/logo/platforms/GoogleSpreadsheet.tsx +22 -0
- package/src/logo/platforms/Gpt3.tsx +29 -0
- package/src/logo/platforms/Gpt4.tsx +29 -0
- package/src/logo/platforms/HuggingFace.tsx +52 -0
- package/src/logo/platforms/Intercom.tsx +18 -0
- package/src/logo/platforms/Microsoft.tsx +18 -0
- package/src/logo/platforms/MicrosoftExcel.tsx +30 -0
- package/src/logo/platforms/MicrosoftPowerpoint.tsx +34 -0
- package/src/logo/platforms/MicrosoftWord.tsx +26 -0
- package/src/logo/platforms/Mistral.tsx +32 -0
- package/src/logo/platforms/Notion.tsx +24 -0
- package/src/logo/platforms/Office.tsx +106 -0
- package/src/logo/platforms/Openai.tsx +18 -0
- package/src/logo/platforms/OpenaiWhite.tsx +18 -0
- package/src/logo/platforms/Replicate.tsx +31 -0
- package/src/logo/platforms/Salesforce.tsx +27 -0
- package/src/logo/platforms/Slack.tsx +30 -0
- package/src/logo/platforms/Zapier.tsx +18 -0
- package/src/logo/platforms/index.ts +33 -0
- package/src/logo/src/dust/logoHorizontalColor.svg +9 -0
- package/src/logo/src/dust/logoHorizontalColor_layer1.svg +6 -0
- package/src/logo/src/dust/logoHorizontalColor_layer2.svg +5 -0
- package/src/logo/src/dust/logoHorizontalDark.svg +4 -0
- package/src/logo/src/dust/logoHorizontalWhite.svg +4 -0
- package/src/logo/src/dust/logoSquareColor.svg +9 -0
- package/src/logo/src/dust/logoSquareColor_layer1.svg +6 -0
- package/src/logo/src/dust/logoSquareColor_layer2.svg +5 -0
- package/src/logo/src/dust/logoSquareDark.svg +4 -0
- package/src/logo/src/dust/logoSquareWhite.svg +4 -0
- package/src/logo/src/logo-colored-grey.svg +4 -0
- package/src/logo/src/logo-full-color.svg +9 -0
- package/src/logo/src/logo-square-colored-grey.svg +4 -0
- package/src/logo/src/logo-square-full-color.svg +9 -0
- package/src/logo/src/platforms/Ai21.svg +11 -0
- package/src/logo/src/platforms/Anthropic.svg +3 -0
- package/src/logo/src/platforms/AnthropicWhite.svg +3 -0
- package/src/logo/src/platforms/Claude.svg +11 -0
- package/src/logo/src/platforms/Cohere.svg +5 -0
- package/src/logo/src/platforms/Confluence.svg +19 -0
- package/src/logo/src/platforms/Gemini.svg +15 -0
- package/src/logo/src/platforms/GithubWhite.svg +3 -0
- package/src/logo/src/platforms/Gong.svg +3 -0
- package/src/logo/src/platforms/Google.svg +6 -0
- package/src/logo/src/platforms/GoogleDoc.svg +8 -0
- package/src/logo/src/platforms/GooglePDF.svg +7 -0
- package/src/logo/src/platforms/GoogleSlide.svg +8 -0
- package/src/logo/src/platforms/GoogleSpreadsheet.svg +11 -0
- package/src/logo/src/platforms/Gpt3.svg +11 -0
- package/src/logo/src/platforms/Gpt4.svg +11 -0
- package/src/logo/src/platforms/HuggingFace.svg +11 -0
- package/src/logo/src/platforms/Intercom.svg +3 -0
- package/src/logo/src/platforms/Microsoft.svg +6 -0
- package/src/logo/src/platforms/MicrosoftExcel.svg +12 -0
- package/src/logo/src/platforms/MicrosoftPowerpoint.svg +7 -0
- package/src/logo/src/platforms/MicrosoftWord.svg +8 -0
- package/src/logo/src/platforms/Mistral.svg +23 -0
- package/src/logo/src/platforms/Office.svg +34 -0
- package/src/logo/src/platforms/Openai.svg +3 -0
- package/src/logo/src/platforms/OpenaiWhite.svg +3 -0
- package/src/logo/src/platforms/Replicate.svg +11 -0
- package/src/logo/src/platforms/Salesforce.svg +10 -0
- package/src/logo/src/platforms/Zapier.svg +3 -0
- package/src/logo/src/platforms/drive.svg +8 -0
- package/src/logo/src/platforms/github.svg +3 -0
- package/src/logo/src/platforms/notion.svg +4 -0
- package/src/logo/src/platforms/slack.svg +6 -0
- package/src/lottie/collapseBar.ts +189 -0
- package/src/lottie/spinnerColor.ts +431 -0
- package/src/lottie/spinnerColorLG.ts +1098 -0
- package/src/lottie/spinnerColorXS.ts +325 -0
- package/src/lottie/spinnerDark.ts +455 -0
- package/src/lottie/spinnerDarkLG.ts +1102 -0
- package/src/lottie/spinnerDarkXS.ts +362 -0
- package/src/lottie/spinnerLight.ts +440 -0
- package/src/lottie/spinnerLightLG.ts +1066 -0
- package/src/lottie/spinnerLightXS.ts +358 -0
- package/src/lottie/src/collapseBar.json +187 -0
- package/src/lottie/src/spinnerColor.json +429 -0
- package/src/lottie/src/spinnerColorLG.json +1100 -0
- package/src/lottie/src/spinnerColorXS.json +323 -0
- package/src/lottie/src/spinnerDark.json +453 -0
- package/src/lottie/src/spinnerDarkLG.json +1100 -0
- package/src/lottie/src/spinnerDarkXS.json +360 -0
- package/src/lottie/src/spinnerLight.json +438 -0
- package/src/lottie/src/spinnerLightLG.json +1064 -0
- package/src/lottie/src/spinnerLightXS.json +356 -0
- package/src/stories/AssistantPreview.stories.tsx +69 -0
- package/src/stories/Avatar.stories.tsx +437 -0
- package/src/stories/AvatarSet.stories.tsx +144 -0
- package/src/stories/Banner.stories.tsx +72 -0
- package/src/stories/BarHeader.stories.tsx +161 -0
- package/src/stories/Button.stories.tsx +640 -0
- package/src/stories/CardButton.stories.tsx +110 -0
- package/src/stories/Checkbox.stories.tsx +46 -0
- package/src/stories/Chip.stories.tsx +87 -0
- package/src/stories/Citation.stories.tsx +212 -0
- package/src/stories/CollapseButton.stories.tsx +20 -0
- package/src/stories/Collapsible.stories.tsx +61 -0
- package/src/stories/ColorPicker.stories.tsx +177 -0
- package/src/stories/ConfettiBackground.stories.tsx +28 -0
- package/src/stories/ContentMessage.stories.tsx +58 -0
- package/src/stories/ContextItem.stories.tsx +140 -0
- package/src/stories/DataTable.stories.tsx +36 -0
- package/src/stories/Dialog.stories.tsx +65 -0
- package/src/stories/DropdownMenu.stories.tsx +522 -0
- package/src/stories/ElementDialog.stories.tsx +56 -0
- package/src/stories/ElementModal.stories.tsx +50 -0
- package/src/stories/FilterChips.stories.tsx +21 -0
- package/src/stories/Hover3D.stories.tsx +112 -0
- package/src/stories/Hoverable.stories.tsx +27 -0
- package/src/stories/Icon.stories.tsx +43 -0
- package/src/stories/IconButton.stories.tsx +46 -0
- package/src/stories/IconSet.stories.tsx +59 -0
- package/src/stories/IconToggleButton.stories.tsx +34 -0
- package/src/stories/Input.stories.tsx +96 -0
- package/src/stories/Introduction.mdx +221 -0
- package/src/stories/Item.stories.tsx +199 -0
- package/src/stories/Logo.stories.tsx +113 -0
- package/src/stories/Markdown.stories.tsx +52 -0
- package/src/stories/Modal.stories.tsx +146 -0
- package/src/stories/Notification.stories.tsx +38 -0
- package/src/stories/Page.stories.tsx +389 -0
- package/src/stories/PaginatedCitationsGrid.stories.tsx +41 -0
- package/src/stories/Pagination.stories.tsx +46 -0
- package/src/stories/PlatformIconSet.stories.tsx +40 -0
- package/src/stories/Popup.stories.tsx +49 -0
- package/src/stories/PriceTable.stories.tsx +118 -0
- package/src/stories/RadioButton.stories.tsx +68 -0
- package/src/stories/Searchbar.stories.tsx +109 -0
- package/src/stories/Shadows.stories.tsx +42 -0
- package/src/stories/SliderToggle.stories.tsx +36 -0
- package/src/stories/Spinner.stories.tsx +121 -0
- package/src/stories/SystemAvatarSet.stories.tsx +72 -0
- package/src/stories/Tab.stories.tsx +96 -0
- package/src/stories/TextArea.stories.tsx +50 -0
- package/src/stories/Tooltip.stories.tsx +62 -0
- package/src/stories/Tree.stories.tsx +368 -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/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/direction.svg +1 -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/flow.svg +1 -0
- package/src/stories/assets/github.svg +3 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/stackalt.svg +1 -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/styles/global.css +12 -0
- package/src/styles/global_with_tw_base.css +4 -0
- package/src/styles/tailwind.css +15 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgSquare3Stack3D = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M2 7c3.333-2 6.666-4.001 10-6 3.334 1.999 6.667 4 10 6l-10 6L2 7Zm10-3.668L5.887 7 12 10.667 18.113 7 12 3.332Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
d="M4.083 10.75 2 12l10 6 10-6-2.083-1.25L12 15.5l-7.917-4.75Z"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
fill="currentColor"
|
|
24
|
+
d="m2 17 2.083-1.25L12 20.5l7.917-4.75L22 17l-10 6-10-6Z"
|
|
25
|
+
/>
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
export default SvgSquare3Stack3D;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgStar = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="m12 18.26-7.053 3.948 1.575-7.928L.588 8.792l8.027-.952L12 .5l3.385 7.34 8.027.952-5.934 5.488 1.575 7.928-7.053-3.948Zm0-2.292 4.247 2.377-.948-4.773 3.573-3.305-4.833-.573-2.038-4.419-2.039 4.42-4.833.572 3.573 3.305-.948 4.773L12 15.968Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgStar;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgStop = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M17 7H7v10h10V7ZM5 5v14h14V5H5Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
);
|
|
20
|
+
export default SvgStop;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgTable = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M2 22h20V2H2v20Zm9-18v4H4V4h7ZM4 14v-4h7v4H4Zm0 2h7v4H4v-4Zm9 0h7v4h-7v-4Zm7-2h-7v-4h7v4Zm0-10v4h-7V4h7Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
);
|
|
20
|
+
export default SvgTable;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgTemplate = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="M21 3v18H3V3h18ZM11 13H5v6h6v-6Zm2 6h6V5h-6v14ZM11 5H5v6h6V5Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgTemplate;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgTestTube = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="M17 2v2h-1v14a4 4 0 0 1-8 0V4H7V2h10Zm-3 8h-4v8a2 2 0 1 0 4 0v-8Zm-1 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-2-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3-8h-4v4h4V4Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgTestTube;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgTime = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm1-8h4v2h-6V7h2v5Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgTime;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgTrash = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="M16 5h4v2h-1v12a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V7H4V5h4V3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2Zm1 2H7v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7Zm-7-3v1h4V4h-4Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgTrash;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgTriangle = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M12 3 1.608 21h20.784L12 3Zm0 4L5.072 19h13.856L12 7Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
</svg>
|
|
19
|
+
);
|
|
20
|
+
export default SvgTriangle;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgUser = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M17 8A5 5 0 1 1 7 8a5 5 0 0 1 10 0Zm-2 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
d="M12 14a8 8 0 0 0-8 8h2a6 6 0 0 1 12 0h2a8 8 0 0 0-8-8Z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
export default SvgUser;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgUserArrow = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M9 13A5 5 0 1 0 9 3a5 5 0 0 0 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
d="M1 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0H1ZM22 13l-4-4v3h-4v2h4v3l4-4Z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
export default SvgUserArrow;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgUserGroup = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M12 13a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
d="M4 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0H4ZM5.223 6.24A7.012 7.012 0 0 0 5 8c0 1.936.786 3.689 2.057 4.956A3.5 3.5 0 0 1 5.224 6.24ZM19 8a6.978 6.978 0 0 1-2.056 4.956 3.5 3.5 0 0 0 1.834-6.716c.145.563.222 1.152.222 1.76ZM.174 22a6.5 6.5 0 0 1 5.797-7.979A9.984 9.984 0 0 0 2 22H.174ZM22 22h1.826a6.5 6.5 0 0 0-5.797-7.979A9.984 9.984 0 0 1 22 22Z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
export default SvgUserGroup;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgUserPlus = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M9 13A5 5 0 1 0 9 3a5 5 0 0 0 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
d="M1 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0H1ZM18 12V9h2v3h3v2h-3v3h-2v-3h-3v-2h3Z"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
export default SvgUserPlus;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgWrench = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="M5.329 3.272a3.5 3.5 0 0 1 4.255 4.962l10.709 10.71-1.415 1.414L8.17 9.648a3.502 3.502 0 0 1-4.962-4.255L5.443 7.63a1.5 1.5 0 0 0 2.122-2.121L5.329 3.272Zm10.367 1.883 3.182-1.768 1.415 1.415-1.768 3.182-1.768.353-2.121 2.121-1.415-1.414 2.122-2.121.353-1.768ZM8.98 13.287l1.414 1.414-5.303 5.303a1 1 0 0 1-1.492-1.327l.077-.087 5.304-5.303Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgWrench;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgXCircle = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm0-9.414 2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgXCircle;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgXMark = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 24 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
d="m12 10.5 4.95-5L18.5 7l-5 5 5 4.95-1.55 1.55-4.95-5-5 5L5.5 17l5-5-5-5 1.55-1.5 4.95 5Z"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
17
|
+
);
|
|
18
|
+
export default SvgXMark;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export { default as ArrowDownStrokeIcon } from "./ArrowDown";
|
|
2
|
+
export { default as ArrowDownCircleStrokeIcon } from "./ArrowDownCircle";
|
|
3
|
+
export { default as ArrowDownOnSquareStrokeIcon } from "./ArrowDownOnSquare";
|
|
4
|
+
export { default as ArrowLeftStrokeIcon } from "./ArrowLeft";
|
|
5
|
+
export { default as ArrowPathStrokeIcon } from "./ArrowPath";
|
|
6
|
+
export { default as ArrowRightStrokeIcon } from "./ArrowRight";
|
|
7
|
+
export { default as ArrowUpStrokeIcon } from "./ArrowUp";
|
|
8
|
+
export { default as ArrowUpOnSquareStrokeIcon } from "./ArrowUpOnSquare";
|
|
9
|
+
export { default as AttachmentStrokeIcon } from "./Attachment";
|
|
10
|
+
export { default as BackspaceStrokeIcon } from "./Backspace";
|
|
11
|
+
export { default as BookmarkStrokeIcon } from "./Bookmark";
|
|
12
|
+
export { default as BookOpenStrokeIcon } from "./BookOpen";
|
|
13
|
+
export { default as BracesStrokeIcon } from "./Braces";
|
|
14
|
+
export { default as CardStrokeIcon } from "./Card";
|
|
15
|
+
export { default as ChatBubbleBottomCenterPlusStrokeIcon } from "./ChatBubbleBottomCenterPlus";
|
|
16
|
+
export { default as ChatBubbleBottomCenterTextStrokeIcon } from "./ChatBubbleBottomCenterText";
|
|
17
|
+
export { default as ChatBubbleLeftRightStrokeIcon } from "./ChatBubbleLeftRight";
|
|
18
|
+
export { default as CheckStrokeIcon } from "./Check";
|
|
19
|
+
export { default as CheckCircleStrokeIcon } from "./CheckCircle";
|
|
20
|
+
export { default as ChevronDownStrokeIcon } from "./ChevronDown";
|
|
21
|
+
export { default as ChevronLeftStrokeIcon } from "./ChevronLeft";
|
|
22
|
+
export { default as ChevronRightStrokeIcon } from "./ChevronRight";
|
|
23
|
+
export { default as ChevronUpStrokeIcon } from "./ChevronUp";
|
|
24
|
+
export { default as ChevronUpDownStrokeIcon } from "./ChevronUpDown";
|
|
25
|
+
export { default as CircleStrokeIcon } from "./Circle";
|
|
26
|
+
export { default as ClipboardStrokeIcon } from "./Clipboard";
|
|
27
|
+
export { default as ClipboardCheckStrokeIcon } from "./ClipboardCheck";
|
|
28
|
+
export { default as ClockStrokeIcon } from "./Clock";
|
|
29
|
+
export { default as CloudArrowDownStrokeIcon } from "./CloudArrowDown";
|
|
30
|
+
export { default as CloudArrowLeftRightStrokeIcon } from "./CloudArrowLeftRight";
|
|
31
|
+
export { default as CloudArrowUpStrokeIcon } from "./CloudArrowUp";
|
|
32
|
+
export { default as CloudXStrokeIcon } from "./CloudX";
|
|
33
|
+
export { default as Cog6ToothStrokeIcon } from "./Cog6Tooth";
|
|
34
|
+
export { default as CommandStrokeIcon } from "./Command";
|
|
35
|
+
export { default as CommandLineStrokeIcon } from "./CommandLine";
|
|
36
|
+
export { default as CubeStrokeIcon } from "./Cube";
|
|
37
|
+
export { default as DashStrokeIcon } from "./Dash";
|
|
38
|
+
export { default as DocumentStrokeIcon } from "./Document";
|
|
39
|
+
export { default as DocumentDuplicateStrokeIcon } from "./DocumentDuplicate";
|
|
40
|
+
export { default as DocumentPileStrokeIcon } from "./DocumentPile";
|
|
41
|
+
export { default as DocumentPlusStrokeIcon } from "./DocumentPlus";
|
|
42
|
+
export { default as DocumentTextStrokeIcon } from "./DocumentText";
|
|
43
|
+
export { default as DustStrokeIcon } from "./Dust";
|
|
44
|
+
export { default as EmotionLaughStrokeIcon } from "./EmotionLaugh";
|
|
45
|
+
export { default as EqualizerStrokeIcon } from "./Equalizer";
|
|
46
|
+
export { default as ExclamationCircleStrokeIcon } from "./ExclamationCircle";
|
|
47
|
+
export { default as ExternalLinkStrokeIcon } from "./ExternalLink";
|
|
48
|
+
export { default as EyeStrokeIcon } from "./Eye";
|
|
49
|
+
export { default as EyeSlashStrokeIcon } from "./EyeSlash";
|
|
50
|
+
export { default as FlagStrokeIcon } from "./Flag";
|
|
51
|
+
export { default as FolderStrokeIcon } from "./Folder";
|
|
52
|
+
export { default as FolderOpenStrokeIcon } from "./FolderOpen";
|
|
53
|
+
export { default as FullscreenStrokeIcon } from "./Fullscreen";
|
|
54
|
+
export { default as FullscreenExitStrokeIcon } from "./FullscreenExit";
|
|
55
|
+
export { default as GlobeAltStrokeIcon } from "./GlobeAlt";
|
|
56
|
+
export { default as GrabStrokeIcon } from "./Grab";
|
|
57
|
+
export { default as HandHeartStrokeIcon } from "./HandHeart";
|
|
58
|
+
export { default as HandThumbDownStrokeIcon } from "./HandThumbDown";
|
|
59
|
+
export { default as HandThumbUpStrokeIcon } from "./HandThumbUp";
|
|
60
|
+
export { default as HeartAltStrokeIcon } from "./HeartAlt";
|
|
61
|
+
export { default as HexagonStrokeIcon } from "./Hexagon";
|
|
62
|
+
export { default as ImageStrokeIcon } from "./Image";
|
|
63
|
+
export { default as InformationCircleStrokeIcon } from "./InformationCircle";
|
|
64
|
+
export { default as KeyStrokeIcon } from "./Key";
|
|
65
|
+
export { default as LightbulbStrokeIcon } from "./Lightbulb";
|
|
66
|
+
export { default as LinkStrokeIcon } from "./Link";
|
|
67
|
+
export { default as ListStrokeIcon } from "./List";
|
|
68
|
+
export { default as ListAddStrokeIcon } from "./ListAdd";
|
|
69
|
+
export { default as ListCheckStrokeIcon } from "./ListCheck";
|
|
70
|
+
export { default as ListRemoveStrokeIcon } from "./ListRemove";
|
|
71
|
+
export { default as LockStrokeIcon } from "./Lock";
|
|
72
|
+
export { default as LoginStrokeIcon } from "./Login";
|
|
73
|
+
export { default as LogoutStrokeIcon } from "./Logout";
|
|
74
|
+
export { default as MagicStrokeIcon } from "./Magic";
|
|
75
|
+
export { default as MagnifyingGlassStrokeIcon } from "./MagnifyingGlass";
|
|
76
|
+
export { default as MenuStrokeIcon } from "./Menu";
|
|
77
|
+
export { default as MoreStrokeIcon } from "./More";
|
|
78
|
+
export { default as MovingMailStrokeIcon } from "./MovingMail";
|
|
79
|
+
export { default as PaintStrokeIcon } from "./Paint";
|
|
80
|
+
export { default as PaperAirplaneStrokeIcon } from "./PaperAirplane";
|
|
81
|
+
export { default as PauseStrokeIcon } from "./Pause";
|
|
82
|
+
export { default as PencilSquareStrokeIcon } from "./PencilSquare";
|
|
83
|
+
export { default as PlanetStrokeIcon } from "./Planet";
|
|
84
|
+
export { default as PlayStrokeIcon } from "./Play";
|
|
85
|
+
export { default as PlusStrokeIcon } from "./Plus";
|
|
86
|
+
export { default as PlusCircleStrokeIcon } from "./PlusCircle";
|
|
87
|
+
export { default as PushpinStrokeIcon } from "./Pushpin";
|
|
88
|
+
export { default as PuzzleStrokeIcon } from "./Puzzle";
|
|
89
|
+
export { default as QuestionMarkCircleStrokeIcon } from "./QuestionMarkCircle";
|
|
90
|
+
export { default as ReactionStrokeIcon } from "./Reaction";
|
|
91
|
+
export { default as RectangleStrokeIcon } from "./Rectangle";
|
|
92
|
+
export { default as RobotStrokeIcon } from "./Robot";
|
|
93
|
+
export { default as RocketStrokeIcon } from "./Rocket";
|
|
94
|
+
export { default as ScanStrokeIcon } from "./Scan";
|
|
95
|
+
export { default as ServerStrokeIcon } from "./Server";
|
|
96
|
+
export { default as ShakeHandsStrokeIcon } from "./ShakeHands";
|
|
97
|
+
export { default as ShapesStrokeIcon } from "./Shapes";
|
|
98
|
+
export { default as SparklesStrokeIcon } from "./Sparkles";
|
|
99
|
+
export { default as SquareStrokeIcon } from "./Square";
|
|
100
|
+
export { default as Square3Stack3DStrokeIcon } from "./Square3Stack3D";
|
|
101
|
+
export { default as StarStrokeIcon } from "./Star";
|
|
102
|
+
export { default as StopStrokeIcon } from "./Stop";
|
|
103
|
+
export { default as TableStrokeIcon } from "./Table";
|
|
104
|
+
export { default as TemplateStrokeIcon } from "./Template";
|
|
105
|
+
export { default as TestTubeStrokeIcon } from "./TestTube";
|
|
106
|
+
export { default as TimeStrokeIcon } from "./Time";
|
|
107
|
+
export { default as TrashStrokeIcon } from "./Trash";
|
|
108
|
+
export { default as TriangleStrokeIcon } from "./Triangle";
|
|
109
|
+
export { default as UserStrokeIcon } from "./User";
|
|
110
|
+
export { default as UserArrowStrokeIcon } from "./UserArrow";
|
|
111
|
+
export { default as UserGroupStrokeIcon } from "./UserGroup";
|
|
112
|
+
export { default as UserPlusStrokeIcon } from "./UserPlus";
|
|
113
|
+
export { default as WrenchStrokeIcon } from "./Wrench";
|
|
114
|
+
export { default as XCircleStrokeIcon } from "./XCircle";
|
|
115
|
+
export { default as XMarkStrokeIcon } from "./XMark";
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Emoji,
|
|
3
|
+
EmojiMartData as EmojiData,
|
|
4
|
+
Skin as EmojiSkin,
|
|
5
|
+
} from "@emoji-mart/data";
|
|
6
|
+
|
|
7
|
+
export type EmojiSkinType = Pick<Emoji, "id" | "name" | "keywords"> & {
|
|
8
|
+
native: string;
|
|
9
|
+
shortcodes: string;
|
|
10
|
+
unified: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { EmojiData, EmojiSkin };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import data from "@emoji-mart/data";
|
|
2
|
+
|
|
3
|
+
import { EmojiData } from "@sparkle/lib/avatar/types";
|
|
4
|
+
|
|
5
|
+
const EMOJI_URL_REGEXP = /\/emojis\/bg-([^/]*)\/([^/]*)\/([^/.]*)/;
|
|
6
|
+
|
|
7
|
+
export type AvatarBackgroundColorType = `bg-${string}`;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* This helper extracts emojis and background color from a Dust url.
|
|
11
|
+
* URL structure is defined as such:
|
|
12
|
+
* https://{host}/emojis/bg-{backgroundColor}/{id}/{unified}.
|
|
13
|
+
*/
|
|
14
|
+
export function getEmojiAndBackgroundFromUrl(url: string) {
|
|
15
|
+
const emojiData: EmojiData = data as EmojiData;
|
|
16
|
+
|
|
17
|
+
const match = url.match(EMOJI_URL_REGEXP);
|
|
18
|
+
if (match) {
|
|
19
|
+
const [, backgroundColor, id, unified] = match;
|
|
20
|
+
|
|
21
|
+
const emojiUnicodes = Object.values(emojiData.emojis).find(
|
|
22
|
+
(e) => e.id === id
|
|
23
|
+
);
|
|
24
|
+
if (!emojiUnicodes) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const skinEmoji = emojiUnicodes.skins.find((s) => s.unified === unified);
|
|
29
|
+
if (!skinEmoji) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const prefixedBackgroundColor: AvatarBackgroundColorType = `bg-${backgroundColor}`;
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
backgroundColor: prefixedBackgroundColor,
|
|
37
|
+
id,
|
|
38
|
+
unified,
|
|
39
|
+
skinEmoji: skinEmoji.native,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function createEmojiAndBackgroundUrlSuffix({
|
|
47
|
+
backgroundColor,
|
|
48
|
+
id,
|
|
49
|
+
unified,
|
|
50
|
+
}: {
|
|
51
|
+
backgroundColor: AvatarBackgroundColorType;
|
|
52
|
+
id: string;
|
|
53
|
+
unified: string;
|
|
54
|
+
}) {
|
|
55
|
+
return `emojis/${backgroundColor}/${id}/${unified}`;
|
|
56
|
+
}
|
package/src/lib/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as avatarUtils from "./avatar/utils";
|
package/src/lib/utils.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useCallback, useState } from "react";
|
|
2
|
+
|
|
3
|
+
export function classNames(...classes: string[]) {
|
|
4
|
+
return classes.filter(Boolean).join(" ");
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function assertNever(x: never): never {
|
|
8
|
+
throw new Error(`${x} is not of type never. This should never happen.`);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function useCopyToClipboard(
|
|
12
|
+
resetInterval = 2000
|
|
13
|
+
): [isCopied: boolean, copy: (d: ClipboardItem) => Promise<boolean>] {
|
|
14
|
+
const [isCopied, setCopied] = useState(false);
|
|
15
|
+
|
|
16
|
+
const copy = useCallback(
|
|
17
|
+
async (d: ClipboardItem) => {
|
|
18
|
+
if (!navigator?.clipboard) {
|
|
19
|
+
console.warn("Clipboard not supported");
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
await navigator.clipboard.write([d]);
|
|
24
|
+
setCopied(true);
|
|
25
|
+
setTimeout(() => setCopied(false), resetInterval);
|
|
26
|
+
return true;
|
|
27
|
+
} catch (error) {
|
|
28
|
+
console.warn("Copy failed", error);
|
|
29
|
+
setCopied(false);
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
[resetInterval]
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
return [isCopied, copy];
|
|
37
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import SvgLogoColoredGrey from "./LogoColoredGrey";
|
|
4
|
+
import SvgLogoFullColor from "./LogoFullColor";
|
|
5
|
+
import SvgLogoSquareColoredGrey from "./LogoSquareColoredGrey";
|
|
6
|
+
import SvgLogoSquareFullColor from "./LogoSquareFullColor";
|
|
7
|
+
|
|
8
|
+
interface LogoProps {
|
|
9
|
+
type?: "full-color" | "colored-grey";
|
|
10
|
+
shape?: "square" | "full";
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function Logo({
|
|
15
|
+
type = "full-color",
|
|
16
|
+
shape = "full",
|
|
17
|
+
className = "",
|
|
18
|
+
}: LogoProps) {
|
|
19
|
+
if (shape === "square") {
|
|
20
|
+
if (type === "colored-grey") {
|
|
21
|
+
return <SvgLogoSquareColoredGrey className={className} />;
|
|
22
|
+
} else {
|
|
23
|
+
return <SvgLogoSquareFullColor className={className} />;
|
|
24
|
+
}
|
|
25
|
+
} else {
|
|
26
|
+
if (type === "colored-grey") {
|
|
27
|
+
return <SvgLogoColoredGrey className={className} />;
|
|
28
|
+
} else {
|
|
29
|
+
return <SvgLogoFullColor className={className} />;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
const SvgLogoColoredGrey = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
+
<svg
|
|
5
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
+
width="1em"
|
|
7
|
+
height="1em"
|
|
8
|
+
fill="none"
|
|
9
|
+
viewBox="0 0 96 24"
|
|
10
|
+
{...props}
|
|
11
|
+
>
|
|
12
|
+
<path
|
|
13
|
+
fill="#64748B"
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
d="M12 24c6.627 0 12-5.373 12-12 0 6.627 5.373 12 12 12s12-5.373 12-12v12h12a6 6 0 0 0 0-12H48c0-6.627-5.373-12-12-12S24 5.373 24 12c0-6.627-5.373-12-12-12S0 5.373 0 12s5.373 12 12 12Zm72-12H72v12h12V12Z"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
/>
|
|
18
|
+
<path
|
|
19
|
+
fill="#334155"
|
|
20
|
+
fillRule="evenodd"
|
|
21
|
+
d="M0 0h12v24H0V0Zm24 0h24v12H24V0Zm36 12h36V0H60a6 6 0 0 0 0 12Z"
|
|
22
|
+
clipRule="evenodd"
|
|
23
|
+
/>
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
26
|
+
export default SvgLogoColoredGrey;
|