@wallarm-org/claude-design 0.0.0-stage → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -2
- package/bin/claude-design.js +347 -0
- package/dist/SETUP.md +130 -0
- package/dist/UPDATE.md +84 -0
- package/dist/assets/Icons/activity.svg +1 -0
- package/dist/assets/Icons/alt.svg +1 -0
- package/dist/assets/Icons/android-neutral.svg +1 -0
- package/dist/assets/Icons/android.svg +1 -0
- package/dist/assets/Icons/api.svg +1 -0
- package/dist/assets/Icons/apple-music-neutral.svg +1 -0
- package/dist/assets/Icons/apple-music.svg +1 -0
- package/dist/assets/Icons/apple-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts.svg +1 -0
- package/dist/assets/Icons/apple.svg +1 -0
- package/dist/assets/Icons/archive.svg +1 -0
- package/dist/assets/Icons/arrow-big-up-dash.svg +1 -0
- package/dist/assets/Icons/arrow-big-up.svg +1 -0
- package/dist/assets/Icons/arrow-down-left.svg +1 -0
- package/dist/assets/Icons/arrow-down-right.svg +1 -0
- package/dist/assets/Icons/arrow-down.svg +1 -0
- package/dist/assets/Icons/arrow-left.svg +1 -0
- package/dist/assets/Icons/arrow-right-alt.svg +1 -0
- package/dist/assets/Icons/arrow-right.svg +1 -0
- package/dist/assets/Icons/arrow-up-down.svg +1 -0
- package/dist/assets/Icons/arrow-up-left.svg +1 -0
- package/dist/assets/Icons/arrow-up-right.svg +1 -0
- package/dist/assets/Icons/arrow-up.svg +1 -0
- package/dist/assets/Icons/artstation-neutral.svg +1 -0
- package/dist/assets/Icons/artstation.svg +1 -0
- package/dist/assets/Icons/asterisk.svg +1 -0
- package/dist/assets/Icons/audio-waveform.svg +1 -0
- package/dist/assets/Icons/aws-neutral.svg +1 -0
- package/dist/assets/Icons/aws.svg +1 -0
- package/dist/assets/Icons/badge-check.svg +1 -0
- package/dist/assets/Icons/baidu-neutral.svg +1 -0
- package/dist/assets/Icons/baidu.svg +1 -0
- package/dist/assets/Icons/bandage.svg +1 -0
- package/dist/assets/Icons/behance-neutral.svg +1 -0
- package/dist/assets/Icons/behance.svg +1 -0
- package/dist/assets/Icons/bell-cog.svg +1 -0
- package/dist/assets/Icons/bell.svg +1 -0
- package/dist/assets/Icons/binary.svg +1 -0
- package/dist/assets/Icons/book-open.svg +1 -0
- package/dist/assets/Icons/book.svg +1 -0
- package/dist/assets/Icons/boosty-neutral.svg +1 -0
- package/dist/assets/Icons/boosty.svg +1 -0
- package/dist/assets/Icons/bot.svg +1 -0
- package/dist/assets/Icons/brain.svg +1 -0
- package/dist/assets/Icons/braze-neutral.svg +1 -0
- package/dist/assets/Icons/braze.svg +1 -0
- package/dist/assets/Icons/brevo-neutral.svg +1 -0
- package/dist/assets/Icons/brevo.svg +1 -0
- package/dist/assets/Icons/bug-off.svg +1 -0
- package/dist/assets/Icons/bug-play.svg +1 -0
- package/dist/assets/Icons/bug.svg +1 -0
- package/dist/assets/Icons/building.svg +1 -0
- package/dist/assets/Icons/building2.svg +1 -0
- package/dist/assets/Icons/calendar-check.svg +1 -0
- package/dist/assets/Icons/calendar-check2.svg +1 -0
- package/dist/assets/Icons/calendar-clock.svg +1 -0
- package/dist/assets/Icons/calendar-cog.svg +1 -0
- package/dist/assets/Icons/calendar-days.svg +1 -0
- package/dist/assets/Icons/calendar-fold.svg +1 -0
- package/dist/assets/Icons/calendar-heart.svg +1 -0
- package/dist/assets/Icons/calendar-minus.svg +1 -0
- package/dist/assets/Icons/calendar-minus2.svg +1 -0
- package/dist/assets/Icons/calendar-off.svg +1 -0
- package/dist/assets/Icons/calendar-plus.svg +1 -0
- package/dist/assets/Icons/calendar-plus2.svg +1 -0
- package/dist/assets/Icons/calendar-range.svg +1 -0
- package/dist/assets/Icons/calendar-search.svg +1 -0
- package/dist/assets/Icons/calendar-x.svg +1 -0
- package/dist/assets/Icons/calendar-x2.svg +1 -0
- package/dist/assets/Icons/calendar.svg +1 -0
- package/dist/assets/Icons/chart-area.svg +1 -0
- package/dist/assets/Icons/chart-bar.svg +1 -0
- package/dist/assets/Icons/chart-column.svg +1 -0
- package/dist/assets/Icons/chart-no-axes-column.svg +1 -0
- package/dist/assets/Icons/check-check.svg +1 -0
- package/dist/assets/Icons/check.svg +1 -0
- package/dist/assets/Icons/checkbox-indeterminate.svg +1 -0
- package/dist/assets/Icons/chevron-down.svg +1 -0
- package/dist/assets/Icons/chevron-first.svg +1 -0
- package/dist/assets/Icons/chevron-last.svg +1 -0
- package/dist/assets/Icons/chevron-left.svg +1 -0
- package/dist/assets/Icons/chevron-right.svg +1 -0
- package/dist/assets/Icons/chevron-up-down.svg +1 -0
- package/dist/assets/Icons/chevron-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down.svg +1 -0
- package/dist/assets/Icons/chevrons-left-right.svg +1 -0
- package/dist/assets/Icons/chevrons-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right.svg +1 -0
- package/dist/assets/Icons/chevrons-up-down.svg +1 -0
- package/dist/assets/Icons/chevrons-up.svg +1 -0
- package/dist/assets/Icons/circle-arrow-down.svg +1 -0
- package/dist/assets/Icons/circle-arrow-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-up.svg +1 -0
- package/dist/assets/Icons/circle-check-big.svg +1 -0
- package/dist/assets/Icons/circle-check.svg +1 -0
- package/dist/assets/Icons/circle-chevron-down.svg +1 -0
- package/dist/assets/Icons/circle-chevron-left.svg +1 -0
- package/dist/assets/Icons/circle-chevron-right.svg +1 -0
- package/dist/assets/Icons/circle-chevron-up.svg +1 -0
- package/dist/assets/Icons/circle-dashed.svg +1 -0
- package/dist/assets/Icons/circle-dot-dashed.svg +1 -0
- package/dist/assets/Icons/circle-ellipsis.svg +1 -0
- package/dist/assets/Icons/circle-gauge.svg +1 -0
- package/dist/assets/Icons/circle-help.svg +1 -0
- package/dist/assets/Icons/circle-minus.svg +1 -0
- package/dist/assets/Icons/circle-plus.svg +1 -0
- package/dist/assets/Icons/circle-slash.svg +1 -0
- package/dist/assets/Icons/circle-slash2.svg +1 -0
- package/dist/assets/Icons/circle-stop.svg +1 -0
- package/dist/assets/Icons/circle.svg +1 -0
- package/dist/assets/Icons/clipboard-check.svg +1 -0
- package/dist/assets/Icons/clipboard-x.svg +1 -0
- package/dist/assets/Icons/clipboard.svg +1 -0
- package/dist/assets/Icons/clock-fading.svg +1 -0
- package/dist/assets/Icons/clock.svg +1 -0
- package/dist/assets/Icons/cloud-off.svg +1 -0
- package/dist/assets/Icons/cloud-sync.svg +1 -0
- package/dist/assets/Icons/cloud.svg +1 -0
- package/dist/assets/Icons/code.svg +1 -0
- package/dist/assets/Icons/collapse.svg +1 -0
- package/dist/assets/Icons/columns3-cog.svg +1 -0
- package/dist/assets/Icons/command.svg +1 -0
- package/dist/assets/Icons/compass.svg +1 -0
- package/dist/assets/Icons/copy-slash.svg +1 -0
- package/dist/assets/Icons/copy.svg +1 -0
- package/dist/assets/Icons/corner-down-left.svg +1 -0
- package/dist/assets/Icons/corner-down-right.svg +1 -0
- package/dist/assets/Icons/corner-left-down.svg +1 -0
- package/dist/assets/Icons/corner-left-up.svg +1 -0
- package/dist/assets/Icons/corner-right-down.svg +1 -0
- package/dist/assets/Icons/corner-right-up.svg +1 -0
- package/dist/assets/Icons/corner-up-left.svg +1 -0
- package/dist/assets/Icons/corner-up-right.svg +1 -0
- package/dist/assets/Icons/cpu.svg +1 -0
- package/dist/assets/Icons/credit-card.svg +1 -0
- package/dist/assets/Icons/crosshair.svg +1 -0
- package/dist/assets/Icons/ctrl.svg +1 -0
- package/dist/assets/Icons/database.svg +1 -0
- package/dist/assets/Icons/devianart-neutral.svg +1 -0
- package/dist/assets/Icons/devianart.svg +1 -0
- package/dist/assets/Icons/discord-neutral.svg +1 -0
- package/dist/assets/Icons/discord.svg +1 -0
- package/dist/assets/Icons/dollar-sign.svg +1 -0
- package/dist/assets/Icons/dot.svg +1 -0
- package/dist/assets/Icons/download.svg +1 -0
- package/dist/assets/Icons/dprofile-neutral.svg +1 -0
- package/dist/assets/Icons/dprofile.svg +1 -0
- package/dist/assets/Icons/dribbble-neutral.svg +1 -0
- package/dist/assets/Icons/dribbble.svg +1 -0
- package/dist/assets/Icons/droplet.svg +1 -0
- package/dist/assets/Icons/duplicate.svg +1 -0
- package/dist/assets/Icons/dzen-neutral.svg +1 -0
- package/dist/assets/Icons/dzen.svg +1 -0
- package/dist/assets/Icons/earth-lock.svg +1 -0
- package/dist/assets/Icons/earth.svg +1 -0
- package/dist/assets/Icons/ellipsis.svg +1 -0
- package/dist/assets/Icons/expand.svg +1 -0
- package/dist/assets/Icons/external-link.svg +1 -0
- package/dist/assets/Icons/eye-off.svg +1 -0
- package/dist/assets/Icons/eye.svg +1 -0
- package/dist/assets/Icons/facebook-neutral.svg +1 -0
- package/dist/assets/Icons/facebook.svg +1 -0
- package/dist/assets/Icons/fast-forward.svg +1 -0
- package/dist/assets/Icons/figma-neutral.svg +1 -0
- package/dist/assets/Icons/figma.svg +1 -0
- package/dist/assets/Icons/file-down.svg +1 -0
- package/dist/assets/Icons/file-plus.svg +1 -0
- package/dist/assets/Icons/file-text.svg +1 -0
- package/dist/assets/Icons/file.svg +1 -0
- package/dist/assets/Icons/film.svg +1 -0
- package/dist/assets/Icons/filter-x.svg +1 -0
- package/dist/assets/Icons/filter.svg +1 -0
- package/dist/assets/Icons/fingerprint-pattern.svg +1 -0
- package/dist/assets/Icons/flag.svg +1 -0
- package/dist/assets/Icons/flask-conical.svg +1 -0
- package/dist/assets/Icons/folder.svg +1 -0
- package/dist/assets/Icons/funnel-plus.svg +1 -0
- package/dist/assets/Icons/ghost.svg +1 -0
- package/dist/assets/Icons/git-branch.svg +1 -0
- package/dist/assets/Icons/git-commit-horizontal.svg +1 -0
- package/dist/assets/Icons/git-commit-vertical.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows-alt.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows.svg +1 -0
- package/dist/assets/Icons/git-compare.svg +1 -0
- package/dist/assets/Icons/git-fork.svg +1 -0
- package/dist/assets/Icons/git-graph.svg +1 -0
- package/dist/assets/Icons/git-merge.svg +1 -0
- package/dist/assets/Icons/git-pull-request-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-closed.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create.svg +1 -0
- package/dist/assets/Icons/git-pull-request-draft.svg +1 -0
- package/dist/assets/Icons/git-pull-request.svg +1 -0
- package/dist/assets/Icons/github-neutral.svg +1 -0
- package/dist/assets/Icons/github.svg +1 -0
- package/dist/assets/Icons/globe-lock.svg +1 -0
- package/dist/assets/Icons/globe.svg +1 -0
- package/dist/assets/Icons/gmail-neutral.svg +1 -0
- package/dist/assets/Icons/gmail.svg +1 -0
- package/dist/assets/Icons/google-meet-neutral.svg +1 -0
- package/dist/assets/Icons/google-meet.svg +1 -0
- package/dist/assets/Icons/google-neutral.svg +1 -0
- package/dist/assets/Icons/google-play-neutral.svg +1 -0
- package/dist/assets/Icons/google-play.svg +1 -0
- package/dist/assets/Icons/google-podcast-neutral.svg +1 -0
- package/dist/assets/Icons/google-podcast.svg +1 -0
- package/dist/assets/Icons/google.svg +1 -0
- package/dist/assets/Icons/grip-horizontal.svg +1 -0
- package/dist/assets/Icons/grip-vertical.svg +1 -0
- package/dist/assets/Icons/hammer.svg +1 -0
- package/dist/assets/Icons/heart-pulse.svg +1 -0
- package/dist/assets/Icons/history.svg +1 -0
- package/dist/assets/Icons/home.svg +1 -0
- package/dist/assets/Icons/imo-neutral.svg +1 -0
- package/dist/assets/Icons/imo.svg +1 -0
- package/dist/assets/Icons/infinity.svg +1 -0
- package/dist/assets/Icons/info.svg +1 -0
- package/dist/assets/Icons/infobip-neutral.svg +1 -0
- package/dist/assets/Icons/infobip.svg +1 -0
- package/dist/assets/Icons/instagram-neutral.svg +1 -0
- package/dist/assets/Icons/instagram.svg +1 -0
- package/dist/assets/Icons/key-round.svg +1 -0
- package/dist/assets/Icons/key-square.svg +1 -0
- package/dist/assets/Icons/keyboard.svg +1 -0
- package/dist/assets/Icons/kickstarter-neutral.svg +1 -0
- package/dist/assets/Icons/kickstarter.svg +1 -0
- package/dist/assets/Icons/laptop.svg +1 -0
- package/dist/assets/Icons/layers.svg +1 -0
- package/dist/assets/Icons/layers2.svg +1 -0
- package/dist/assets/Icons/layers3.svg +1 -0
- package/dist/assets/Icons/layout-dashboard.svg +1 -0
- package/dist/assets/Icons/layout-grid.svg +1 -0
- package/dist/assets/Icons/layout-list.svg +1 -0
- package/dist/assets/Icons/layout-panel-left.svg +1 -0
- package/dist/assets/Icons/layout-panel-top.svg +1 -0
- package/dist/assets/Icons/layout-template.svg +1 -0
- package/dist/assets/Icons/library-big.svg +1 -0
- package/dist/assets/Icons/life-buoy.svg +1 -0
- package/dist/assets/Icons/lightbulb-off.svg +1 -0
- package/dist/assets/Icons/lightbulb.svg +1 -0
- package/dist/assets/Icons/line-neutral.svg +1 -0
- package/dist/assets/Icons/line.svg +1 -0
- package/dist/assets/Icons/link.svg +1 -0
- package/dist/assets/Icons/link2-off.svg +1 -0
- package/dist/assets/Icons/link2.svg +1 -0
- package/dist/assets/Icons/linkedin-neutral.svg +1 -0
- package/dist/assets/Icons/linkedin.svg +1 -0
- package/dist/assets/Icons/list-checks.svg +1 -0
- package/dist/assets/Icons/list-collapse.svg +1 -0
- package/dist/assets/Icons/list-filter.svg +1 -0
- package/dist/assets/Icons/list-minus.svg +1 -0
- package/dist/assets/Icons/list-ordered.svg +1 -0
- package/dist/assets/Icons/list-plus.svg +1 -0
- package/dist/assets/Icons/list-restart.svg +1 -0
- package/dist/assets/Icons/list-start.svg +1 -0
- package/dist/assets/Icons/list-todo.svg +1 -0
- package/dist/assets/Icons/list-tree.svg +1 -0
- package/dist/assets/Icons/list-video.svg +1 -0
- package/dist/assets/Icons/list-x.svg +1 -0
- package/dist/assets/Icons/list.svg +1 -0
- package/dist/assets/Icons/loader-circle.svg +1 -0
- package/dist/assets/Icons/loader.svg +1 -0
- package/dist/assets/Icons/lock-open.svg +1 -0
- package/dist/assets/Icons/lock.svg +1 -0
- package/dist/assets/Icons/log-in.svg +1 -0
- package/dist/assets/Icons/log-out.svg +1 -0
- package/dist/assets/Icons/mail-check.svg +1 -0
- package/dist/assets/Icons/mail-minus.svg +1 -0
- package/dist/assets/Icons/mail-open.svg +1 -0
- package/dist/assets/Icons/mail-plus.svg +1 -0
- package/dist/assets/Icons/mail-question.svg +1 -0
- package/dist/assets/Icons/mail-search.svg +1 -0
- package/dist/assets/Icons/mail-warning.svg +1 -0
- package/dist/assets/Icons/mail-x.svg +1 -0
- package/dist/assets/Icons/mail.svg +1 -0
- package/dist/assets/Icons/mailbox.svg +1 -0
- package/dist/assets/Icons/mailersend-neutral.svg +1 -0
- package/dist/assets/Icons/mailersend.svg +1 -0
- package/dist/assets/Icons/mailgun-neutral.svg +1 -0
- package/dist/assets/Icons/mailgun.svg +1 -0
- package/dist/assets/Icons/mailjet-neutral.svg +1 -0
- package/dist/assets/Icons/mailjet.svg +1 -0
- package/dist/assets/Icons/mails.svg +1 -0
- package/dist/assets/Icons/mailtrap-neutral.svg +1 -0
- package/dist/assets/Icons/mailtrap.svg +1 -0
- package/dist/assets/Icons/mandrill-neutral.svg +1 -0
- package/dist/assets/Icons/mandrill.svg +1 -0
- package/dist/assets/Icons/map-pin.svg +1 -0
- package/dist/assets/Icons/maqsam-neutral.svg +1 -0
- package/dist/assets/Icons/maqsam.svg +1 -0
- package/dist/assets/Icons/mattermost-neutral.svg +1 -0
- package/dist/assets/Icons/mattermost.svg +1 -0
- package/dist/assets/Icons/maximize.svg +1 -0
- package/dist/assets/Icons/maximize2.svg +1 -0
- package/dist/assets/Icons/medium-neutral.svg +1 -0
- package/dist/assets/Icons/medium.svg +1 -0
- package/dist/assets/Icons/megaphone-off.svg +1 -0
- package/dist/assets/Icons/megaphone.svg +1 -0
- package/dist/assets/Icons/menu.svg +1 -0
- package/dist/assets/Icons/merge.svg +1 -0
- package/dist/assets/Icons/message-square-code.svg +1 -0
- package/dist/assets/Icons/message-square-dashed.svg +1 -0
- package/dist/assets/Icons/message-square-diff.svg +1 -0
- package/dist/assets/Icons/message-square-dot.svg +1 -0
- package/dist/assets/Icons/message-square-heart.svg +1 -0
- package/dist/assets/Icons/message-square-off.svg +1 -0
- package/dist/assets/Icons/message-square-plus.svg +1 -0
- package/dist/assets/Icons/message-square-quote.svg +1 -0
- package/dist/assets/Icons/message-square-reply.svg +1 -0
- package/dist/assets/Icons/message-square-share.svg +1 -0
- package/dist/assets/Icons/message-square-text.svg +1 -0
- package/dist/assets/Icons/message-square-warning.svg +1 -0
- package/dist/assets/Icons/message-square-x.svg +1 -0
- package/dist/assets/Icons/message-square.svg +1 -0
- package/dist/assets/Icons/messages-square.svg +1 -0
- package/dist/assets/Icons/messenger-neutral.svg +1 -0
- package/dist/assets/Icons/messenger.svg +1 -0
- package/dist/assets/Icons/microsoft-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams.svg +1 -0
- package/dist/assets/Icons/microsoft.svg +1 -0
- package/dist/assets/Icons/minimize.svg +1 -0
- package/dist/assets/Icons/minimize2.svg +1 -0
- package/dist/assets/Icons/minus.svg +1 -0
- package/dist/assets/Icons/moon.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-ban.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-click.svg +1 -0
- package/dist/assets/Icons/mouse-pointer.svg +1 -0
- package/dist/assets/Icons/mouse-pointer2.svg +1 -0
- package/dist/assets/Icons/mouse.svg +1 -0
- package/dist/assets/Icons/move-diagonal.svg +1 -0
- package/dist/assets/Icons/move-diagonal2.svg +1 -0
- package/dist/assets/Icons/move-down-left.svg +1 -0
- package/dist/assets/Icons/move-down-right.svg +1 -0
- package/dist/assets/Icons/move-down.svg +1 -0
- package/dist/assets/Icons/move-horizontal.svg +1 -0
- package/dist/assets/Icons/move-left.svg +1 -0
- package/dist/assets/Icons/move-right.svg +1 -0
- package/dist/assets/Icons/move-up-left.svg +1 -0
- package/dist/assets/Icons/move-up-right.svg +1 -0
- package/dist/assets/Icons/move-up.svg +1 -0
- package/dist/assets/Icons/move-vertical.svg +1 -0
- package/dist/assets/Icons/move3-d.svg +1 -0
- package/dist/assets/Icons/netcore-neutral.svg +1 -0
- package/dist/assets/Icons/netcore.svg +1 -0
- package/dist/assets/Icons/notebook-pen.svg +1 -0
- package/dist/assets/Icons/notebook-tabs.svg +1 -0
- package/dist/assets/Icons/notebook-text.svg +1 -0
- package/dist/assets/Icons/notebook.svg +1 -0
- package/dist/assets/Icons/notepad-text-dashed.svg +1 -0
- package/dist/assets/Icons/notepad-text.svg +1 -0
- package/dist/assets/Icons/notion-neutral.svg +1 -0
- package/dist/assets/Icons/notion.svg +1 -0
- package/dist/assets/Icons/octagon-alert.svg +1 -0
- package/dist/assets/Icons/octagon-pause.svg +1 -0
- package/dist/assets/Icons/octagon-x.svg +1 -0
- package/dist/assets/Icons/octagon.svg +1 -0
- package/dist/assets/Icons/ok-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign.svg +1 -0
- package/dist/assets/Icons/ok.svg +1 -0
- package/dist/assets/Icons/onlyfans-neutral.svg +1 -0
- package/dist/assets/Icons/onlyfans.svg +1 -0
- package/dist/assets/Icons/option.svg +1 -0
- package/dist/assets/Icons/outlook365-neutral.svg +1 -0
- package/dist/assets/Icons/outlook365.svg +1 -0
- package/dist/assets/Icons/paintbrush.svg +1 -0
- package/dist/assets/Icons/panel-bottom-open.svg +1 -0
- package/dist/assets/Icons/panel-bottom.svg +1 -0
- package/dist/assets/Icons/panel-left-close.svg +1 -0
- package/dist/assets/Icons/panel-left-dashed.svg +1 -0
- package/dist/assets/Icons/panel-left-open.svg +1 -0
- package/dist/assets/Icons/panel-left.svg +1 -0
- package/dist/assets/Icons/panel-right-animated.svg +1 -0
- package/dist/assets/Icons/panel-right-close.svg +1 -0
- package/dist/assets/Icons/panel-right-dashed.svg +1 -0
- package/dist/assets/Icons/panel-right-open.svg +1 -0
- package/dist/assets/Icons/panel-right.svg +1 -0
- package/dist/assets/Icons/panel-top-bottom-dashed.svg +1 -0
- package/dist/assets/Icons/panel-top-close.svg +1 -0
- package/dist/assets/Icons/panel-top-open.svg +1 -0
- package/dist/assets/Icons/panel-top.svg +1 -0
- package/dist/assets/Icons/panels-left-bottom.svg +1 -0
- package/dist/assets/Icons/panels-right-bottom.svg +1 -0
- package/dist/assets/Icons/panels-top-left.svg +1 -0
- package/dist/assets/Icons/paperclip.svg +1 -0
- package/dist/assets/Icons/patreon-neutral.svg +1 -0
- package/dist/assets/Icons/patreon.svg +1 -0
- package/dist/assets/Icons/paypal-neutral.svg +1 -0
- package/dist/assets/Icons/paypal.svg +1 -0
- package/dist/assets/Icons/pen-line.svg +1 -0
- package/dist/assets/Icons/pen-off.svg +1 -0
- package/dist/assets/Icons/pen-tool.svg +1 -0
- package/dist/assets/Icons/pen.svg +1 -0
- package/dist/assets/Icons/pencil-line.svg +1 -0
- package/dist/assets/Icons/pencil-off.svg +1 -0
- package/dist/assets/Icons/pencil-ruler.svg +1 -0
- package/dist/assets/Icons/pencil.svg +1 -0
- package/dist/assets/Icons/pentagon.svg +1 -0
- package/dist/assets/Icons/percentage.svg +1 -0
- package/dist/assets/Icons/phone.svg +1 -0
- package/dist/assets/Icons/pin-off.svg +1 -0
- package/dist/assets/Icons/pin.svg +1 -0
- package/dist/assets/Icons/pinterest-neutral.svg +1 -0
- package/dist/assets/Icons/pinterest.svg +1 -0
- package/dist/assets/Icons/play.svg +1 -0
- package/dist/assets/Icons/plug.svg +1 -0
- package/dist/assets/Icons/plunk-neutral.svg +1 -0
- package/dist/assets/Icons/plunk.svg +1 -0
- package/dist/assets/Icons/plus.svg +1 -0
- package/dist/assets/Icons/postmark-neutral.svg +1 -0
- package/dist/assets/Icons/postmark.svg +1 -0
- package/dist/assets/Icons/product-hunt-neutral.svg +1 -0
- package/dist/assets/Icons/product-hunt.svg +1 -0
- package/dist/assets/Icons/quora-neutral.svg +1 -0
- package/dist/assets/Icons/quora.svg +1 -0
- package/dist/assets/Icons/quote.svg +1 -0
- package/dist/assets/Icons/radar.svg +1 -0
- package/dist/assets/Icons/reddit-neutral.svg +1 -0
- package/dist/assets/Icons/reddit.svg +1 -0
- package/dist/assets/Icons/redo-dot.svg +1 -0
- package/dist/assets/Icons/redo.svg +1 -0
- package/dist/assets/Icons/redo2.svg +1 -0
- package/dist/assets/Icons/refresh-ccw.svg +1 -0
- package/dist/assets/Icons/refresh-cw-off.svg +1 -0
- package/dist/assets/Icons/resend-neutral.svg +1 -0
- package/dist/assets/Icons/resend.svg +1 -0
- package/dist/assets/Icons/rss.svg +1 -0
- package/dist/assets/Icons/rules.svg +1 -0
- package/dist/assets/Icons/scan-line.svg +1 -0
- package/dist/assets/Icons/scroll-text.svg +1 -0
- package/dist/assets/Icons/search-hint.svg +1 -0
- package/dist/assets/Icons/search-x.svg +1 -0
- package/dist/assets/Icons/search.svg +1 -0
- package/dist/assets/Icons/sendgrid-neutral.svg +1 -0
- package/dist/assets/Icons/sendgrid.svg +1 -0
- package/dist/assets/Icons/server.svg +1 -0
- package/dist/assets/Icons/ses-neutral.svg +1 -0
- package/dist/assets/Icons/ses.svg +1 -0
- package/dist/assets/Icons/settings.svg +1 -0
- package/dist/assets/Icons/settings2.svg +1 -0
- package/dist/assets/Icons/shapes.svg +1 -0
- package/dist/assets/Icons/share.svg +1 -0
- package/dist/assets/Icons/sheet.svg +1 -0
- package/dist/assets/Icons/shield-alert.svg +1 -0
- package/dist/assets/Icons/shield-ban.svg +1 -0
- package/dist/assets/Icons/shield-check.svg +1 -0
- package/dist/assets/Icons/shield-ellipsis.svg +1 -0
- package/dist/assets/Icons/shield-half.svg +1 -0
- package/dist/assets/Icons/shield-minus.svg +1 -0
- package/dist/assets/Icons/shield-off.svg +1 -0
- package/dist/assets/Icons/shield-plus.svg +1 -0
- package/dist/assets/Icons/shield-question.svg +1 -0
- package/dist/assets/Icons/shield-user.svg +1 -0
- package/dist/assets/Icons/shield-x.svg +1 -0
- package/dist/assets/Icons/shield.svg +1 -0
- package/dist/assets/Icons/shift.svg +1 -0
- package/dist/assets/Icons/signal-neutral.svg +1 -0
- package/dist/assets/Icons/signal.svg +1 -0
- package/dist/assets/Icons/signpost.svg +1 -0
- package/dist/assets/Icons/sina-weibo-neutral.svg +1 -0
- package/dist/assets/Icons/sina-weibo.svg +1 -0
- package/dist/assets/Icons/skull.svg +1 -0
- package/dist/assets/Icons/skype-neutral.svg +1 -0
- package/dist/assets/Icons/skype.svg +1 -0
- package/dist/assets/Icons/slack-neutral.svg +1 -0
- package/dist/assets/Icons/slack.svg +1 -0
- package/dist/assets/Icons/sliders-horizontal.svg +1 -0
- package/dist/assets/Icons/sliders-vertical.svg +1 -0
- package/dist/assets/Icons/smtp-neutral.svg +1 -0
- package/dist/assets/Icons/smtp.svg +1 -0
- package/dist/assets/Icons/snapchat-neutral.svg +1 -0
- package/dist/assets/Icons/snapchat.svg +1 -0
- package/dist/assets/Icons/soundcloud-neutral.svg +1 -0
- package/dist/assets/Icons/soundcloud.svg +1 -0
- package/dist/assets/Icons/space.svg +1 -0
- package/dist/assets/Icons/sparkpost-neutral.svg +1 -0
- package/dist/assets/Icons/sparkpost.svg +1 -0
- package/dist/assets/Icons/speed.svg +1 -0
- package/dist/assets/Icons/split.svg +1 -0
- package/dist/assets/Icons/spotify-neutral.svg +1 -0
- package/dist/assets/Icons/spotify.svg +1 -0
- package/dist/assets/Icons/square-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/square-minus.svg +1 -0
- package/dist/assets/Icons/square-pen.svg +1 -0
- package/dist/assets/Icons/square-plus.svg +1 -0
- package/dist/assets/Icons/square-user-round.svg +1 -0
- package/dist/assets/Icons/stack-overflow-neutral.svg +1 -0
- package/dist/assets/Icons/stack-overflow.svg +1 -0
- package/dist/assets/Icons/star.svg +1 -0
- package/dist/assets/Icons/sun.svg +1 -0
- package/dist/assets/Icons/syringe.svg +1 -0
- package/dist/assets/Icons/tag.svg +1 -0
- package/dist/assets/Icons/target.svg +1 -0
- package/dist/assets/Icons/teams-neutral.svg +1 -0
- package/dist/assets/Icons/teams.svg +1 -0
- package/dist/assets/Icons/telegram-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign.svg +1 -0
- package/dist/assets/Icons/telegram.svg +1 -0
- package/dist/assets/Icons/terminal.svg +1 -0
- package/dist/assets/Icons/test-policies.svg +1 -0
- package/dist/assets/Icons/threads-neutral.svg +1 -0
- package/dist/assets/Icons/threads.svg +1 -0
- package/dist/assets/Icons/thumbs-down.svg +1 -0
- package/dist/assets/Icons/thumbs-up.svg +1 -0
- package/dist/assets/Icons/tiktok-neutral.svg +1 -0
- package/dist/assets/Icons/tiktok.svg +1 -0
- package/dist/assets/Icons/tinder-neutral.svg +1 -0
- package/dist/assets/Icons/tinder.svg +1 -0
- package/dist/assets/Icons/trash.svg +1 -0
- package/dist/assets/Icons/trash2.svg +1 -0
- package/dist/assets/Icons/triangle-alert.svg +1 -0
- package/dist/assets/Icons/tumblr-neutral.svg +1 -0
- package/dist/assets/Icons/tumblr.svg +1 -0
- package/dist/assets/Icons/twitch-neutral.svg +1 -0
- package/dist/assets/Icons/twitch.svg +1 -0
- package/dist/assets/Icons/undo-dot.svg +1 -0
- package/dist/assets/Icons/undo.svg +1 -0
- package/dist/assets/Icons/undo2.svg +1 -0
- package/dist/assets/Icons/unplug.svg +1 -0
- package/dist/assets/Icons/user-check.svg +1 -0
- package/dist/assets/Icons/user-minus.svg +1 -0
- package/dist/assets/Icons/user-plus.svg +1 -0
- package/dist/assets/Icons/user-round-x.svg +1 -0
- package/dist/assets/Icons/user-round.svg +1 -0
- package/dist/assets/Icons/user.svg +1 -0
- package/dist/assets/Icons/username.svg +1 -0
- package/dist/assets/Icons/users-round.svg +1 -0
- package/dist/assets/Icons/users.svg +1 -0
- package/dist/assets/Icons/viber-neutral.svg +1 -0
- package/dist/assets/Icons/viber.svg +1 -0
- package/dist/assets/Icons/video.svg +1 -0
- package/dist/assets/Icons/vimeo-neutral.svg +1 -0
- package/dist/assets/Icons/vimeo.svg +1 -0
- package/dist/assets/Icons/vk-music-neutral.svg +1 -0
- package/dist/assets/Icons/vk-music.svg +1 -0
- package/dist/assets/Icons/vk-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign.svg +1 -0
- package/dist/assets/Icons/vk.svg +1 -0
- package/dist/assets/Icons/webhook-neutral.svg +1 -0
- package/dist/assets/Icons/webhook.svg +1 -0
- package/dist/assets/Icons/wechat-neutral.svg +1 -0
- package/dist/assets/Icons/wechat.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge.svg +1 -0
- package/dist/assets/Icons/whatsapp-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp.svg +1 -0
- package/dist/assets/Icons/workflow.svg +1 -0
- package/dist/assets/Icons/wrap-text.svg +1 -0
- package/dist/assets/Icons/wrench.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter-neutral.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter.svg +1 -0
- package/dist/assets/Icons/x.svg +1 -0
- package/dist/assets/Icons/xing-neutral.svg +1 -0
- package/dist/assets/Icons/xing.svg +1 -0
- package/dist/assets/Icons/yandex-music-neutral.svg +1 -0
- package/dist/assets/Icons/yandex-music.svg +1 -0
- package/dist/assets/Icons/yelp-neutral.svg +1 -0
- package/dist/assets/Icons/yelp.svg +1 -0
- package/dist/assets/Icons/youtube-music-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-music.svg +1 -0
- package/dist/assets/Icons/youtube-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts.svg +1 -0
- package/dist/assets/Icons/youtube.svg +1 -0
- package/dist/assets/Icons/zap.svg +1 -0
- package/dist/assets/Icons/zoom-in.svg +1 -0
- package/dist/assets/Icons/zoom-neutral.svg +1 -0
- package/dist/assets/Icons/zoom-out.svg +1 -0
- package/dist/assets/Icons/zoom.svg +1 -0
- package/dist/assets/Icons/zulip-neutral.svg +1 -0
- package/dist/assets/Icons/zulip.svg +1 -0
- package/dist/assets/Logos/wallarm.svg +1 -0
- package/dist/assets.json +4666 -0
- package/dist/project/README.md +265 -0
- package/dist/project/components/Accordion/README.md +354 -0
- package/dist/project/components/Accordion/preview.html +2 -0
- package/dist/project/components/Accordion/stories.js +12 -0
- package/dist/project/components/AgentAvatar/README.md +127 -0
- package/dist/project/components/AgentAvatar/preview.html +2 -0
- package/dist/project/components/AgentAvatar/stories.js +12 -0
- package/dist/project/components/AgentAvatar/stories.md +1805 -0
- package/dist/project/components/AgentGlyph/README.md +1182 -0
- package/dist/project/components/AgentGlyph/preview.html +2 -0
- package/dist/project/components/AgentGlyph/stories.js +12 -0
- package/dist/project/components/AgentLookBuilder/README.md +269 -0
- package/dist/project/components/AgentLookBuilder/preview.html +2 -0
- package/dist/project/components/AgentLookBuilder/stories.js +12 -0
- package/dist/project/components/Alert/README.md +492 -0
- package/dist/project/components/Alert/preview.html +2 -0
- package/dist/project/components/Alert/stories.js +12 -0
- package/dist/project/components/AnimatedBackground/README.md +124 -0
- package/dist/project/components/AnimatedBackground/preview.html +2 -0
- package/dist/project/components/AnimatedBackground/stories.js +12 -0
- package/dist/project/components/AppShell/README.md +75 -0
- package/dist/project/components/AppShell/preview.html +2 -0
- package/dist/project/components/AppShell/stories.js +28 -0
- package/dist/project/components/AppShell/stories.md +2878 -0
- package/dist/project/components/ApprovalCard/README.md +353 -0
- package/dist/project/components/ApprovalCard/preview.html +2 -0
- package/dist/project/components/ApprovalCard/stories.js +12 -0
- package/dist/project/components/AreaChart/README.md +673 -0
- package/dist/project/components/AreaChart/preview.html +2 -0
- package/dist/project/components/AreaChart/stories.js +12 -0
- package/dist/project/components/AssistantMessage/README.md +724 -0
- package/dist/project/components/AssistantMessage/preview.html +2 -0
- package/dist/project/components/AssistantMessage/stories.js +55 -0
- package/dist/project/components/Attribute/README.md +1174 -0
- package/dist/project/components/Attribute/preview.html +2 -0
- package/dist/project/components/Attribute/stories.js +12 -0
- package/dist/project/components/Avatar/README.md +416 -0
- package/dist/project/components/Avatar/preview.html +2 -0
- package/dist/project/components/Avatar/stories.js +12 -0
- package/dist/project/components/Badge/README.md +853 -0
- package/dist/project/components/Badge/preview.html +2 -0
- package/dist/project/components/Badge/stories.js +12 -0
- package/dist/project/components/Banner/README.md +341 -0
- package/dist/project/components/Banner/preview.html +2 -0
- package/dist/project/components/Banner/stories.js +12 -0
- package/dist/project/components/BarList/README.md +757 -0
- package/dist/project/components/BarList/preview.html +2 -0
- package/dist/project/components/BarList/stories.js +12 -0
- package/dist/project/components/Breadcrumbs/README.md +274 -0
- package/dist/project/components/Breadcrumbs/preview.html +2 -0
- package/dist/project/components/Breadcrumbs/stories.js +12 -0
- package/dist/project/components/BulkBar/README.md +19 -0
- package/dist/project/components/Button/README.md +467 -0
- package/dist/project/components/Button/preview.html +2 -0
- package/dist/project/components/Button/stories.js +12 -0
- package/dist/project/components/Calendar/README.md +654 -0
- package/dist/project/components/Calendar/preview.html +2 -0
- package/dist/project/components/Calendar/stories.js +12 -0
- package/dist/project/components/Card/README.md +367 -0
- package/dist/project/components/Card/preview.html +2 -0
- package/dist/project/components/Card/stories.js +12 -0
- package/dist/project/components/ChainOfThought/README.md +412 -0
- package/dist/project/components/ChainOfThought/preview.html +2 -0
- package/dist/project/components/ChainOfThought/stories.js +12 -0
- package/dist/project/components/Chart/README.md +224 -0
- package/dist/project/components/Chart/preview.html +2 -0
- package/dist/project/components/Chart/stories.js +12 -0
- package/dist/project/components/Chat/README.md +1244 -0
- package/dist/project/components/Chat/preview.html +2 -0
- package/dist/project/components/Chat/stories.js +12 -0
- package/dist/project/components/ChatInput/README.md +378 -0
- package/dist/project/components/ChatInput/preview.html +2 -0
- package/dist/project/components/ChatInput/stories.js +12 -0
- package/dist/project/components/ChatPermissions/README.md +218 -0
- package/dist/project/components/ChatPermissions/preview.html +2 -0
- package/dist/project/components/ChatPermissions/stories.js +12 -0
- package/dist/project/components/Checkbox/README.md +367 -0
- package/dist/project/components/Checkbox/preview.html +2 -0
- package/dist/project/components/Checkbox/stories.js +12 -0
- package/dist/project/components/Code/README.md +243 -0
- package/dist/project/components/Code/preview.html +2 -0
- package/dist/project/components/Code/stories.js +12 -0
- package/dist/project/components/CodeEditor/README.md +280 -0
- package/dist/project/components/CodeEditor/preview.html +2 -0
- package/dist/project/components/CodeEditor/stories.js +162 -0
- package/dist/project/components/CodeEditor/stories.md +1533 -0
- package/dist/project/components/CodeSnippet/README.md +1352 -0
- package/dist/project/components/CodeSnippet/preview.html +2 -0
- package/dist/project/components/CodeSnippet/stories.js +156 -0
- package/dist/project/components/ColumnChart/README.md +521 -0
- package/dist/project/components/ColumnChart/preview.html +2 -0
- package/dist/project/components/ColumnChart/stories.js +12 -0
- package/dist/project/components/Conversation/README.md +314 -0
- package/dist/project/components/Conversation/preview.html +2 -0
- package/dist/project/components/Conversation/stories.js +12 -0
- package/dist/project/components/Copyable/README.md +406 -0
- package/dist/project/components/Copyable/preview.html +2 -0
- package/dist/project/components/Copyable/stories.js +12 -0
- package/dist/project/components/Country/README.md +226 -0
- package/dist/project/components/Country/preview.html +2 -0
- package/dist/project/components/Country/stories.js +12 -0
- package/dist/project/components/Cover/preview.html +43 -0
- package/dist/project/components/DateInput/README.md +458 -0
- package/dist/project/components/DateInput/preview.html +2 -0
- package/dist/project/components/DateInput/stories.js +12 -0
- package/dist/project/components/DateRangeInput/README.md +412 -0
- package/dist/project/components/DateRangeInput/preview.html +2 -0
- package/dist/project/components/DateRangeInput/stories.js +12 -0
- package/dist/project/components/Dialog/README.md +1140 -0
- package/dist/project/components/Dialog/preview.html +2 -0
- package/dist/project/components/Dialog/stories.js +12 -0
- package/dist/project/components/Drawer/README.md +1163 -0
- package/dist/project/components/Drawer/preview.html +2 -0
- package/dist/project/components/Drawer/stories.js +12 -0
- package/dist/project/components/DropdownMenu/README.md +678 -0
- package/dist/project/components/DropdownMenu/preview.html +2 -0
- package/dist/project/components/DropdownMenu/stories.js +12 -0
- package/dist/project/components/EmptyState/README.md +276 -0
- package/dist/project/components/EmptyState/preview.html +2 -0
- package/dist/project/components/EmptyState/stories.js +12 -0
- package/dist/project/components/FeedbackPulse/README.md +125 -0
- package/dist/project/components/FeedbackPulse/preview.html +2 -0
- package/dist/project/components/FeedbackPulse/stories.js +12 -0
- package/dist/project/components/Field/README.md +676 -0
- package/dist/project/components/Field/preview.html +2 -0
- package/dist/project/components/Field/stories.js +12 -0
- package/dist/project/components/FileUpload/README.md +544 -0
- package/dist/project/components/FileUpload/preview.html +2 -0
- package/dist/project/components/FileUpload/stories.js +12 -0
- package/dist/project/components/FilterCascade/README.md +348 -0
- package/dist/project/components/FilterCascade/preview.html +2 -0
- package/dist/project/components/FilterCascade/stories.js +12 -0
- package/dist/project/components/FilterDropdown/README.md +542 -0
- package/dist/project/components/FilterDropdown/preview.html +2 -0
- package/dist/project/components/FilterDropdown/stories.js +12 -0
- package/dist/project/components/FilterInput/README.md +416 -0
- package/dist/project/components/FilterInput/preview.html +2 -0
- package/dist/project/components/FilterInput/stories.js +12 -0
- package/dist/project/components/FilterInput/stories.md +6682 -0
- package/dist/project/components/Flex/README.md +225 -0
- package/dist/project/components/Flex/preview.html +2 -0
- package/dist/project/components/Flex/stories.js +12 -0
- package/dist/project/components/FormatDateTime/README.md +315 -0
- package/dist/project/components/FormatDateTime/preview.html +2 -0
- package/dist/project/components/FormatDateTime/stories.js +12 -0
- package/dist/project/components/FormatNumber/README.md +317 -0
- package/dist/project/components/FormatNumber/preview.html +2 -0
- package/dist/project/components/FormatNumber/stories.js +12 -0
- package/dist/project/components/Heading/README.md +240 -0
- package/dist/project/components/Heading/preview.html +2 -0
- package/dist/project/components/Heading/stories.js +12 -0
- package/dist/project/components/HorizontalBarStack/README.md +281 -0
- package/dist/project/components/HorizontalBarStack/preview.html +2 -0
- package/dist/project/components/HorizontalBarStack/stories.js +12 -0
- package/dist/project/components/HttpMethod/README.md +137 -0
- package/dist/project/components/HttpMethod/preview.html +2 -0
- package/dist/project/components/HttpMethod/stories.js +12 -0
- package/dist/project/components/ImageCropper/README.md +332 -0
- package/dist/project/components/ImageCropper/preview.html +2 -0
- package/dist/project/components/ImageCropper/stories.js +33 -0
- package/dist/project/components/Indicator/README.md +110 -0
- package/dist/project/components/Indicator/preview.html +2 -0
- package/dist/project/components/Indicator/stories.js +12 -0
- package/dist/project/components/InlineEdit/README.md +977 -0
- package/dist/project/components/InlineEdit/preview.html +2 -0
- package/dist/project/components/InlineEdit/stories.js +12 -0
- package/dist/project/components/Input/README.md +187 -0
- package/dist/project/components/Input/preview.html +2 -0
- package/dist/project/components/Input/stories.js +12 -0
- package/dist/project/components/InputGroup/README.md +423 -0
- package/dist/project/components/InputGroup/preview.html +2 -0
- package/dist/project/components/InputGroup/stories.js +12 -0
- package/dist/project/components/InputOTP/README.md +201 -0
- package/dist/project/components/InputOTP/preview.html +2 -0
- package/dist/project/components/InputOTP/stories.js +12 -0
- package/dist/project/components/Ip/README.md +226 -0
- package/dist/project/components/Ip/preview.html +2 -0
- package/dist/project/components/Ip/stories.js +12 -0
- package/dist/project/components/Kbd/README.md +126 -0
- package/dist/project/components/Kbd/preview.html +2 -0
- package/dist/project/components/Kbd/stories.js +12 -0
- package/dist/project/components/LineChart/README.md +1479 -0
- package/dist/project/components/LineChart/preview.html +2 -0
- package/dist/project/components/LineChart/stories.js +12 -0
- package/dist/project/components/Link/README.md +160 -0
- package/dist/project/components/Link/preview.html +2 -0
- package/dist/project/components/Link/stories.js +12 -0
- package/dist/project/components/List/README.md +181 -0
- package/dist/project/components/List/preview.html +2 -0
- package/dist/project/components/List/stories.js +12 -0
- package/dist/project/components/Loader/README.md +145 -0
- package/dist/project/components/Loader/preview.html +2 -0
- package/dist/project/components/Loader/stories.js +12 -0
- package/dist/project/components/Logo/README.md +183 -0
- package/dist/project/components/Logo/preview.html +2 -0
- package/dist/project/components/Logo/stories.js +12 -0
- package/dist/project/components/MessageActions/README.md +255 -0
- package/dist/project/components/MessageActions/preview.html +2 -0
- package/dist/project/components/MessageActions/stories.js +12 -0
- package/dist/project/components/Metric/README.md +324 -0
- package/dist/project/components/Metric/preview.html +2 -0
- package/dist/project/components/Metric/stories.js +12 -0
- package/dist/project/components/NavRail/README.md +25 -0
- package/dist/project/components/NotificationCenter/README.md +91 -0
- package/dist/project/components/NotificationCenter/preview.html +2 -0
- package/dist/project/components/NotificationCenter/stories.js +12 -0
- package/dist/project/components/NotificationCenter/stories.md +2170 -0
- package/dist/project/components/NumberInput/README.md +177 -0
- package/dist/project/components/NumberInput/preview.html +2 -0
- package/dist/project/components/NumberInput/stories.js +12 -0
- package/dist/project/components/NumericBadge/README.md +252 -0
- package/dist/project/components/NumericBadge/preview.html +2 -0
- package/dist/project/components/NumericBadge/stories.js +12 -0
- package/dist/project/components/OverflowList/README.md +324 -0
- package/dist/project/components/OverflowList/preview.html +2 -0
- package/dist/project/components/OverflowList/stories.js +12 -0
- package/dist/project/components/OverflowTooltip/README.md +421 -0
- package/dist/project/components/OverflowTooltip/preview.html +2 -0
- package/dist/project/components/OverflowTooltip/stories.js +12 -0
- package/dist/project/components/Overlay/README.md +95 -0
- package/dist/project/components/Overlay/preview.html +2 -0
- package/dist/project/components/Overlay/stories.js +12 -0
- package/dist/project/components/Overview/README.md +445 -0
- package/dist/project/components/Overview/preview.html +2 -0
- package/dist/project/components/Overview/stories.js +12 -0
- package/dist/project/components/Page/README.md +215 -0
- package/dist/project/components/Page/preview.html +2 -0
- package/dist/project/components/Page/stories.js +12 -0
- package/dist/project/components/Pagination/README.md +302 -0
- package/dist/project/components/Pagination/preview.html +2 -0
- package/dist/project/components/Pagination/stories.js +12 -0
- package/dist/project/components/ParameterPath/README.md +284 -0
- package/dist/project/components/ParameterPath/preview.html +2 -0
- package/dist/project/components/ParameterPath/stories.js +12 -0
- package/dist/project/components/PasswordComplexity/README.md +171 -0
- package/dist/project/components/PasswordComplexity/preview.html +2 -0
- package/dist/project/components/PasswordComplexity/stories.js +12 -0
- package/dist/project/components/PasswordInput/README.md +254 -0
- package/dist/project/components/PasswordInput/preview.html +2 -0
- package/dist/project/components/PasswordInput/stories.js +12 -0
- package/dist/project/components/PieChart/README.md +895 -0
- package/dist/project/components/PieChart/preview.html +2 -0
- package/dist/project/components/PieChart/stories.js +12 -0
- package/dist/project/components/Popover/README.md +282 -0
- package/dist/project/components/Popover/preview.html +2 -0
- package/dist/project/components/Popover/stories.js +12 -0
- package/dist/project/components/Progress/README.md +174 -0
- package/dist/project/components/Progress/preview.html +2 -0
- package/dist/project/components/Progress/stories.js +12 -0
- package/dist/project/components/Radio/README.md +264 -0
- package/dist/project/components/Radio/preview.html +2 -0
- package/dist/project/components/Radio/stories.js +12 -0
- package/dist/project/components/RemoteShell/README.md +1758 -0
- package/dist/project/components/RemoteShell/preview.html +2 -0
- package/dist/project/components/RemoteShell/stories.js +28 -0
- package/dist/project/components/Resizable/README.md +290 -0
- package/dist/project/components/Resizable/preview.html +2 -0
- package/dist/project/components/Resizable/stories.js +12 -0
- package/dist/project/components/ResponseCode/README.md +205 -0
- package/dist/project/components/ResponseCode/preview.html +2 -0
- package/dist/project/components/ResponseCode/stories.js +12 -0
- package/dist/project/components/ScrollArea/README.md +234 -0
- package/dist/project/components/ScrollArea/preview.html +2 -0
- package/dist/project/components/ScrollArea/stories.js +12 -0
- package/dist/project/components/SearchInput/README.md +158 -0
- package/dist/project/components/SearchInput/preview.html +2 -0
- package/dist/project/components/SearchInput/stories.js +12 -0
- package/dist/project/components/SearchModal/README.md +836 -0
- package/dist/project/components/SearchModal/preview.html +2 -0
- package/dist/project/components/SearchModal/stories.js +12 -0
- package/dist/project/components/SegmentedControl/README.md +382 -0
- package/dist/project/components/SegmentedControl/preview.html +2 -0
- package/dist/project/components/SegmentedControl/stories.js +12 -0
- package/dist/project/components/SegmentedTabs/README.md +390 -0
- package/dist/project/components/SegmentedTabs/preview.html +2 -0
- package/dist/project/components/SegmentedTabs/stories.js +12 -0
- package/dist/project/components/Select/README.md +1311 -0
- package/dist/project/components/Select/preview.html +2 -0
- package/dist/project/components/Select/stories.js +12 -0
- package/dist/project/components/Selection/README.md +648 -0
- package/dist/project/components/Selection/preview.html +2 -0
- package/dist/project/components/Selection/stories.js +12 -0
- package/dist/project/components/Separator/README.md +77 -0
- package/dist/project/components/Separator/preview.html +2 -0
- package/dist/project/components/Separator/stories.js +12 -0
- package/dist/project/components/Skeleton/README.md +358 -0
- package/dist/project/components/Skeleton/preview.html +2 -0
- package/dist/project/components/Skeleton/stories.js +12 -0
- package/dist/project/components/Slider/README.md +433 -0
- package/dist/project/components/Slider/preview.html +2 -0
- package/dist/project/components/Slider/stories.js +12 -0
- package/dist/project/components/SplashScreen/README.md +192 -0
- package/dist/project/components/SplashScreen/preview.html +2 -0
- package/dist/project/components/SplashScreen/stories.js +12 -0
- package/dist/project/components/SplitButton/README.md +402 -0
- package/dist/project/components/SplitButton/preview.html +2 -0
- package/dist/project/components/SplitButton/stories.js +12 -0
- package/dist/project/components/Stack/README.md +269 -0
- package/dist/project/components/Stack/preview.html +2 -0
- package/dist/project/components/Stack/stories.js +12 -0
- package/dist/project/components/Stepper/README.md +682 -0
- package/dist/project/components/Stepper/preview.html +2 -0
- package/dist/project/components/Stepper/stories.js +12 -0
- package/dist/project/components/Switch/README.md +236 -0
- package/dist/project/components/Switch/preview.html +2 -0
- package/dist/project/components/Switch/stories.js +12 -0
- package/dist/project/components/Table/README.md +471 -0
- package/dist/project/components/Table/preview.html +2 -0
- package/dist/project/components/Table/stories.js +12 -0
- package/dist/project/components/Table/stories.md +3697 -0
- package/dist/project/components/Tabs/README.md +443 -0
- package/dist/project/components/Tabs/preview.html +2 -0
- package/dist/project/components/Tabs/stories.js +12 -0
- package/dist/project/components/Tag/README.md +324 -0
- package/dist/project/components/Tag/preview.html +2 -0
- package/dist/project/components/Tag/stories.js +12 -0
- package/dist/project/components/Text/README.md +200 -0
- package/dist/project/components/Text/preview.html +2 -0
- package/dist/project/components/Text/stories.js +12 -0
- package/dist/project/components/Textarea/README.md +273 -0
- package/dist/project/components/Textarea/preview.html +2 -0
- package/dist/project/components/Textarea/stories.js +12 -0
- package/dist/project/components/TimeInput/README.md +359 -0
- package/dist/project/components/TimeInput/preview.html +2 -0
- package/dist/project/components/TimeInput/stories.js +12 -0
- package/dist/project/components/Timeline/README.md +204 -0
- package/dist/project/components/Timeline/preview.html +2 -0
- package/dist/project/components/Timeline/stories.js +12 -0
- package/dist/project/components/Toast/README.md +718 -0
- package/dist/project/components/Toast/preview.html +2 -0
- package/dist/project/components/Toast/stories.js +12 -0
- package/dist/project/components/ToggleButton/README.md +292 -0
- package/dist/project/components/ToggleButton/preview.html +2 -0
- package/dist/project/components/ToggleButton/stories.js +12 -0
- package/dist/project/components/Tooltip/README.md +199 -0
- package/dist/project/components/Tooltip/preview.html +2 -0
- package/dist/project/components/Tooltip/stories.js +12 -0
- package/dist/project/components/TopHeader/README.md +21 -0
- package/dist/project/components/Tour/README.md +532 -0
- package/dist/project/components/Tour/preview.html +2 -0
- package/dist/project/components/Tour/stories.js +12 -0
- package/dist/project/components/Tree/README.md +450 -0
- package/dist/project/components/Tree/preview.html +2 -0
- package/dist/project/components/Tree/stories.js +12 -0
- package/dist/project/components/TreeView/README.md +531 -0
- package/dist/project/components/TreeView/preview.html +2 -0
- package/dist/project/components/TreeView/stories.js +12 -0
- package/dist/project/components/UTILITIES.md +647 -0
- package/dist/project/components/UserMessage/README.md +166 -0
- package/dist/project/components/UserMessage/preview.html +2 -0
- package/dist/project/components/UserMessage/stories.js +12 -0
- package/dist/project/components/UtilityPage/README.md +147 -0
- package/dist/project/components/UtilityPage/preview.html +2 -0
- package/dist/project/components/UtilityPage/stories.js +12 -0
- package/dist/project/components/WallyAssistant/README.md +1380 -0
- package/dist/project/components/WallyAssistant/preview.html +2 -0
- package/dist/project/components/WallyAssistant/stories.js +12 -0
- package/dist/project/components/WallyIcon/README.md +130 -0
- package/dist/project/components/WallyIcon/preview.html +2 -0
- package/dist/project/components/WallyIcon/stories.js +12 -0
- package/dist/project/components/WallySkeleton/README.md +96 -0
- package/dist/project/components/WallySkeleton/preview.html +2 -0
- package/dist/project/components/WallySkeleton/stories.js +12 -0
- package/dist/project/components/bundle.css +18734 -0
- package/dist/project/components/bundle.js +167 -0
- package/dist/project/components/index.d.ts +27226 -0
- package/dist/project/design-system.json +35 -0
- package/dist/project/fonts/Geist-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistMono-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistPixel-Square.woff2 +0 -0
- package/dist/project/sampler.dc.html +238 -0
- package/dist/project/tokens.css +1395 -0
- package/dist/project/tokens.json +5235 -0
- package/dist/wallarm-sampler.dc.html +239 -0
- package/package.json +67 -3
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
A stacked or overlaid area chart in the SimpleCharts family — ideal for showing cumulative totals or comparing volume across series over time. All interactions (hover crosshair, tooltip, legend click-to-filter, drag-to-zoom) come from the shared LineChart infrastructure and work identically.
|
|
2
|
+
|
|
3
|
+
## Props as canvas attributes
|
|
4
|
+
|
|
5
|
+
Use kebab-case attribute names. Pass non-string values through renderVals holes, including booleans. The full emitted API is in `components/index.d.ts`.
|
|
6
|
+
|
|
7
|
+
| Attribute | Type | Required | Default | Description |
|
|
8
|
+
| --- | --- | --- | --- | --- |
|
|
9
|
+
| `data` | `T[]` | yes | — | Long-form data array, one entry per X position. |
|
|
10
|
+
| `series` | `complex` | yes | — | Schema describing each area drawn from `data`. |
|
|
11
|
+
| `x-key` | `Extract<keyof T, string>` | yes | — | Key on each datum used as the X-axis value. |
|
|
12
|
+
| `variant` | `"standard" \| "stacked"` | no | `stacked` | Area chart variant. - `'stacked'` (default): series stack cumulatively — each band starts where the previous ends. - `'standard'`: series overlap from the baseline with transparency. |
|
|
13
|
+
| `active-key` | `string \| null \| undefined` | no | — | Controlled hover key — pass alongside `onActiveKeyChange` for cross-chart sync. |
|
|
14
|
+
| `on-active-key-change` | `((key: string \| null) => void) \| undefined` | no | — | |
|
|
15
|
+
| `filtered-keys` | `string[] \| undefined` | no | — | Controlled set of `series.key` values to hide from the plot. |
|
|
16
|
+
| `on-zoom-change` | `complex` | no | — | Fired after the user confirms a brush selection. |
|
|
17
|
+
| `sync-id` | `string \| number \| undefined` | no | — | Charts that share a `syncId` synchronise their tooltip cursor. |
|
|
18
|
+
| `sync-method` | `complex` | no | — | How sibling `syncId` charts match X positions. |
|
|
19
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
20
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
21
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
22
|
+
| `id` | `string \| undefined` | no | — | |
|
|
23
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
24
|
+
| `title` | `string \| undefined` | no | — | |
|
|
25
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
26
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
27
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
28
|
+
|
|
29
|
+
## Sub-components
|
|
30
|
+
|
|
31
|
+
- `WallarmDS.AreaChartArea` — `AreaChartAreaProps` in the declaration bundle.
|
|
32
|
+
- `WallarmDS.AreaChartBody` — `AreaChartBodyProps` in the declaration bundle.
|
|
33
|
+
|
|
34
|
+
## Stories
|
|
35
|
+
|
|
36
|
+
### Default
|
|
37
|
+
|
|
38
|
+
Three series stacked cumulatively — each band starts where the previous ends, showing the
|
|
39
|
+
total volume as the top edge of the topmost area.
|
|
40
|
+
|
|
41
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#Default
|
|
42
|
+
|
|
43
|
+
### Standard
|
|
44
|
+
|
|
45
|
+
Standard (overlaid) variant — each series draws from the baseline independently with
|
|
46
|
+
transparency, useful when stacking would be misleading.
|
|
47
|
+
|
|
48
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#Standard
|
|
49
|
+
|
|
50
|
+
### WithMetric
|
|
51
|
+
|
|
52
|
+
The metric variant: `Metric` bricks sit to the left of the legend in a row between the
|
|
53
|
+
header and the plot.
|
|
54
|
+
|
|
55
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#WithMetric
|
|
56
|
+
|
|
57
|
+
### Filterable
|
|
58
|
+
|
|
59
|
+
Clicking a legend row isolates that series and clicking another adds it back.
|
|
60
|
+
|
|
61
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#Filterable
|
|
62
|
+
|
|
63
|
+
### Zoom
|
|
64
|
+
|
|
65
|
+
Drag across the plot to choose a range, then confirm in the popover.
|
|
66
|
+
|
|
67
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#Zoom
|
|
68
|
+
|
|
69
|
+
### Loading
|
|
70
|
+
|
|
71
|
+
Loading skeleton state composed from the same primitives as a populated chart.
|
|
72
|
+
|
|
73
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#Loading
|
|
74
|
+
|
|
75
|
+
### Empty
|
|
76
|
+
|
|
77
|
+
Empty state — `LineChartEmpty` keeps the dashed plot frame and puts the message inside it.
|
|
78
|
+
|
|
79
|
+
Source: SimpleCharts/AreaChart/AreaChart.stories.tsx#Empty
|
|
80
|
+
|
|
81
|
+
## Story sources
|
|
82
|
+
|
|
83
|
+
### SimpleCharts/AreaChart/AreaChart.stories.tsx
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
87
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
88
|
+
import { FilterX, ZoomOut } from '../../../icons';
|
|
89
|
+
import { formatFullNumber } from '../../../utils/abbreviateNumber';
|
|
90
|
+
import { Button } from '../../Button';
|
|
91
|
+
import { Skeleton } from '../../Skeleton';
|
|
92
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../../Tooltip';
|
|
93
|
+
import { Chart } from '../Chart/Chart';
|
|
94
|
+
import { ChartActions } from '../Chart/ChartActions';
|
|
95
|
+
import { ChartHeader } from '../Chart/ChartHeader';
|
|
96
|
+
import { ChartTitle } from '../Chart/ChartTitle';
|
|
97
|
+
import { useChartTimeFormatters } from '../hooks/useChartTimeFormatters';
|
|
98
|
+
import type { LineChartSeries, LineChartZoomRange } from '../LineChart/LineChartContext';
|
|
99
|
+
import { LineChartEmpty } from '../LineChart/LineChartEmpty';
|
|
100
|
+
import { LineChartGrid } from '../LineChart/LineChartGrid';
|
|
101
|
+
import { LineChartHoverPopoverDot } from '../LineChart/LineChartHoverPopoverDot';
|
|
102
|
+
import { LineChartLegend } from '../LineChart/LineChartLegend';
|
|
103
|
+
import { LineChartLegendItem } from '../LineChart/LineChartLegendItem';
|
|
104
|
+
import { LineChartTooltip } from '../LineChart/LineChartTooltip';
|
|
105
|
+
import { LineChartXAxis } from '../LineChart/LineChartXAxis';
|
|
106
|
+
import { LineChartYAxis } from '../LineChart/LineChartYAxis';
|
|
107
|
+
import { LineChartZoomBrush } from '../LineChart/LineChartZoomBrush';
|
|
108
|
+
import { formatRange } from '../LineChart/lib/formatRange';
|
|
109
|
+
import { dailyData60, hourlyData24, multiSeries } from '../LineChart/lib/sampleData';
|
|
110
|
+
import { MetricDelta } from '../Metric/MetricDelta';
|
|
111
|
+
import { MetricHeader } from '../Metric/MetricHeader';
|
|
112
|
+
import { MetricValue } from '../Metric/MetricValue';
|
|
113
|
+
import { AreaChart } from './AreaChart';
|
|
114
|
+
import { AreaChartArea } from './AreaChartArea';
|
|
115
|
+
import { AreaChartBody } from './AreaChartBody';
|
|
116
|
+
|
|
117
|
+
const formatYTick = (value: unknown) => formatFullNumber(Number(value));
|
|
118
|
+
|
|
119
|
+
const DESCRIPTION = [
|
|
120
|
+
'A stacked or overlaid area chart in the SimpleCharts family — ideal for showing cumulative totals or comparing volume across series over time.',
|
|
121
|
+
'All interactions (hover crosshair, tooltip, legend click-to-filter, drag-to-zoom) come from the shared LineChart infrastructure and work identically.',
|
|
122
|
+
].join(' ');
|
|
123
|
+
|
|
124
|
+
const meta = {
|
|
125
|
+
title: 'Data Display/SimpleCharts/AreaChart',
|
|
126
|
+
component: AreaChart,
|
|
127
|
+
subcomponents: {
|
|
128
|
+
AreaChartBody,
|
|
129
|
+
AreaChartArea,
|
|
130
|
+
},
|
|
131
|
+
parameters: {
|
|
132
|
+
layout: 'centered',
|
|
133
|
+
design: {
|
|
134
|
+
type: 'figma',
|
|
135
|
+
url: 'https://www.figma.com/design/VKb5gW46uSGw0rqrhZsbXT/WADS-Components?node-id=11973-4142&m=dev',
|
|
136
|
+
},
|
|
137
|
+
docs: { description: { component: DESCRIPTION } },
|
|
138
|
+
},
|
|
139
|
+
tags: ['autodocs'],
|
|
140
|
+
} satisfies Meta<typeof AreaChart>;
|
|
141
|
+
|
|
142
|
+
export default meta;
|
|
143
|
+
|
|
144
|
+
const MultiLegend = ({ series = multiSeries }: { series?: LineChartSeries[] }) => (
|
|
145
|
+
<LineChartLegend>
|
|
146
|
+
{series.map(s => (
|
|
147
|
+
<LineChartLegendItem key={s.key} seriesKey={s.key}>
|
|
148
|
+
<LineChartHoverPopoverDot color={s.color} />
|
|
149
|
+
<span className='text-xs font-mono text-text-primary'>{s.label}</span>
|
|
150
|
+
</LineChartLegendItem>
|
|
151
|
+
))}
|
|
152
|
+
</LineChartLegend>
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Three series stacked cumulatively — each band starts where the previous ends, showing the
|
|
157
|
+
* total volume as the top edge of the topmost area.
|
|
158
|
+
*/
|
|
159
|
+
export const Default: StoryFn<typeof meta> = () => {
|
|
160
|
+
const { formatHour, formatHourWithTimezone } = useChartTimeFormatters();
|
|
161
|
+
return (
|
|
162
|
+
<div className='w-560'>
|
|
163
|
+
<Chart data-testid='chart'>
|
|
164
|
+
<ChartHeader>
|
|
165
|
+
<ChartTitle>Traffic breakdown (stacked)</ChartTitle>
|
|
166
|
+
</ChartHeader>
|
|
167
|
+
<AreaChart
|
|
168
|
+
data-testid='area-chart'
|
|
169
|
+
data={hourlyData24}
|
|
170
|
+
series={multiSeries}
|
|
171
|
+
xKey='timestamp'
|
|
172
|
+
>
|
|
173
|
+
<MultiLegend />
|
|
174
|
+
<AreaChartBody>
|
|
175
|
+
<LineChartGrid />
|
|
176
|
+
<LineChartXAxis tickFormatter={formatHour} minTickGap={32} />
|
|
177
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
178
|
+
{multiSeries.map(s => (
|
|
179
|
+
<AreaChartArea key={s.key} seriesKey={s.key} />
|
|
180
|
+
))}
|
|
181
|
+
<LineChartTooltip xTickFormatter={formatHourWithTimezone} />
|
|
182
|
+
</AreaChartBody>
|
|
183
|
+
</AreaChart>
|
|
184
|
+
</Chart>
|
|
185
|
+
</div>
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Standard (overlaid) variant — each series draws from the baseline independently with
|
|
191
|
+
* transparency, useful when stacking would be misleading.
|
|
192
|
+
*/
|
|
193
|
+
export const Standard: StoryFn<typeof meta> = () => {
|
|
194
|
+
const { formatHour, formatHourWithTimezone } = useChartTimeFormatters();
|
|
195
|
+
return (
|
|
196
|
+
<div className='w-560'>
|
|
197
|
+
<Chart>
|
|
198
|
+
<ChartHeader>
|
|
199
|
+
<ChartTitle>Traffic breakdown (standard)</ChartTitle>
|
|
200
|
+
</ChartHeader>
|
|
201
|
+
<AreaChart data={hourlyData24} series={multiSeries} xKey='timestamp' variant='standard'>
|
|
202
|
+
<MultiLegend />
|
|
203
|
+
<AreaChartBody>
|
|
204
|
+
<LineChartGrid />
|
|
205
|
+
<LineChartXAxis tickFormatter={formatHour} minTickGap={32} />
|
|
206
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
207
|
+
{multiSeries.map(s => (
|
|
208
|
+
<AreaChartArea key={s.key} seriesKey={s.key} />
|
|
209
|
+
))}
|
|
210
|
+
<LineChartTooltip xTickFormatter={formatHourWithTimezone} />
|
|
211
|
+
</AreaChartBody>
|
|
212
|
+
</AreaChart>
|
|
213
|
+
</Chart>
|
|
214
|
+
</div>
|
|
215
|
+
);
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The metric variant: `Metric` bricks sit to the left of the legend in a row between the
|
|
220
|
+
* header and the plot.
|
|
221
|
+
*/
|
|
222
|
+
export const WithMetric: StoryFn<typeof meta> = () => {
|
|
223
|
+
const { formatHour, formatHourWithTimezone } = useChartTimeFormatters();
|
|
224
|
+
return (
|
|
225
|
+
<div className='w-800'>
|
|
226
|
+
<Chart>
|
|
227
|
+
<ChartHeader>
|
|
228
|
+
<ChartTitle>Requests per hour</ChartTitle>
|
|
229
|
+
</ChartHeader>
|
|
230
|
+
<AreaChart data={hourlyData24} series={multiSeries} xKey='timestamp'>
|
|
231
|
+
<div className='flex items-center justify-between pr-8'>
|
|
232
|
+
<MetricHeader className='px-16'>
|
|
233
|
+
<MetricValue>{2903}</MetricValue>
|
|
234
|
+
<MetricDelta value={10} trend='up' sentiment='negative' />
|
|
235
|
+
</MetricHeader>
|
|
236
|
+
<MultiLegend />
|
|
237
|
+
</div>
|
|
238
|
+
<AreaChartBody>
|
|
239
|
+
<LineChartGrid />
|
|
240
|
+
<LineChartXAxis tickFormatter={formatHour} minTickGap={32} />
|
|
241
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
242
|
+
{multiSeries.map(s => (
|
|
243
|
+
<AreaChartArea key={s.key} seriesKey={s.key} />
|
|
244
|
+
))}
|
|
245
|
+
<LineChartTooltip xTickFormatter={formatHourWithTimezone} />
|
|
246
|
+
</AreaChartBody>
|
|
247
|
+
</AreaChart>
|
|
248
|
+
</Chart>
|
|
249
|
+
</div>
|
|
250
|
+
);
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Clicking a legend row isolates that series and clicking another adds it back.
|
|
255
|
+
*/
|
|
256
|
+
export const Filterable: StoryFn<typeof meta> = () => {
|
|
257
|
+
const { formatHour, formatHourWithTimezone } = useChartTimeFormatters();
|
|
258
|
+
const [hidden, setHidden] = useState<string[]>([]);
|
|
259
|
+
const toggle = (key: string) => {
|
|
260
|
+
setHidden(prev => {
|
|
261
|
+
if (prev.length === 0) return multiSeries.filter(s => s.key !== key).map(s => s.key);
|
|
262
|
+
if (prev.includes(key)) return prev.filter(k => k !== key);
|
|
263
|
+
return [...prev, key];
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
const filtered = hidden.length > 0;
|
|
267
|
+
|
|
268
|
+
return (
|
|
269
|
+
<div className='w-560'>
|
|
270
|
+
<Chart data-testid='chart'>
|
|
271
|
+
<ChartHeader>
|
|
272
|
+
<ChartTitle>Click a row to isolate, click another to add</ChartTitle>
|
|
273
|
+
<ChartActions alwaysVisible={filtered}>
|
|
274
|
+
{filtered && (
|
|
275
|
+
<Tooltip>
|
|
276
|
+
<TooltipTrigger asChild>
|
|
277
|
+
<Button
|
|
278
|
+
variant='ghost'
|
|
279
|
+
color='neutral'
|
|
280
|
+
size='small'
|
|
281
|
+
aria-label='Clear filter'
|
|
282
|
+
onClick={() => setHidden([])}
|
|
283
|
+
>
|
|
284
|
+
<FilterX />
|
|
285
|
+
</Button>
|
|
286
|
+
</TooltipTrigger>
|
|
287
|
+
<TooltipContent>Remove filter</TooltipContent>
|
|
288
|
+
</Tooltip>
|
|
289
|
+
)}
|
|
290
|
+
</ChartActions>
|
|
291
|
+
</ChartHeader>
|
|
292
|
+
<AreaChart
|
|
293
|
+
data-testid='area-chart'
|
|
294
|
+
data={hourlyData24}
|
|
295
|
+
series={multiSeries}
|
|
296
|
+
xKey='timestamp'
|
|
297
|
+
filteredKeys={hidden}
|
|
298
|
+
>
|
|
299
|
+
<LineChartLegend>
|
|
300
|
+
{multiSeries.map(s => (
|
|
301
|
+
<Tooltip key={s.key}>
|
|
302
|
+
<TooltipTrigger asChild>
|
|
303
|
+
<LineChartLegendItem seriesKey={s.key} onClick={() => toggle(s.key)}>
|
|
304
|
+
<LineChartHoverPopoverDot color={s.color} />
|
|
305
|
+
<span className='text-xs font-mono text-text-primary'>{s.label}</span>
|
|
306
|
+
</LineChartLegendItem>
|
|
307
|
+
</TooltipTrigger>
|
|
308
|
+
<TooltipContent>
|
|
309
|
+
{hidden.includes(s.key) ? 'Remove filter' : 'Click to filter'}
|
|
310
|
+
</TooltipContent>
|
|
311
|
+
</Tooltip>
|
|
312
|
+
))}
|
|
313
|
+
</LineChartLegend>
|
|
314
|
+
<AreaChartBody>
|
|
315
|
+
<LineChartGrid />
|
|
316
|
+
<LineChartXAxis tickFormatter={formatHour} minTickGap={32} />
|
|
317
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
318
|
+
{multiSeries.map(s => (
|
|
319
|
+
<AreaChartArea key={s.key} seriesKey={s.key} />
|
|
320
|
+
))}
|
|
321
|
+
<LineChartTooltip xTickFormatter={formatHourWithTimezone} />
|
|
322
|
+
</AreaChartBody>
|
|
323
|
+
</AreaChart>
|
|
324
|
+
</Chart>
|
|
325
|
+
</div>
|
|
326
|
+
);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
const ZoomControlledChart = () => {
|
|
330
|
+
const { formatDate, formatDateWithTimezone } = useChartTimeFormatters();
|
|
331
|
+
const [visibleData, setVisibleData] = useState(dailyData60);
|
|
332
|
+
const handleZoom = useCallback((range: LineChartZoomRange | null) => {
|
|
333
|
+
if (!range) {
|
|
334
|
+
setVisibleData(dailyData60);
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
setVisibleData(prev => prev.slice(range.fromIndex, range.toIndex + 1));
|
|
338
|
+
}, []);
|
|
339
|
+
const isZoomed = visibleData !== dailyData60;
|
|
340
|
+
const formatDateOnlyRange = useMemo(() => formatRange(formatDate), [formatDate]);
|
|
341
|
+
|
|
342
|
+
const chartRef = useRef<HTMLDivElement>(null);
|
|
343
|
+
|
|
344
|
+
useEffect(() => {
|
|
345
|
+
if (!isZoomed) return;
|
|
346
|
+
const handleKey = (event: KeyboardEvent) => {
|
|
347
|
+
if (event.key !== 'Escape') return;
|
|
348
|
+
const target = event.target;
|
|
349
|
+
const isAmbient =
|
|
350
|
+
target === null || target === document.body || target === document.documentElement;
|
|
351
|
+
const isInChart = target instanceof Node && chartRef.current?.contains(target);
|
|
352
|
+
if (!isAmbient && !isInChart) return;
|
|
353
|
+
event.preventDefault();
|
|
354
|
+
handleZoom(null);
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
window.addEventListener('keydown', handleKey);
|
|
358
|
+
|
|
359
|
+
return () => window.removeEventListener('keydown', handleKey);
|
|
360
|
+
}, [isZoomed, handleZoom]);
|
|
361
|
+
|
|
362
|
+
return (
|
|
363
|
+
<Chart ref={chartRef}>
|
|
364
|
+
<ChartHeader>
|
|
365
|
+
<ChartTitle>Drag on the plot, then click "Zoom in" — Esc to cancel</ChartTitle>
|
|
366
|
+
<ChartActions alwaysVisible={isZoomed}>
|
|
367
|
+
{isZoomed && (
|
|
368
|
+
<Tooltip>
|
|
369
|
+
<TooltipTrigger asChild>
|
|
370
|
+
<Button
|
|
371
|
+
variant='ghost'
|
|
372
|
+
color='neutral'
|
|
373
|
+
size='small'
|
|
374
|
+
aria-label='Reset time selection'
|
|
375
|
+
onClick={() => handleZoom(null)}
|
|
376
|
+
>
|
|
377
|
+
<ZoomOut />
|
|
378
|
+
</Button>
|
|
379
|
+
</TooltipTrigger>
|
|
380
|
+
<TooltipContent>Reset time selection</TooltipContent>
|
|
381
|
+
</Tooltip>
|
|
382
|
+
)}
|
|
383
|
+
</ChartActions>
|
|
384
|
+
</ChartHeader>
|
|
385
|
+
<AreaChart data={visibleData} series={multiSeries} xKey='timestamp' onZoomChange={handleZoom}>
|
|
386
|
+
<MultiLegend />
|
|
387
|
+
<AreaChartBody height={220}>
|
|
388
|
+
<LineChartGrid />
|
|
389
|
+
<LineChartXAxis tickFormatter={formatDate} minTickGap={48} />
|
|
390
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
391
|
+
{multiSeries.map(s => (
|
|
392
|
+
<AreaChartArea key={s.key} seriesKey={s.key} />
|
|
393
|
+
))}
|
|
394
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
395
|
+
<LineChartZoomBrush formatRange={formatDateOnlyRange} />
|
|
396
|
+
</AreaChartBody>
|
|
397
|
+
</AreaChart>
|
|
398
|
+
</Chart>
|
|
399
|
+
);
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Drag across the plot to choose a range, then confirm in the popover.
|
|
404
|
+
*/
|
|
405
|
+
export const Zoom: StoryFn<typeof meta> = () => (
|
|
406
|
+
<div className='w-560'>
|
|
407
|
+
<ZoomControlledChart />
|
|
408
|
+
</div>
|
|
409
|
+
);
|
|
410
|
+
|
|
411
|
+
const LoadingLegend = ({ orientation }: { orientation?: 'horizontal' | 'vertical' }) => (
|
|
412
|
+
<LineChartLegend orientation={orientation}>
|
|
413
|
+
{[0, 1, 2].map(i => (
|
|
414
|
+
<LineChartLegendItem key={i} seriesKey={`skeleton-${i}`}>
|
|
415
|
+
<Skeleton width='72px' height='20px' rounded={4} />
|
|
416
|
+
</LineChartLegendItem>
|
|
417
|
+
))}
|
|
418
|
+
</LineChartLegend>
|
|
419
|
+
);
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Loading skeleton state composed from the same primitives as a populated chart.
|
|
423
|
+
*/
|
|
424
|
+
export const Loading: StoryFn<typeof meta> = () => (
|
|
425
|
+
<div className='w-560'>
|
|
426
|
+
<Chart aria-busy='true' aria-live='polite'>
|
|
427
|
+
<ChartHeader>
|
|
428
|
+
<ChartTitle>Loading</ChartTitle>
|
|
429
|
+
</ChartHeader>
|
|
430
|
+
<LoadingLegend />
|
|
431
|
+
<LineChartEmpty />
|
|
432
|
+
</Chart>
|
|
433
|
+
</div>
|
|
434
|
+
);
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Empty state — `LineChartEmpty` keeps the dashed plot frame and puts the message inside it.
|
|
438
|
+
*/
|
|
439
|
+
export const Empty: StoryFn<typeof meta> = () => (
|
|
440
|
+
<div className='w-560'>
|
|
441
|
+
<Chart>
|
|
442
|
+
<ChartHeader>
|
|
443
|
+
<ChartTitle>No data</ChartTitle>
|
|
444
|
+
</ChartHeader>
|
|
445
|
+
<LineChartEmpty>No data</LineChartEmpty>
|
|
446
|
+
</Chart>
|
|
447
|
+
</div>
|
|
448
|
+
);
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### ../utils/abbreviateNumber.ts
|
|
452
|
+
|
|
453
|
+
```tsx
|
|
454
|
+
/**
|
|
455
|
+
* Suffix tiers: [minAbsValue, divisor, suffix].
|
|
456
|
+
* Sorted descending so the first match wins.
|
|
457
|
+
*
|
|
458
|
+
* Boundaries use "rounding-aware" thresholds:
|
|
459
|
+
* 999,500 rounds to 1M (not 999.5k), 999,499 stays 999k.
|
|
460
|
+
*/
|
|
461
|
+
const tiers: [threshold: number, divisor: number, suffix: string][] = [
|
|
462
|
+
[999_500_000_000, 1e12, 'T'],
|
|
463
|
+
[999_500_000, 1e9, 'B'],
|
|
464
|
+
[999_500, 1e6, 'M'],
|
|
465
|
+
[1_000, 1e3, 'k'],
|
|
466
|
+
];
|
|
467
|
+
|
|
468
|
+
const fullFormatter = new Intl.NumberFormat('en-US');
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Abbreviate a number for table cells: `12042` → `"12k"`, `59614283` → `"59.6M"`.
|
|
472
|
+
*
|
|
473
|
+
* Rules (from the Number display & abbreviation guide):
|
|
474
|
+
* - Suffixes: k (10³), M (10⁶), B (10⁹), T (10¹²) — k lowercase, rest uppercase, no space
|
|
475
|
+
* - Boundary: moves to next suffix when rounding would reach 1000×
|
|
476
|
+
* - Precision: ≥100 → 0 decimals; 10–99 → 1 decimal (drop .0); 1–9.9 → 1 decimal
|
|
477
|
+
* - Negative numbers supported
|
|
478
|
+
*/
|
|
479
|
+
export const abbreviateNumber = (value: number): string => {
|
|
480
|
+
if (value === 0) return '0';
|
|
481
|
+
|
|
482
|
+
const sign = value < 0 ? '-' : '';
|
|
483
|
+
const abs = Math.abs(value);
|
|
484
|
+
|
|
485
|
+
if (abs < 1_000) return String(value);
|
|
486
|
+
|
|
487
|
+
const tier = tiers.find(([threshold]) => abs >= threshold);
|
|
488
|
+
|
|
489
|
+
if (!tier) return String(value);
|
|
490
|
+
|
|
491
|
+
const [, divisor, suffix] = tier;
|
|
492
|
+
const scaled = abs / divisor;
|
|
493
|
+
|
|
494
|
+
// ≥100 → 0 decimals; <100 → 1 decimal (drop trailing .0)
|
|
495
|
+
const precision = scaled >= 100 ? 0 : 1;
|
|
496
|
+
const rounded = Math.round(scaled * 10 ** precision) / 10 ** precision;
|
|
497
|
+
const formatted = rounded % 1 === 0 ? String(rounded) : rounded.toFixed(1);
|
|
498
|
+
|
|
499
|
+
return `${sign}${formatted}${suffix}`;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Format a number with thousand separators for tooltips: `59614283` → `"59,614,283"`.
|
|
504
|
+
*/
|
|
505
|
+
export const formatFullNumber = (value: number): string => fullFormatter.format(value);
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Format a percentage with boundary safety:
|
|
509
|
+
* - Never show 100% when real value < 100 → ">99%" (or ">99.9%" etc.)
|
|
510
|
+
* - Never show 0% when real value > 0 → "<1%" (or "<0.1%" etc.)
|
|
511
|
+
* - `decimals` controls fractional precision (default 0)
|
|
512
|
+
*/
|
|
513
|
+
export const formatPercent = (value: number, decimals = 0): string => {
|
|
514
|
+
if (value === 0) return '0%';
|
|
515
|
+
if (value === 100) return '100%';
|
|
516
|
+
|
|
517
|
+
const factor = 10 ** decimals;
|
|
518
|
+
const rounded = Math.round(value * factor) / factor;
|
|
519
|
+
|
|
520
|
+
// Boundary safety: value > 0 but rounds to 0
|
|
521
|
+
if (value > 0 && rounded === 0) {
|
|
522
|
+
const threshold = 1 / factor;
|
|
523
|
+
return `<${threshold}%`;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// Boundary safety: value < 100 but rounds to 100
|
|
527
|
+
if (value < 100 && rounded === 100) {
|
|
528
|
+
const max = 100 - 1 / factor;
|
|
529
|
+
return `>${decimals > 0 ? max.toFixed(decimals) : String(max)}%`;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
return `${decimals > 0 ? rounded.toFixed(decimals) : String(rounded)}%`;
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Byte-formatting tiers: [minValue, divisor, suffix].
|
|
537
|
+
* Uses decimal (SI) units: KB = 1000, MB = 1e6, etc.
|
|
538
|
+
*/
|
|
539
|
+
const byteTiers: [threshold: number, divisor: number, suffix: string][] = [
|
|
540
|
+
[999_500_000_000, 1e12, 'TB'],
|
|
541
|
+
[999_500_000, 1e9, 'GB'],
|
|
542
|
+
[999_500, 1e6, 'MB'],
|
|
543
|
+
[1_000, 1e3, 'KB'],
|
|
544
|
+
];
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Format bytes using decimal (SI) units: 512 B, 3.4 KB, 12.7 MB, 2.3 GB, 1.1 TB.
|
|
548
|
+
* Same decimal precision rules as abbreviateNumber.
|
|
549
|
+
* Returns `{ display, full }` where `full` = "2,345,678,901 bytes".
|
|
550
|
+
*/
|
|
551
|
+
export const formatBytes = (value: number): { display: string; full: string } => {
|
|
552
|
+
const full = `${fullFormatter.format(value)} bytes`;
|
|
553
|
+
|
|
554
|
+
if (value < 1_000) {
|
|
555
|
+
return { display: `${value} B`, full };
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
const tier = byteTiers.find(([threshold]) => value >= threshold);
|
|
559
|
+
|
|
560
|
+
if (!tier) {
|
|
561
|
+
return { display: `${value} B`, full };
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
const [, divisor, suffix] = tier;
|
|
565
|
+
const scaled = value / divisor;
|
|
566
|
+
|
|
567
|
+
const precision = scaled >= 100 ? 0 : 1;
|
|
568
|
+
const rounded = Math.round(scaled * 10 ** precision) / 10 ** precision;
|
|
569
|
+
const formatted = rounded % 1 === 0 ? String(rounded) : rounded.toFixed(1);
|
|
570
|
+
|
|
571
|
+
return { display: `${formatted} ${suffix}`, full };
|
|
572
|
+
};
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### SimpleCharts/LineChart/lib/formatRange.ts
|
|
576
|
+
|
|
577
|
+
```tsx
|
|
578
|
+
/** Higher-order range formatter — joins `format(from)` and `format(to)` with `→`. */
|
|
579
|
+
export const formatRange =
|
|
580
|
+
(format: (value: unknown) => string) =>
|
|
581
|
+
(range: { from: unknown; to: unknown }): string =>
|
|
582
|
+
`${format(range.from)} → ${format(range.to)}`;
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
### SimpleCharts/LineChart/lib/sampleData.ts
|
|
586
|
+
|
|
587
|
+
```tsx
|
|
588
|
+
import type { LineChartDatum, LineChartSeries } from '../LineChartContext';
|
|
589
|
+
|
|
590
|
+
// Deterministic pseudo-random in [0, 1) so the same `(i, seed, salt)` produces
|
|
591
|
+
// the same value across runs — keeps screenshot tests stable while letting us
|
|
592
|
+
// add point-to-point jitter that monotone smooths out and linear preserves.
|
|
593
|
+
const jitter = (i: number, seed: number, salt: number): number => {
|
|
594
|
+
const v = Math.sin((i + seed) * salt) * 43758.5453;
|
|
595
|
+
return v - Math.floor(v);
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
export const genHourly = (count: number, seed = 1): LineChartDatum[] => {
|
|
599
|
+
// Local-time anchor so the first sample reads `00:00` in the viewer's
|
|
600
|
+
// timezone instead of drifting by the UTC offset.
|
|
601
|
+
const start = new Date(2025, 0, 1, 0, 0, 0).getTime();
|
|
602
|
+
const out: LineChartDatum[] = [];
|
|
603
|
+
for (let i = 0; i < count; i++) {
|
|
604
|
+
const t = start + i * 60 * 60 * 1000;
|
|
605
|
+
const requests = Math.round(
|
|
606
|
+
120 + Math.sin((i + seed) / 4) * 30 + (jitter(i, seed, 12.9898) - 0.5) * 80,
|
|
607
|
+
);
|
|
608
|
+
const errors = Math.round(
|
|
609
|
+
24 + Math.cos((i + seed) / 5) * 10 + (jitter(i, seed, 78.233) - 0.5) * 32,
|
|
610
|
+
);
|
|
611
|
+
const latency = Math.round(
|
|
612
|
+
80 + Math.sin((i + seed) / 6) * 14 + (jitter(i, seed, 39.346) - 0.5) * 40,
|
|
613
|
+
);
|
|
614
|
+
out.push({ timestamp: t, requests, errors, latency });
|
|
615
|
+
}
|
|
616
|
+
return out;
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
export const genDaily = (count: number): LineChartDatum[] => {
|
|
620
|
+
const start = new Date(2024, 0, 1, 0, 0, 0).getTime();
|
|
621
|
+
const out: LineChartDatum[] = [];
|
|
622
|
+
for (let i = 0; i < count; i++) {
|
|
623
|
+
const t = start + i * 24 * 60 * 60 * 1000;
|
|
624
|
+
const requests = Math.round(1000 + Math.sin(i / 9) * 400 + (i % 13) * 12);
|
|
625
|
+
const errors = Math.round(80 + Math.cos(i / 11) * 30 + (i % 7) * 3);
|
|
626
|
+
out.push({ timestamp: t, requests, errors });
|
|
627
|
+
}
|
|
628
|
+
return out;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
export const singleSeries: LineChartSeries[] = [
|
|
632
|
+
{ key: 'requests', label: 'Requests', color: 'brand' },
|
|
633
|
+
];
|
|
634
|
+
|
|
635
|
+
export const multiSeries: LineChartSeries[] = [
|
|
636
|
+
{ key: 'requests', label: 'Requests', color: 'brand' },
|
|
637
|
+
{ key: 'errors', label: 'Errors', color: 'red' },
|
|
638
|
+
{ key: 'latency', label: 'Latency', color: 'blue' },
|
|
639
|
+
];
|
|
640
|
+
|
|
641
|
+
export const dashedSeries: LineChartSeries[] = [
|
|
642
|
+
{ key: 'requests', label: 'Requests', color: 'brand' },
|
|
643
|
+
{ key: 'errors', label: 'Errors (target)', color: 'red', variant: 'dashed' },
|
|
644
|
+
];
|
|
645
|
+
|
|
646
|
+
export const customColorSeries: LineChartSeries[] = [
|
|
647
|
+
{ key: 'requests', label: 'Requests', color: 'var(--color-violet-500)' },
|
|
648
|
+
{ key: 'errors', label: 'Errors', color: 'var(--color-emerald-500)' },
|
|
649
|
+
];
|
|
650
|
+
|
|
651
|
+
export const hourlyData24 = genHourly(24);
|
|
652
|
+
export const hourlyDataA = genHourly(24, 1);
|
|
653
|
+
export const hourlyDataB = genHourly(24, 7);
|
|
654
|
+
export const dailyData60 = genDaily(60);
|
|
655
|
+
export const hourlyData1000 = genHourly(1000);
|
|
656
|
+
|
|
657
|
+
export const singlePointData: LineChartDatum[] = [
|
|
658
|
+
{ timestamp: new Date(2025, 0, 1, 12, 0, 0).getTime(), requests: 142 },
|
|
659
|
+
];
|
|
660
|
+
|
|
661
|
+
export const dataWithErrorGaps: LineChartDatum[] = hourlyData24.map((d, i) => {
|
|
662
|
+
if ((i >= 6 && i <= 8) || (i >= 15 && i <= 16)) {
|
|
663
|
+
return { ...d, errors: null };
|
|
664
|
+
}
|
|
665
|
+
return d;
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
export const unitsByKey: Record<string, string> = {
|
|
669
|
+
requests: ' req',
|
|
670
|
+
errors: ' err',
|
|
671
|
+
latency: ' ms',
|
|
672
|
+
};
|
|
673
|
+
```
|