@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,521 @@
|
|
|
1
|
+
Vertical stacked columns in the SimpleCharts family — a column per step (a day, an hour), split by category, with a legend over the plot that carries each category and its total. Parts stack in legend order, the first category on top. Column width adapts to the chart width and the number of steps, from 32px down to 16px. Hover a column for its breakdown; hover a legend item to fade the other categories out.
|
|
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 | — | One entry per column (step), sorted ascending by `xKey`. |
|
|
10
|
+
| `series` | `complex` | yes | — | The categories each column is split into, in legend order — the first one stacks on top. The same schema drives the legend, the parts and the hover popover rows. |
|
|
11
|
+
| `x-key` | `Extract<keyof T, string>` | yes | — | Key on each datum used as the X-axis value (the step: a day, an hour, …). |
|
|
12
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
14
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
15
|
+
| `id` | `string \| undefined` | no | — | |
|
|
16
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
17
|
+
| `title` | `string \| undefined` | no | — | |
|
|
18
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
19
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
20
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
21
|
+
|
|
22
|
+
## Sub-components
|
|
23
|
+
|
|
24
|
+
- `WallarmDS.ColumnChartBody` — `ColumnChartBodyProps` in the declaration bundle.
|
|
25
|
+
- `WallarmDS.ColumnChartXAxis` — `ColumnChartXAxisProps` in the declaration bundle.
|
|
26
|
+
- `WallarmDS.ColumnChartStack` — `ColumnChartStackProps` in the declaration bundle.
|
|
27
|
+
|
|
28
|
+
## Stories
|
|
29
|
+
|
|
30
|
+
### Default
|
|
31
|
+
|
|
32
|
+
Findings by verdict over a week: the legend carries each verdict and its total for the
|
|
33
|
+
period, a column per day stacks the verdicts in legend order with the first on top. Hover a
|
|
34
|
+
column for the day's breakdown, or a legend item to fade the other verdicts out.
|
|
35
|
+
|
|
36
|
+
Source: SimpleCharts/ColumnChart/ColumnChart.stories.tsx#Default
|
|
37
|
+
|
|
38
|
+
### AdaptiveWidth
|
|
39
|
+
|
|
40
|
+
Column width follows the chart width and the number of steps: up to 32px, a fixed 22px
|
|
41
|
+
between columns below that, and 16px at least. The same week in a narrow card keeps 32px
|
|
42
|
+
columns; two weeks in it narrow them.
|
|
43
|
+
|
|
44
|
+
Source: SimpleCharts/ColumnChart/ColumnChart.stories.tsx#AdaptiveWidth
|
|
45
|
+
|
|
46
|
+
### CardHeight
|
|
47
|
+
|
|
48
|
+
The plot follows the card height: set a height on `<Chart>` and the columns stretch or
|
|
49
|
+
shrink with it. The card goes down to 128px — header, legend and a 72px plot.
|
|
50
|
+
|
|
51
|
+
Source: SimpleCharts/ColumnChart/ColumnChart.stories.tsx#CardHeight
|
|
52
|
+
|
|
53
|
+
### ClickableLegend
|
|
54
|
+
|
|
55
|
+
Legend items become buttons when they get an `onClick` — here a verdict opens its list, as
|
|
56
|
+
on the Agentic Overview. The item's `data-key` carries the series key, so one handler serves
|
|
57
|
+
every item. Hover and keyboard focus fade the other verdicts out alike.
|
|
58
|
+
|
|
59
|
+
Source: SimpleCharts/ColumnChart/ColumnChart.stories.tsx#ClickableLegend
|
|
60
|
+
|
|
61
|
+
### Loading
|
|
62
|
+
|
|
63
|
+
Loading: skeleton legend items over `LineChartEmpty`'s dashed plot frame.
|
|
64
|
+
|
|
65
|
+
Source: SimpleCharts/ColumnChart/ColumnChart.stories.tsx#Loading
|
|
66
|
+
|
|
67
|
+
### Empty
|
|
68
|
+
|
|
69
|
+
Empty: `LineChartEmpty` keeps the dashed plot frame and puts the message inside it.
|
|
70
|
+
|
|
71
|
+
Source: SimpleCharts/ColumnChart/ColumnChart.stories.tsx#Empty
|
|
72
|
+
|
|
73
|
+
## Story sources
|
|
74
|
+
|
|
75
|
+
### SimpleCharts/ColumnChart/ColumnChart.stories.tsx
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import type { MouseEvent } from 'react';
|
|
79
|
+
import { fn } from 'storybook/test';
|
|
80
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
81
|
+
import { formatFullNumber } from '../../../utils/abbreviateNumber';
|
|
82
|
+
import { Skeleton } from '../../Skeleton';
|
|
83
|
+
import { Chart } from '../Chart/Chart';
|
|
84
|
+
import { ChartHeader } from '../Chart/ChartHeader';
|
|
85
|
+
import { ChartTitle } from '../Chart/ChartTitle';
|
|
86
|
+
import { useChartTimeFormatters } from '../hooks/useChartTimeFormatters';
|
|
87
|
+
import type { LineChartDatum, LineChartSeries } from '../LineChart/LineChartContext';
|
|
88
|
+
import { LineChartEmpty } from '../LineChart/LineChartEmpty';
|
|
89
|
+
import { LineChartGrid } from '../LineChart/LineChartGrid';
|
|
90
|
+
import { LineChartHoverPopoverDot } from '../LineChart/LineChartHoverPopoverDot';
|
|
91
|
+
import { LineChartLegend } from '../LineChart/LineChartLegend';
|
|
92
|
+
import { LineChartLegendItem } from '../LineChart/LineChartLegendItem';
|
|
93
|
+
import { LineChartTooltip } from '../LineChart/LineChartTooltip';
|
|
94
|
+
import { LineChartYAxis } from '../LineChart/LineChartYAxis';
|
|
95
|
+
import { ColumnChart } from './ColumnChart';
|
|
96
|
+
import { ColumnChartBody } from './ColumnChartBody';
|
|
97
|
+
import { ColumnChartStack } from './ColumnChartStack';
|
|
98
|
+
import { ColumnChartXAxis } from './ColumnChartXAxis';
|
|
99
|
+
|
|
100
|
+
const DESCRIPTION = [
|
|
101
|
+
'Vertical stacked columns in the SimpleCharts family — a column per step (a day, an hour), split by category, with a legend over the plot that carries each category and its total.',
|
|
102
|
+
'Parts stack in legend order, the first category on top. Column width adapts to the chart width and the number of steps, from 32px down to 16px.',
|
|
103
|
+
'Hover a column for its breakdown; hover a legend item to fade the other categories out.',
|
|
104
|
+
].join(' ');
|
|
105
|
+
|
|
106
|
+
const meta = {
|
|
107
|
+
title: 'Data Display/SimpleCharts/Vertical Stacked Columns Chart',
|
|
108
|
+
component: ColumnChart,
|
|
109
|
+
subcomponents: { ColumnChartBody, ColumnChartStack, ColumnChartXAxis },
|
|
110
|
+
parameters: {
|
|
111
|
+
layout: 'centered',
|
|
112
|
+
design: {
|
|
113
|
+
type: 'figma',
|
|
114
|
+
url: 'https://www.figma.com/design/VKb5gW46uSGw0rqrhZsbXT/WADS-Components?node-id=12612-31838',
|
|
115
|
+
},
|
|
116
|
+
docs: { description: { component: DESCRIPTION } },
|
|
117
|
+
},
|
|
118
|
+
tags: ['autodocs'],
|
|
119
|
+
} satisfies Meta<typeof ColumnChart>;
|
|
120
|
+
|
|
121
|
+
export default meta;
|
|
122
|
+
|
|
123
|
+
const DAY = 24 * 60 * 60 * 1000;
|
|
124
|
+
const START = Date.UTC(2026, 0, 1);
|
|
125
|
+
|
|
126
|
+
const verdicts: LineChartSeries[] = [
|
|
127
|
+
{ key: 'malicious', label: 'Malicious anomaly', color: 'red' },
|
|
128
|
+
{ key: 'truePositive', label: 'True positive', color: 'brand' },
|
|
129
|
+
{ key: 'falsePositive', label: 'False positive', color: 'amber' },
|
|
130
|
+
{ key: 'benign', label: 'Benign anomaly', color: 'green' },
|
|
131
|
+
];
|
|
132
|
+
|
|
133
|
+
const findings: LineChartDatum[] = [
|
|
134
|
+
[4, 6, 38, 4],
|
|
135
|
+
[5, 0, 12, 10],
|
|
136
|
+
[6, 40, 34, 4],
|
|
137
|
+
[6, 14, 72, 4],
|
|
138
|
+
[4, 0, 1, 30],
|
|
139
|
+
[3, 8, 22, 6],
|
|
140
|
+
[7, 18, 46, 5],
|
|
141
|
+
].map(([malicious, truePositive, falsePositive, benign], i) => ({
|
|
142
|
+
timestamp: START + i * DAY,
|
|
143
|
+
malicious,
|
|
144
|
+
truePositive,
|
|
145
|
+
falsePositive,
|
|
146
|
+
benign,
|
|
147
|
+
}));
|
|
148
|
+
|
|
149
|
+
const findingsTotals = Object.fromEntries(
|
|
150
|
+
verdicts.map(s => [s.key, findings.reduce((sum, d) => sum + Number(d[s.key] ?? 0), 0)]),
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
// Fourteen days of the same verdicts — enough steps to narrow the columns below 32px.
|
|
154
|
+
const findings14: LineChartDatum[] = [...findings, ...findings].map((d, i) => ({
|
|
155
|
+
...d,
|
|
156
|
+
timestamp: START + i * DAY,
|
|
157
|
+
}));
|
|
158
|
+
|
|
159
|
+
const formatYTick = (value: unknown) => formatFullNumber(Number(value));
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Findings by verdict over a week: the legend carries each verdict and its total for the
|
|
163
|
+
* period, a column per day stacks the verdicts in legend order with the first on top. Hover a
|
|
164
|
+
* column for the day's breakdown, or a legend item to fade the other verdicts out.
|
|
165
|
+
*/
|
|
166
|
+
export const Default: StoryFn<typeof meta> = () => {
|
|
167
|
+
const { formatDate, formatDateWithTimezone } = useChartTimeFormatters();
|
|
168
|
+
return (
|
|
169
|
+
<div className='w-800'>
|
|
170
|
+
<Chart>
|
|
171
|
+
<ChartHeader>
|
|
172
|
+
<ChartTitle>Findings by verdict</ChartTitle>
|
|
173
|
+
</ChartHeader>
|
|
174
|
+
<ColumnChart data={findings} series={verdicts} xKey='timestamp' data-testid='column-chart'>
|
|
175
|
+
<LineChartLegend>
|
|
176
|
+
{verdicts.map(s => (
|
|
177
|
+
<LineChartLegendItem key={s.key} seriesKey={s.key}>
|
|
178
|
+
<LineChartHoverPopoverDot color={s.color} />
|
|
179
|
+
<span className='text-xs font-mono text-text-primary'>{s.label}</span>
|
|
180
|
+
<span className='text-xs font-mono font-medium text-text-primary'>
|
|
181
|
+
{formatFullNumber(findingsTotals[s.key] ?? 0)}
|
|
182
|
+
</span>
|
|
183
|
+
</LineChartLegendItem>
|
|
184
|
+
))}
|
|
185
|
+
</LineChartLegend>
|
|
186
|
+
<ColumnChartBody>
|
|
187
|
+
<LineChartGrid />
|
|
188
|
+
<ColumnChartXAxis tickFormatter={formatDate} />
|
|
189
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
190
|
+
<ColumnChartStack />
|
|
191
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
192
|
+
</ColumnChartBody>
|
|
193
|
+
</ColumnChart>
|
|
194
|
+
</Chart>
|
|
195
|
+
</div>
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Column width follows the chart width and the number of steps: up to 32px, a fixed 22px
|
|
201
|
+
* between columns below that, and 16px at least. The same week in a narrow card keeps 32px
|
|
202
|
+
* columns; two weeks in it narrow them.
|
|
203
|
+
*/
|
|
204
|
+
export const AdaptiveWidth: StoryFn<typeof meta> = () => {
|
|
205
|
+
const { formatDate, formatDateWithTimezone } = useChartTimeFormatters();
|
|
206
|
+
return (
|
|
207
|
+
<div className='flex gap-16'>
|
|
208
|
+
<div className='w-428'>
|
|
209
|
+
<Chart>
|
|
210
|
+
<ChartHeader>
|
|
211
|
+
<ChartTitle>7 days</ChartTitle>
|
|
212
|
+
</ChartHeader>
|
|
213
|
+
<ColumnChart
|
|
214
|
+
data={findings}
|
|
215
|
+
series={verdicts}
|
|
216
|
+
xKey='timestamp'
|
|
217
|
+
data-testid='column-chart-week'
|
|
218
|
+
>
|
|
219
|
+
<ColumnChartBody>
|
|
220
|
+
<LineChartGrid />
|
|
221
|
+
<ColumnChartXAxis tickFormatter={formatDate} />
|
|
222
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
223
|
+
<ColumnChartStack />
|
|
224
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
225
|
+
</ColumnChartBody>
|
|
226
|
+
</ColumnChart>
|
|
227
|
+
</Chart>
|
|
228
|
+
</div>
|
|
229
|
+
<div className='w-428'>
|
|
230
|
+
<Chart>
|
|
231
|
+
<ChartHeader>
|
|
232
|
+
<ChartTitle>14 days</ChartTitle>
|
|
233
|
+
</ChartHeader>
|
|
234
|
+
<ColumnChart
|
|
235
|
+
data={findings14}
|
|
236
|
+
series={verdicts}
|
|
237
|
+
xKey='timestamp'
|
|
238
|
+
data-testid='column-chart-two-weeks'
|
|
239
|
+
>
|
|
240
|
+
<ColumnChartBody>
|
|
241
|
+
<LineChartGrid />
|
|
242
|
+
<ColumnChartXAxis tickFormatter={formatDate} />
|
|
243
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
244
|
+
<ColumnChartStack />
|
|
245
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
246
|
+
</ColumnChartBody>
|
|
247
|
+
</ColumnChart>
|
|
248
|
+
</Chart>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The plot follows the card height: set a height on `<Chart>` and the columns stretch or
|
|
256
|
+
* shrink with it. The card goes down to 128px — header, legend and a 72px plot.
|
|
257
|
+
*/
|
|
258
|
+
export const CardHeight: StoryFn<typeof meta> = () => {
|
|
259
|
+
const { formatDate, formatDateWithTimezone } = useChartTimeFormatters();
|
|
260
|
+
return (
|
|
261
|
+
<div className='flex w-800 flex-col gap-16'>
|
|
262
|
+
<Chart className='h-128'>
|
|
263
|
+
<ChartHeader>
|
|
264
|
+
<ChartTitle>128px card</ChartTitle>
|
|
265
|
+
</ChartHeader>
|
|
266
|
+
<ColumnChart
|
|
267
|
+
data={findings}
|
|
268
|
+
series={verdicts}
|
|
269
|
+
xKey='timestamp'
|
|
270
|
+
data-testid='column-chart-min'
|
|
271
|
+
>
|
|
272
|
+
<LineChartLegend>
|
|
273
|
+
{verdicts.map(s => (
|
|
274
|
+
<LineChartLegendItem key={s.key} seriesKey={s.key}>
|
|
275
|
+
<LineChartHoverPopoverDot color={s.color} />
|
|
276
|
+
<span className='text-xs font-mono text-text-primary'>{s.label}</span>
|
|
277
|
+
</LineChartLegendItem>
|
|
278
|
+
))}
|
|
279
|
+
</LineChartLegend>
|
|
280
|
+
<ColumnChartBody>
|
|
281
|
+
<LineChartGrid />
|
|
282
|
+
<ColumnChartXAxis tickFormatter={formatDate} />
|
|
283
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
284
|
+
<ColumnChartStack />
|
|
285
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
286
|
+
</ColumnChartBody>
|
|
287
|
+
</ColumnChart>
|
|
288
|
+
</Chart>
|
|
289
|
+
<Chart className='h-320'>
|
|
290
|
+
<ChartHeader>
|
|
291
|
+
<ChartTitle>320px card</ChartTitle>
|
|
292
|
+
</ChartHeader>
|
|
293
|
+
<ColumnChart
|
|
294
|
+
data={findings}
|
|
295
|
+
series={verdicts}
|
|
296
|
+
xKey='timestamp'
|
|
297
|
+
data-testid='column-chart-tall'
|
|
298
|
+
>
|
|
299
|
+
<LineChartLegend>
|
|
300
|
+
{verdicts.map(s => (
|
|
301
|
+
<LineChartLegendItem key={s.key} seriesKey={s.key}>
|
|
302
|
+
<LineChartHoverPopoverDot color={s.color} />
|
|
303
|
+
<span className='text-xs font-mono text-text-primary'>{s.label}</span>
|
|
304
|
+
</LineChartLegendItem>
|
|
305
|
+
))}
|
|
306
|
+
</LineChartLegend>
|
|
307
|
+
<ColumnChartBody>
|
|
308
|
+
<LineChartGrid />
|
|
309
|
+
<ColumnChartXAxis tickFormatter={formatDate} />
|
|
310
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
311
|
+
<ColumnChartStack />
|
|
312
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
313
|
+
</ColumnChartBody>
|
|
314
|
+
</ColumnChart>
|
|
315
|
+
</Chart>
|
|
316
|
+
</div>
|
|
317
|
+
);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
const openVerdict = fn().mockName('openVerdict');
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Legend items become buttons when they get an `onClick` — here a verdict opens its list, as
|
|
324
|
+
* on the Agentic Overview. The item's `data-key` carries the series key, so one handler serves
|
|
325
|
+
* every item. Hover and keyboard focus fade the other verdicts out alike.
|
|
326
|
+
*/
|
|
327
|
+
export const ClickableLegend: StoryFn<typeof meta> = () => {
|
|
328
|
+
const { formatDate, formatDateWithTimezone } = useChartTimeFormatters();
|
|
329
|
+
const handleLegendClick = (event: MouseEvent<HTMLDivElement>) => {
|
|
330
|
+
openVerdict(event.currentTarget.dataset.key);
|
|
331
|
+
};
|
|
332
|
+
return (
|
|
333
|
+
<div className='w-800'>
|
|
334
|
+
<Chart>
|
|
335
|
+
<ChartHeader>
|
|
336
|
+
<ChartTitle>Click a verdict to open it</ChartTitle>
|
|
337
|
+
</ChartHeader>
|
|
338
|
+
<ColumnChart data={findings} series={verdicts} xKey='timestamp' data-testid='column-chart'>
|
|
339
|
+
<LineChartLegend>
|
|
340
|
+
{verdicts.map(s => (
|
|
341
|
+
<LineChartLegendItem key={s.key} seriesKey={s.key} onClick={handleLegendClick}>
|
|
342
|
+
<LineChartHoverPopoverDot color={s.color} />
|
|
343
|
+
<span className='text-xs font-mono text-text-primary'>{s.label}</span>
|
|
344
|
+
<span className='text-xs font-mono font-medium text-text-primary'>
|
|
345
|
+
{formatFullNumber(findingsTotals[s.key] ?? 0)}
|
|
346
|
+
</span>
|
|
347
|
+
</LineChartLegendItem>
|
|
348
|
+
))}
|
|
349
|
+
</LineChartLegend>
|
|
350
|
+
<ColumnChartBody>
|
|
351
|
+
<LineChartGrid />
|
|
352
|
+
<ColumnChartXAxis tickFormatter={formatDate} />
|
|
353
|
+
<LineChartYAxis tickFormatter={formatYTick} />
|
|
354
|
+
<ColumnChartStack />
|
|
355
|
+
<LineChartTooltip xTickFormatter={formatDateWithTimezone} />
|
|
356
|
+
</ColumnChartBody>
|
|
357
|
+
</ColumnChart>
|
|
358
|
+
</Chart>
|
|
359
|
+
</div>
|
|
360
|
+
);
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Loading: skeleton legend items over `LineChartEmpty`'s dashed plot frame.
|
|
365
|
+
*/
|
|
366
|
+
export const Loading: StoryFn<typeof meta> = () => (
|
|
367
|
+
<div className='w-800'>
|
|
368
|
+
<Chart aria-busy='true' aria-live='polite'>
|
|
369
|
+
<ChartHeader>
|
|
370
|
+
<ChartTitle>Findings by verdict</ChartTitle>
|
|
371
|
+
</ChartHeader>
|
|
372
|
+
<LineChartLegend>
|
|
373
|
+
{verdicts.map(s => (
|
|
374
|
+
<LineChartLegendItem key={s.key} seriesKey={s.key}>
|
|
375
|
+
<Skeleton width='96px' height='16px' rounded={4} />
|
|
376
|
+
</LineChartLegendItem>
|
|
377
|
+
))}
|
|
378
|
+
</LineChartLegend>
|
|
379
|
+
<LineChartEmpty />
|
|
380
|
+
</Chart>
|
|
381
|
+
</div>
|
|
382
|
+
);
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Empty: `LineChartEmpty` keeps the dashed plot frame and puts the message inside it.
|
|
386
|
+
*/
|
|
387
|
+
export const Empty: StoryFn<typeof meta> = () => (
|
|
388
|
+
<div className='w-800'>
|
|
389
|
+
<Chart>
|
|
390
|
+
<ChartHeader>
|
|
391
|
+
<ChartTitle>Findings by verdict</ChartTitle>
|
|
392
|
+
</ChartHeader>
|
|
393
|
+
<LineChartEmpty>No findings in this period</LineChartEmpty>
|
|
394
|
+
</Chart>
|
|
395
|
+
</div>
|
|
396
|
+
);
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### ../utils/abbreviateNumber.ts
|
|
400
|
+
|
|
401
|
+
```tsx
|
|
402
|
+
/**
|
|
403
|
+
* Suffix tiers: [minAbsValue, divisor, suffix].
|
|
404
|
+
* Sorted descending so the first match wins.
|
|
405
|
+
*
|
|
406
|
+
* Boundaries use "rounding-aware" thresholds:
|
|
407
|
+
* 999,500 rounds to 1M (not 999.5k), 999,499 stays 999k.
|
|
408
|
+
*/
|
|
409
|
+
const tiers: [threshold: number, divisor: number, suffix: string][] = [
|
|
410
|
+
[999_500_000_000, 1e12, 'T'],
|
|
411
|
+
[999_500_000, 1e9, 'B'],
|
|
412
|
+
[999_500, 1e6, 'M'],
|
|
413
|
+
[1_000, 1e3, 'k'],
|
|
414
|
+
];
|
|
415
|
+
|
|
416
|
+
const fullFormatter = new Intl.NumberFormat('en-US');
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Abbreviate a number for table cells: `12042` → `"12k"`, `59614283` → `"59.6M"`.
|
|
420
|
+
*
|
|
421
|
+
* Rules (from the Number display & abbreviation guide):
|
|
422
|
+
* - Suffixes: k (10³), M (10⁶), B (10⁹), T (10¹²) — k lowercase, rest uppercase, no space
|
|
423
|
+
* - Boundary: moves to next suffix when rounding would reach 1000×
|
|
424
|
+
* - Precision: ≥100 → 0 decimals; 10–99 → 1 decimal (drop .0); 1–9.9 → 1 decimal
|
|
425
|
+
* - Negative numbers supported
|
|
426
|
+
*/
|
|
427
|
+
export const abbreviateNumber = (value: number): string => {
|
|
428
|
+
if (value === 0) return '0';
|
|
429
|
+
|
|
430
|
+
const sign = value < 0 ? '-' : '';
|
|
431
|
+
const abs = Math.abs(value);
|
|
432
|
+
|
|
433
|
+
if (abs < 1_000) return String(value);
|
|
434
|
+
|
|
435
|
+
const tier = tiers.find(([threshold]) => abs >= threshold);
|
|
436
|
+
|
|
437
|
+
if (!tier) return String(value);
|
|
438
|
+
|
|
439
|
+
const [, divisor, suffix] = tier;
|
|
440
|
+
const scaled = abs / divisor;
|
|
441
|
+
|
|
442
|
+
// ≥100 → 0 decimals; <100 → 1 decimal (drop trailing .0)
|
|
443
|
+
const precision = scaled >= 100 ? 0 : 1;
|
|
444
|
+
const rounded = Math.round(scaled * 10 ** precision) / 10 ** precision;
|
|
445
|
+
const formatted = rounded % 1 === 0 ? String(rounded) : rounded.toFixed(1);
|
|
446
|
+
|
|
447
|
+
return `${sign}${formatted}${suffix}`;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Format a number with thousand separators for tooltips: `59614283` → `"59,614,283"`.
|
|
452
|
+
*/
|
|
453
|
+
export const formatFullNumber = (value: number): string => fullFormatter.format(value);
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Format a percentage with boundary safety:
|
|
457
|
+
* - Never show 100% when real value < 100 → ">99%" (or ">99.9%" etc.)
|
|
458
|
+
* - Never show 0% when real value > 0 → "<1%" (or "<0.1%" etc.)
|
|
459
|
+
* - `decimals` controls fractional precision (default 0)
|
|
460
|
+
*/
|
|
461
|
+
export const formatPercent = (value: number, decimals = 0): string => {
|
|
462
|
+
if (value === 0) return '0%';
|
|
463
|
+
if (value === 100) return '100%';
|
|
464
|
+
|
|
465
|
+
const factor = 10 ** decimals;
|
|
466
|
+
const rounded = Math.round(value * factor) / factor;
|
|
467
|
+
|
|
468
|
+
// Boundary safety: value > 0 but rounds to 0
|
|
469
|
+
if (value > 0 && rounded === 0) {
|
|
470
|
+
const threshold = 1 / factor;
|
|
471
|
+
return `<${threshold}%`;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// Boundary safety: value < 100 but rounds to 100
|
|
475
|
+
if (value < 100 && rounded === 100) {
|
|
476
|
+
const max = 100 - 1 / factor;
|
|
477
|
+
return `>${decimals > 0 ? max.toFixed(decimals) : String(max)}%`;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
return `${decimals > 0 ? rounded.toFixed(decimals) : String(rounded)}%`;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Byte-formatting tiers: [minValue, divisor, suffix].
|
|
485
|
+
* Uses decimal (SI) units: KB = 1000, MB = 1e6, etc.
|
|
486
|
+
*/
|
|
487
|
+
const byteTiers: [threshold: number, divisor: number, suffix: string][] = [
|
|
488
|
+
[999_500_000_000, 1e12, 'TB'],
|
|
489
|
+
[999_500_000, 1e9, 'GB'],
|
|
490
|
+
[999_500, 1e6, 'MB'],
|
|
491
|
+
[1_000, 1e3, 'KB'],
|
|
492
|
+
];
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Format bytes using decimal (SI) units: 512 B, 3.4 KB, 12.7 MB, 2.3 GB, 1.1 TB.
|
|
496
|
+
* Same decimal precision rules as abbreviateNumber.
|
|
497
|
+
* Returns `{ display, full }` where `full` = "2,345,678,901 bytes".
|
|
498
|
+
*/
|
|
499
|
+
export const formatBytes = (value: number): { display: string; full: string } => {
|
|
500
|
+
const full = `${fullFormatter.format(value)} bytes`;
|
|
501
|
+
|
|
502
|
+
if (value < 1_000) {
|
|
503
|
+
return { display: `${value} B`, full };
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
const tier = byteTiers.find(([threshold]) => value >= threshold);
|
|
507
|
+
|
|
508
|
+
if (!tier) {
|
|
509
|
+
return { display: `${value} B`, full };
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
const [, divisor, suffix] = tier;
|
|
513
|
+
const scaled = value / divisor;
|
|
514
|
+
|
|
515
|
+
const precision = scaled >= 100 ? 0 : 1;
|
|
516
|
+
const rounded = Math.round(scaled * 10 ** precision) / 10 ** precision;
|
|
517
|
+
const formatted = rounded % 1 === 0 ? String(rounded) : rounded.toFixed(1);
|
|
518
|
+
|
|
519
|
+
return { display: `${formatted} ${suffix}`, full };
|
|
520
|
+
};
|
|
521
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,r){let n,a;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var o,l,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of m(t))d.call(e,a)||a===r||c(e,a,{get:()=>t[a],enumerable:!(n=s(t,a))||n.enumerable});return e},p={},h={$dispatcherGuard:()=>E,$makeReadOnly:()=>D,$reset:()=>$,$structuralCheck:()=>W,c:()=>v,clearRenderCounterRegistry:()=>M,renderCounterRegistry:()=>O,useRenderCounter:()=>T};for(var y in h)c(p,y,{get:h[y],enumerable:!0});e.exports=f(c({},"__esModule",{value:!0}),p);var w=(a=null!=(n=r("C"))?i(u(n)):{},f(n&&n.__esModule?a:c(a,"default",{value:n,enumerable:!0}),n)),{useRef:_,useEffect:b,isValidElement:S}=w,k=null!=(o=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?o:w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(l=w.__COMPILER_RUNTIME)?void 0:l.c)?w.__COMPILER_RUNTIME.c:function(e){return w.useMemo(()=>{let t=Array(e);for(let r=0;r<e;r++)t[r]=g;return t[g]=!0,t},[])},C={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{C[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var x=null;function N(e){return k.ReactCurrentDispatcher.current=e,k.ReactCurrentDispatcher.current}C.useMemoCache=e=>{if(null!=x)return x.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var R=[];function E(e){let t=k.ReactCurrentDispatcher.current;if(0===e){if(R.push(t),1===R.length&&(x=t),t===C)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");N(C)}else if(1===e){let e=R.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===R.length&&(x=null),N(e)}else if(2===e)R.push(t),N(x);else if(3===e){let e=R.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");N(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function $(e){for(let t=0;t<e.length;t++)e[t]=g}function D(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var O=new Map;function M(){for(let e of O.values())e.forEach(e=>{e.count=0})}function T(e){let t=_(null);null!=t.current&&(t.current.count+=1),b(()=>{if(null==t.current){let r,n={count:0};null==(r=O.get(e))&&(r=new Set,O.set(e,r)),r.add(n),t.current=n}return()=>{var r;let n;null!==t.current&&(r=t.current,null!=(n=O.get(e))&&n.delete(r))}})}var F=new Set;function W(e,t,r,n,a,o){function l(e,t,l,i){let c=`${n}:${o} [${a}] ${r}${l} changed from ${e} to ${t} at depth ${i}`;F.has(c)||(F.add(c),console.error(c))}!function e(t,r,n,a){if(!(a>2)){if(t!==r)if(typeof t!=typeof r)l(`type ${typeof t}`,`type ${typeof r}`,n,a);else if("object"==typeof t){let o=Array.isArray(t),i=Array.isArray(r);if(null===t&&null!==r)l("null",`type ${typeof r}`,n,a);else if(null===r)l(`type ${typeof t}`,"null",n,a);else if(t instanceof Map)if(r instanceof Map)if(t.size!==r.size)l(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,a);else for(let[o,i]of t)r.has(o)?e(i,r.get(o),`${n}.get(${o})`,a+1):l(`Map instance with key ${o}`,`Map instance without key ${o}`,n,a);else l("Map instance","other value",n,a);else if(r instanceof Map)l("other value","Map instance",n,a);else if(t instanceof Set)if(r instanceof Set)if(t.size!==r.size)l(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,a);else for(let e of r)t.has(e)||l(`Set instance without element ${e}`,`Set instance with element ${e}`,n,a);else l("Set instance","other value",n,a);else if(r instanceof Set)l("other value","Set instance",n,a);else if(o||i)if(o!==i)l(`type ${o?"array":"object"}`,`type ${i?"array":"object"}`,n,a);else if(t.length!==r.length)l(`array with length ${t.length}`,`array with length ${r.length}`,n,a);else for(let o=0;o<t.length;o++)e(t[o],r[o],`${n}[${o}]`,a+1);else if(S(t)||S(r))S(t)!==S(r)?l(`type ${S(t)?"React element":"object"}`,`type ${S(r)?"React element":"object"}`,n,a):t.type!==r.type?l(`React element of type ${t.type}`,`React element of type ${r.type}`,n,a):e(t.props,r.props,`[props of ${n}]`,a+1);else{for(let e in r)e in t||l(`object without key ${e}`,`object with key ${e}`,n,a);for(let o in t)o in r?e(t[o],r[o],`${n}.${o}`,a+1):l(`object with key ${o}`,`object without key ${o}`,n,a)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&l(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,a):t!==r&&l(t,r,n,a)}}}(e,t,"",0)}},p(e,t,r){let n=new WeakMap,a=new WeakMap;function o(e,t,r){let o=t,l=r;if("object"==typeof o&&null!==o&&"$$typeof"in o&&o.$$typeof===Symbol.for("react.context")&&"Provider"in o&&(o=o.Provider),"function"==typeof o&&null!=l.ref&&!o.prototype?.isReactComponent){let t=o,r=n.get(e);r||(r=new WeakMap,n.set(e,r));let a=r.get(t);a||((a=e.forwardRef((e,r)=>t({...e,ref:r}))).displayName=t.displayName??t.name,r.set(t,a)),o=a}if("string"==typeof o&&"boolean"==typeof l.inert&&((l={...l}).inert?l.inert="":delete l.inert),"string"==typeof o)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in l&&(l={...l,[t]:l[e]},delete l[e]);return"string"==typeof o&&null!=l.ref&&(o=function(e,t){let r=a.get(e);r||(r=new Map,a.set(e,r));let n=r.get(t);if(n)return n;let o=e.forwardRef((r,n)=>{let a=e.useRef(null);if(!a.current||a.current.original!==n){let e;a.current={original:n,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof n){let r=n(t);e="function"==typeof r?r:void 0}else n&&(n.current=t)}}}return e.createElement(t,{...r,ref:a.current.callback})});return o.displayName=`CanvasHost(${t})`,r.set(t,o),o}(e,o)),{type:o,props:l}}function l(e){let t=(t,r,n)=>{let a=o(e,t,r??{});return e.createElement(a.type,void 0===n?a.props:{...a.props,key:n})};return{jsx:t,jsxs:(t,r,n)=>{let a=o(e,t,r??{}),{children:l,...i}=a.props;return e.createElement(a.type,void 0===n?i:{...i,key:n},...Array.isArray(l)?l:[l])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,r,...n)=>{let a=o(e,t,r??{});return e.createElement(a.type,a.props,...n)},cloneElement:(t,r,...n)=>{let a=e.cloneElement(t,r??void 0,...n),l=a.ref,i=o(e,a.type,{...a.props,ref:l});return i.type===a.type&&"string"!=typeof a.type?a:e.createElement(i.type,{...i.props,key:a.key})}}}r.d(t,{MA:()=>l,YJ:()=>i})},C(e,t,r){r.r(t);let n=(0,r("p").YJ)(window.React),{Children:a,Component:o,Fragment:l,Profiler:i,PureComponent:c,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u,act:d,cloneElement:f,createContext:p,createElement:h,createFactory:y,createRef:w,forwardRef:_,isValidElement:b,lazy:S,memo:k,startTransition:g,unstable_act:v,useCallback:C,useContext:x,useDebugValue:N,useDeferredValue:R,useEffect:E,useId:$,useImperativeHandle:D,useInsertionEffect:O,useLayoutEffect:M,useMemo:T,useReducer:F,useRef:W,useState:j,useSyncExternalStore:L,useTransition:I,version:P,use:A}=n;r.d(t,{},{Children:a,Component:o,Fragment:l,Profiler:i,PureComponent:c,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u,act:d,cloneElement:f,createContext:p,createElement:h,createFactory:y,createRef:w,default:n,forwardRef:_,isValidElement:b,lazy:S,memo:k,startTransition:g,unstable_act:v,use:A,useCallback:C,useContext:x,useDebugValue:N,useDeferredValue:R,useEffect:E,useId:$,useImperativeHandle:D,useInsertionEffect:O,useLayoutEffect:M,useMemo:T,useReducer:F,useRef:W,useState:j,useSyncExternalStore:L,useTransition:I,version:P})}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t,n)=>{var a=(t,n)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,[n]:t[a]})};a(t,"get"),a(n,"value")},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:n,Fragment:a}=(0,r("p").MA)(window.React);var o=r("vD");let l=new Intl.NumberFormat("en-US"),i=window.WallarmDS.Skeleton,c=window.WallarmDS.Chart,s=window.WallarmDS.ChartHeader,m=window.WallarmDS.ChartTitle,u=window.WallarmDS.useChartTimeFormatters,d=window.WallarmDS.LineChartEmpty,f=window.WallarmDS.LineChartGrid,p=window.WallarmDS.LineChartHoverPopoverDot,h=window.WallarmDS.LineChartLegend,y=window.WallarmDS.LineChartLegendItem,w=window.WallarmDS.LineChartTooltip,_=window.WallarmDS.LineChartYAxis,b=window.WallarmDS.ColumnChart,S=window.WallarmDS.ColumnChartBody,k=window.WallarmDS.ColumnChartStack,g=window.WallarmDS.ColumnChartXAxis,v={title:"Data Display/SimpleCharts/Vertical Stacked Columns Chart",component:b,subcomponents:{ColumnChartBody:S,ColumnChartStack:k,ColumnChartXAxis:g},parameters:{layout:"centered",design:{type:"figma",url:"https://www.figma.com/design/VKb5gW46uSGw0rqrhZsbXT/WADS-Components?node-id=12612-31838"},docs:{description:{component:"Vertical stacked columns in the SimpleCharts family — a column per step (a day, an hour), split by category, with a legend over the plot that carries each category and its total. Parts stack in legend order, the first category on top. Column width adapts to the chart width and the number of steps, from 32px down to 16px. Hover a column for its breakdown; hover a legend item to fade the other categories out."}}},tags:["autodocs"]},C=Date.UTC(2026,0,1),x=[{key:"malicious",label:"Malicious anomaly",color:"red"},{key:"truePositive",label:"True positive",color:"brand"},{key:"falsePositive",label:"False positive",color:"amber"},{key:"benign",label:"Benign anomaly",color:"green"}],N=[[4,6,38,4],[5,0,12,10],[6,40,34,4],[6,14,72,4],[4,0,1,30],[3,8,22,6],[7,18,46,5]].map(([e,t,r,n],a)=>({timestamp:C+864e5*a,malicious:e,truePositive:t,falsePositive:r,benign:n})),R=Object.fromEntries(x.map(e=>[e.key,N.reduce((t,r)=>t+Number(r[e.key]??0),0)])),E=[...N,...N].map((e,t)=>({...e,timestamp:C+864e5*t})),$=e=>{let t;return t=Number(e),l.format(t)},D=(function(e=()=>{}){let t=(...t)=>e(...t);for(let r of["mockName","mockReturnValue","mockResolvedValue","mockImplementation"])t[r]=n=>("mockImplementation"===r?e=n:"mockReturnValue"===r?e=()=>n:"mockResolvedValue"===r&&(e=()=>Promise.resolve(n)),t);return t})().mockName("openVerdict");function O(r){let n;return t(y,{seriesKey:r.key,children:[e(p,{color:r.color}),e("span",{className:"text-xs font-mono text-text-primary",children:r.label}),e("span",{className:"text-xs font-mono font-medium text-text-primary",children:(n=R[r.key]??0,l.format(n))})]},r.key)}function M(r){return t(y,{seriesKey:r.key,children:[e(p,{color:r.color}),e("span",{className:"text-xs font-mono text-text-primary",children:r.label})]},r.key)}function T(r){return t(y,{seriesKey:r.key,children:[e(p,{color:r.color}),e("span",{className:"text-xs font-mono text-text-primary",children:r.label})]},r.key)}function F(e){D(e.currentTarget.dataset.key)}function W(t){return e(y,{seriesKey:t.key,children:e(i,{width:"96px",height:"16px",rounded:4})},t.key)}var j=r("C");let L=[{name:"Default",story:()=>{let r,n,a,l,i,d,p,y,v=(0,o.c)(12),{formatDate:C,formatDateWithTimezone:R}=u();return v[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(s,{children:e(m,{children:"Findings by verdict"})}),v[0]=r):r=v[0],v[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(h,{children:x.map(O)}),v[1]=n):n=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(a=e(f,{}),v[2]=a):a=v[2],v[3]!==C?(l=e(g,{tickFormatter:C}),v[3]=C,v[4]=l):l=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(i=e(_,{tickFormatter:$}),d=e(k,{}),v[5]=i,v[6]=d):(i=v[5],d=v[6]),v[7]!==R?(p=e(w,{xTickFormatter:R}),v[7]=R,v[8]=p):p=v[8],v[9]!==l||v[10]!==p?(y=e("div",{className:"w-800",children:t(c,{children:[r,t(b,{data:N,series:x,xKey:"timestamp","data-testid":"column-chart",children:[n,t(S,{children:[a,l,i,d,p]})]})]})}),v[9]=l,v[10]=p,v[11]=y):y=v[11],y},meta:v},{name:"AdaptiveWidth",story:()=>{let r,n,a,l,i,d,p,h,y,v,C,R,D,O,M,T=(0,o.c)(25),{formatDate:F,formatDateWithTimezone:W}=u();return T[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(s,{children:e(m,{children:"7 days"})}),T[0]=r):r=T[0],T[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(f,{}),T[1]=n):n=T[1],T[2]!==F?(a=e(g,{tickFormatter:F}),T[2]=F,T[3]=a):a=T[3],T[4]===Symbol.for("react.memo_cache_sentinel")?(l=e(_,{tickFormatter:$}),i=e(k,{}),T[4]=l,T[5]=i):(l=T[4],i=T[5]),T[6]!==W?(d=e(w,{xTickFormatter:W}),T[6]=W,T[7]=d):d=T[7],T[8]!==a||T[9]!==d?(p=e("div",{className:"w-428",children:t(c,{children:[r,e(b,{data:N,series:x,xKey:"timestamp","data-testid":"column-chart-week",children:t(S,{children:[n,a,l,i,d]})})]})}),T[8]=a,T[9]=d,T[10]=p):p=T[10],T[11]===Symbol.for("react.memo_cache_sentinel")?(h=e(s,{children:e(m,{children:"14 days"})}),T[11]=h):h=T[11],T[12]===Symbol.for("react.memo_cache_sentinel")?(y=e(f,{}),T[12]=y):y=T[12],T[13]!==F?(v=e(g,{tickFormatter:F}),T[13]=F,T[14]=v):v=T[14],T[15]===Symbol.for("react.memo_cache_sentinel")?(C=e(_,{tickFormatter:$}),R=e(k,{}),T[15]=C,T[16]=R):(C=T[15],R=T[16]),T[17]!==W?(D=e(w,{xTickFormatter:W}),T[17]=W,T[18]=D):D=T[18],T[19]!==D||T[20]!==v?(O=e("div",{className:"w-428",children:t(c,{children:[h,e(b,{data:E,series:x,xKey:"timestamp","data-testid":"column-chart-two-weeks",children:t(S,{children:[y,v,C,R,D]})})]})}),T[19]=D,T[20]=v,T[21]=O):O=T[21],T[22]!==O||T[23]!==p?(M=t("div",{className:"flex gap-16",children:[p,O]}),T[22]=O,T[23]=p,T[24]=M):M=T[24],M},meta:v},{name:"CardHeight",story:()=>{let r,n,a,l,i,d,p,y,v,C,R,E,D,O,F,W,j,L=(0,o.c)(27),{formatDate:I,formatDateWithTimezone:P}=u();return L[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(s,{children:e(m,{children:"128px card"})}),L[0]=r):r=L[0],L[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(h,{children:x.map(M)}),L[1]=n):n=L[1],L[2]===Symbol.for("react.memo_cache_sentinel")?(a=e(f,{}),L[2]=a):a=L[2],L[3]!==I?(l=e(g,{tickFormatter:I}),L[3]=I,L[4]=l):l=L[4],L[5]===Symbol.for("react.memo_cache_sentinel")?(i=e(_,{tickFormatter:$}),d=e(k,{}),L[5]=i,L[6]=d):(i=L[5],d=L[6]),L[7]!==P?(p=e(w,{xTickFormatter:P}),L[7]=P,L[8]=p):p=L[8],L[9]!==l||L[10]!==p?(y=t(c,{className:"h-128",children:[r,t(b,{data:N,series:x,xKey:"timestamp","data-testid":"column-chart-min",children:[n,t(S,{children:[a,l,i,d,p]})]})]}),L[9]=l,L[10]=p,L[11]=y):y=L[11],L[12]===Symbol.for("react.memo_cache_sentinel")?(v=e(s,{children:e(m,{children:"320px card"})}),L[12]=v):v=L[12],L[13]===Symbol.for("react.memo_cache_sentinel")?(C=e(h,{children:x.map(T)}),L[13]=C):C=L[13],L[14]===Symbol.for("react.memo_cache_sentinel")?(R=e(f,{}),L[14]=R):R=L[14],L[15]!==I?(E=e(g,{tickFormatter:I}),L[15]=I,L[16]=E):E=L[16],L[17]===Symbol.for("react.memo_cache_sentinel")?(D=e(_,{tickFormatter:$}),O=e(k,{}),L[17]=D,L[18]=O):(D=L[17],O=L[18]),L[19]!==P?(F=e(w,{xTickFormatter:P}),L[19]=P,L[20]=F):F=L[20],L[21]!==E||L[22]!==F?(W=t(c,{className:"h-320",children:[v,t(b,{data:N,series:x,xKey:"timestamp","data-testid":"column-chart-tall",children:[C,t(S,{children:[R,E,D,O,F]})]})]}),L[21]=E,L[22]=F,L[23]=W):W=L[23],L[24]!==W||L[25]!==y?(j=t("div",{className:"flex w-800 flex-col gap-16",children:[y,W]}),L[24]=W,L[25]=y,L[26]=j):j=L[26],j},meta:v},{name:"ClickableLegend",story:()=>{let r,n,a,i,d,v,C,E,D=(0,o.c)(12),{formatDate:O,formatDateWithTimezone:M}=u();return D[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(s,{children:e(m,{children:"Click a verdict to open it"})}),D[0]=r):r=D[0],D[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(h,{children:x.map(r=>{let n;return t(y,{seriesKey:r.key,onClick:F,children:[e(p,{color:r.color}),e("span",{className:"text-xs font-mono text-text-primary",children:r.label}),e("span",{className:"text-xs font-mono font-medium text-text-primary",children:(n=R[r.key]??0,l.format(n))})]},r.key)})}),D[1]=n):n=D[1],D[2]===Symbol.for("react.memo_cache_sentinel")?(a=e(f,{}),D[2]=a):a=D[2],D[3]!==O?(i=e(g,{tickFormatter:O}),D[3]=O,D[4]=i):i=D[4],D[5]===Symbol.for("react.memo_cache_sentinel")?(d=e(_,{tickFormatter:$}),v=e(k,{}),D[5]=d,D[6]=v):(d=D[5],v=D[6]),D[7]!==M?(C=e(w,{xTickFormatter:M}),D[7]=M,D[8]=C):C=D[8],D[9]!==i||D[10]!==C?(E=e("div",{className:"w-800",children:t(c,{children:[r,t(b,{data:N,series:x,xKey:"timestamp","data-testid":"column-chart",children:[n,t(S,{children:[a,i,d,v,C]})]})]})}),D[9]=i,D[10]=C,D[11]=E):E=D[11],E},meta:v},{name:"Loading",story:()=>{let r,n,a=(0,o.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(s,{children:e(m,{children:"Findings by verdict"})}),a[0]=r):r=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=e("div",{className:"w-800",children:t(c,{"aria-busy":"true","aria-live":"polite",children:[r,e(h,{children:x.map(W)}),e(d,{})]})}),a[1]=n):n=a[1],n},meta:v},{name:"Empty",story:()=>{let r,n=(0,o.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=e("div",{className:"w-800",children:t(c,{children:[e(s,{children:e(m,{children:"Findings by verdict"})}),e(d,{children:"No findings in this period"})]})}),n[0]=r):r=n[0],r},meta:v}];function I({entry:e}){let{story:t,meta:r}=e,n={...r.args,...t.args},a="function"==typeof t||t.$$typeof?t:t.render||r.render||r.component,o=()=>j.default.createElement(a,n),l={args:n,globals:{theme:"light"},parameters:{...r.parameters,...t.parameters},viewMode:"story"};for(let e of[...r.decorators||[],...t.decorators||[]].reverse()){let t=o;o=()=>e(t,l)}return j.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},j.default.createElement("h2",{className:"text-sm mb-12"},e.name),j.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(j.default.createElement(window.WallarmDS.Root,null,L.map((e,t)=>j.default.createElement(I,{key:t,entry:e})))),t}}})();
|