@wallarm-org/claude-design 0.0.0-stage → 4.9.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,412 @@
|
|
|
1
|
+
A read-only log of what Wally did while answering — searches, tool calls, its own reasoning — so the user can see how it got there without the steps crowding the answer. Each `ChainOfThoughtStep` is one line: a type icon, a label and an optional right-aligned metric, joined to the next step by a thin connector. A step with children becomes a collapsible trigger, and children can be another `ChainOfThought`, so runs nest as deep as the agent did. The app owns the mapping from step type to icon (see **Type Icons**); the DS only draws the row.
|
|
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
|
+
| `type` | `"a" \| "i" \| "1" \| "A" \| "I" \| undefined` | no | — | |
|
|
10
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
12
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `id` | `string \| undefined` | no | — | |
|
|
14
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
15
|
+
| `title` | `string \| undefined` | no | — | |
|
|
16
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
17
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
18
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
19
|
+
|
|
20
|
+
## Sub-components
|
|
21
|
+
|
|
22
|
+
- `WallarmDS.ChainOfThoughtStep` — `ChainOfThoughtStepProps` in the declaration bundle.
|
|
23
|
+
|
|
24
|
+
## Stories
|
|
25
|
+
|
|
26
|
+
### Basic
|
|
27
|
+
|
|
28
|
+
Icon steps joined by connectors; the last step drops its line.
|
|
29
|
+
|
|
30
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#Basic
|
|
31
|
+
|
|
32
|
+
### Nested
|
|
33
|
+
|
|
34
|
+
Steps with children toggle open; a nested chain can hold its own collapsible steps.
|
|
35
|
+
|
|
36
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#Nested
|
|
37
|
+
|
|
38
|
+
### SimpleRows
|
|
39
|
+
|
|
40
|
+
`icon={null}` gives the Figma "Simple" row: no icon cell, no connector, 16px apart.
|
|
41
|
+
|
|
42
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#SimpleRows
|
|
43
|
+
|
|
44
|
+
### SimpleResult
|
|
45
|
+
|
|
46
|
+
`metric` adds a right-aligned mono value — the Figma "Simple-result" row.
|
|
47
|
+
|
|
48
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#SimpleResult
|
|
49
|
+
|
|
50
|
+
### Working
|
|
51
|
+
|
|
52
|
+
`status='running'` shimmers the label while the step is in progress.
|
|
53
|
+
|
|
54
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#Working
|
|
55
|
+
|
|
56
|
+
### Streaming
|
|
57
|
+
|
|
58
|
+
A step that mounts as `running` fades in and settles 4px; the previous step's connector grows
|
|
59
|
+
toward it; on `done` the shimmer fades into the plain label. Steps that mount `done` (history)
|
|
60
|
+
appear instantly. All of it is off under `prefers-reduced-motion`.
|
|
61
|
+
|
|
62
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#Streaming
|
|
63
|
+
|
|
64
|
+
### ErrorStep
|
|
65
|
+
|
|
66
|
+
`status='error'` tints the label and the type icon danger, for a step that failed. Word the
|
|
67
|
+
label as a failure too (color alone is not enough); put the detail in the step's children.
|
|
68
|
+
Not in Figma yet; pending design review.
|
|
69
|
+
|
|
70
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#ErrorStep
|
|
71
|
+
|
|
72
|
+
### WorkedSummary
|
|
73
|
+
|
|
74
|
+
The whole run folded under one "Worked for …" step with the Activity icon.
|
|
75
|
+
|
|
76
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#WorkedSummary
|
|
77
|
+
|
|
78
|
+
### RichTextContent
|
|
79
|
+
|
|
80
|
+
Nested content can be prose: paragraphs, bullets and inline code.
|
|
81
|
+
|
|
82
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#RichTextContent
|
|
83
|
+
|
|
84
|
+
### TypeIcons
|
|
85
|
+
|
|
86
|
+
The recommended step-type → icon mapping. The app owns it; this is documentation only.
|
|
87
|
+
|
|
88
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#TypeIcons
|
|
89
|
+
|
|
90
|
+
### Controlled
|
|
91
|
+
|
|
92
|
+
`open` + `onOpenChange` drive the step from outside.
|
|
93
|
+
|
|
94
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#Controlled
|
|
95
|
+
|
|
96
|
+
### Analytics
|
|
97
|
+
|
|
98
|
+
`data-analytics-*` on a collapsible step lands on the row `<button>`, not the `<li>`.
|
|
99
|
+
|
|
100
|
+
Source: ChainOfThought/ChainOfThought.stories.tsx#Analytics
|
|
101
|
+
|
|
102
|
+
## Story sources
|
|
103
|
+
|
|
104
|
+
### ChainOfThought/ChainOfThought.stories.tsx
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
import { useState } from 'react';
|
|
108
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
109
|
+
import {
|
|
110
|
+
Activity,
|
|
111
|
+
BadgeCheck,
|
|
112
|
+
Bot,
|
|
113
|
+
Brain,
|
|
114
|
+
CircleDashed,
|
|
115
|
+
Database,
|
|
116
|
+
Download,
|
|
117
|
+
FilePlus,
|
|
118
|
+
FileText,
|
|
119
|
+
Filter,
|
|
120
|
+
GitBranch,
|
|
121
|
+
Globe,
|
|
122
|
+
Link,
|
|
123
|
+
ListChecks,
|
|
124
|
+
Pencil,
|
|
125
|
+
Plug,
|
|
126
|
+
Radar,
|
|
127
|
+
Search,
|
|
128
|
+
ShieldAlert,
|
|
129
|
+
Terminal,
|
|
130
|
+
Wrench,
|
|
131
|
+
} from '../../icons';
|
|
132
|
+
import { Button } from '../Button';
|
|
133
|
+
import { InlineCodeSnippet } from '../CodeSnippet';
|
|
134
|
+
import { ChainOfThought, ChainOfThoughtStep } from './index';
|
|
135
|
+
|
|
136
|
+
const DESCRIPTION = [
|
|
137
|
+
'A read-only log of what Wally did while answering — searches, tool calls, its own reasoning — so the user can see how it got there without the steps crowding the answer.',
|
|
138
|
+
'Each `ChainOfThoughtStep` is one line: a type icon, a label and an optional right-aligned metric, joined to the next step by a thin connector.',
|
|
139
|
+
'A step with children becomes a collapsible trigger, and children can be another `ChainOfThought`, so runs nest as deep as the agent did.',
|
|
140
|
+
'The app owns the mapping from step type to icon (see **Type Icons**); the DS only draws the row.',
|
|
141
|
+
].join(' ');
|
|
142
|
+
|
|
143
|
+
const meta = {
|
|
144
|
+
title: 'AI/ChainOfThought',
|
|
145
|
+
component: ChainOfThought,
|
|
146
|
+
subcomponents: { ChainOfThoughtStep },
|
|
147
|
+
parameters: {
|
|
148
|
+
layout: 'padded',
|
|
149
|
+
docs: { description: { component: DESCRIPTION } },
|
|
150
|
+
},
|
|
151
|
+
decorators: [
|
|
152
|
+
Story => (
|
|
153
|
+
<div className='max-w-[400px]'>
|
|
154
|
+
<Story />
|
|
155
|
+
</div>
|
|
156
|
+
),
|
|
157
|
+
],
|
|
158
|
+
} satisfies Meta<typeof ChainOfThought>;
|
|
159
|
+
|
|
160
|
+
export default meta;
|
|
161
|
+
|
|
162
|
+
/** Icon steps joined by connectors; the last step drops its line. */
|
|
163
|
+
export const Basic: StoryFn<typeof meta> = () => (
|
|
164
|
+
<ChainOfThought data-testid='cot'>
|
|
165
|
+
<ChainOfThoughtStep icon={<Brain />} label='Thought for 5s' />
|
|
166
|
+
<ChainOfThoughtStep icon={<Search />} label='Searched for blocked requests' />
|
|
167
|
+
<ChainOfThoughtStep icon={<Database />} label='Queried attack events' />
|
|
168
|
+
<ChainOfThoughtStep icon={<FileText />} label='Read the policy for api.example.com' />
|
|
169
|
+
</ChainOfThought>
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
/** Steps with children toggle open; a nested chain can hold its own collapsible steps. */
|
|
173
|
+
export const Nested: StoryFn<typeof meta> = () => (
|
|
174
|
+
<ChainOfThought data-testid='cot'>
|
|
175
|
+
<ChainOfThoughtStep icon={<Brain />} label='Thought for 5s' />
|
|
176
|
+
<ChainOfThoughtStep
|
|
177
|
+
icon={<Bot />}
|
|
178
|
+
label='Ran the triage subagent'
|
|
179
|
+
defaultOpen
|
|
180
|
+
data-testid='cot-subagent'
|
|
181
|
+
>
|
|
182
|
+
<ChainOfThought>
|
|
183
|
+
<ChainOfThoughtStep icon={<Search />} label='Searched for ABC' />
|
|
184
|
+
<ChainOfThoughtStep icon={<Wrench />} label='Called get_attacks' data-testid='cot-tool'>
|
|
185
|
+
<p>Returned 42 attacks over the last 24 hours.</p>
|
|
186
|
+
</ChainOfThoughtStep>
|
|
187
|
+
<ChainOfThoughtStep icon={<ListChecks />} label='Made a plan' />
|
|
188
|
+
</ChainOfThought>
|
|
189
|
+
</ChainOfThoughtStep>
|
|
190
|
+
<ChainOfThoughtStep
|
|
191
|
+
icon={<FilePlus />}
|
|
192
|
+
label='Created a rule draft'
|
|
193
|
+
data-testid='cot-collapsed'
|
|
194
|
+
>
|
|
195
|
+
<p>Draft rule blocks SQL injection on /api/v1/login.</p>
|
|
196
|
+
</ChainOfThoughtStep>
|
|
197
|
+
</ChainOfThought>
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
/** `icon={null}` gives the Figma "Simple" row: no icon cell, no connector, 16px apart. */
|
|
201
|
+
export const SimpleRows: StoryFn<typeof meta> = () => (
|
|
202
|
+
<ChainOfThought data-testid='cot'>
|
|
203
|
+
<ChainOfThoughtStep icon={null} label='Checked 3 applications' />
|
|
204
|
+
<ChainOfThoughtStep icon={null} label='Compared rule sets' />
|
|
205
|
+
<ChainOfThoughtStep icon={null} label='Found 2 overlapping rules' />
|
|
206
|
+
</ChainOfThought>
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
/** `metric` adds a right-aligned mono value — the Figma "Simple-result" row. */
|
|
210
|
+
export const SimpleResult: StoryFn<typeof meta> = () => (
|
|
211
|
+
<ChainOfThought data-testid='cot'>
|
|
212
|
+
<ChainOfThoughtStep icon={null} label='Scanned endpoints' metric='1,204' />
|
|
213
|
+
<ChainOfThoughtStep icon={null} label='Matched attacks' metric='42' />
|
|
214
|
+
<ChainOfThoughtStep icon={null} label='Elapsed' metric='3m 45s' />
|
|
215
|
+
</ChainOfThought>
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
/** `status='running'` shimmers the label while the step is in progress. */
|
|
219
|
+
export const Working: StoryFn<typeof meta> = () => (
|
|
220
|
+
<ChainOfThought data-testid='cot'>
|
|
221
|
+
<ChainOfThoughtStep icon={<Search />} label='Searched for ABC' />
|
|
222
|
+
<ChainOfThoughtStep icon={<Globe />} label='Searching the web...' status='running' />
|
|
223
|
+
</ChainOfThought>
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
const HISTORY_STEPS = [
|
|
227
|
+
{ icon: <Search />, label: 'Searched for ABC' },
|
|
228
|
+
{ icon: <Globe />, label: 'Searched the web' },
|
|
229
|
+
];
|
|
230
|
+
|
|
231
|
+
const STREAMING_STEPS = [
|
|
232
|
+
{ icon: <Brain />, label: 'Thinking...', done: 'Thought for 5s' },
|
|
233
|
+
{
|
|
234
|
+
icon: <Search />,
|
|
235
|
+
label: 'Searching for blocked requests...',
|
|
236
|
+
done: 'Searched for blocked requests',
|
|
237
|
+
},
|
|
238
|
+
{ icon: <Database />, label: 'Querying attack events...', done: 'Queried attack events' },
|
|
239
|
+
{ icon: <FilePlus />, label: 'Creating a rule draft...', done: 'Created a rule draft' },
|
|
240
|
+
];
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* A step that mounts as `running` fades in and settles 4px; the previous step's connector grows
|
|
244
|
+
* toward it; on `done` the shimmer fades into the plain label. Steps that mount `done` (history)
|
|
245
|
+
* appear instantly. All of it is off under `prefers-reduced-motion`.
|
|
246
|
+
*/
|
|
247
|
+
export const Streaming: StoryFn<typeof meta> = () => {
|
|
248
|
+
const [count, setCount] = useState(1);
|
|
249
|
+
const finished = count > STREAMING_STEPS.length;
|
|
250
|
+
|
|
251
|
+
const handleClick = () => {
|
|
252
|
+
setCount(count + 1);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
return (
|
|
256
|
+
<div className='flex flex-col gap-12'>
|
|
257
|
+
<ChainOfThought data-testid='cot'>
|
|
258
|
+
{HISTORY_STEPS.map(step => (
|
|
259
|
+
<ChainOfThoughtStep key={step.label} icon={step.icon} label={step.label} />
|
|
260
|
+
))}
|
|
261
|
+
{STREAMING_STEPS.slice(0, count).map((step, i) => {
|
|
262
|
+
const running = i === count - 1;
|
|
263
|
+
return (
|
|
264
|
+
<ChainOfThoughtStep
|
|
265
|
+
key={step.done}
|
|
266
|
+
icon={step.icon}
|
|
267
|
+
label={running ? step.label : step.done}
|
|
268
|
+
status={running ? 'running' : 'done'}
|
|
269
|
+
/>
|
|
270
|
+
);
|
|
271
|
+
})}
|
|
272
|
+
</ChainOfThought>
|
|
273
|
+
<div>
|
|
274
|
+
<Button
|
|
275
|
+
variant='secondary'
|
|
276
|
+
color='neutral'
|
|
277
|
+
size='small'
|
|
278
|
+
disabled={finished}
|
|
279
|
+
onClick={handleClick}
|
|
280
|
+
data-testid='next-step'
|
|
281
|
+
>
|
|
282
|
+
{count === STREAMING_STEPS.length ? 'Finish' : 'Next step'}
|
|
283
|
+
</Button>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
);
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* `status='error'` tints the label and the type icon danger, for a step that failed. Word the
|
|
291
|
+
* label as a failure too (color alone is not enough); put the detail in the step's children.
|
|
292
|
+
* Not in Figma yet; pending design review.
|
|
293
|
+
*/
|
|
294
|
+
export const ErrorStep: StoryFn<typeof meta> = () => (
|
|
295
|
+
<ChainOfThought data-testid='cot'>
|
|
296
|
+
<ChainOfThoughtStep icon={<Search />} label='Searched for ABC' />
|
|
297
|
+
<ChainOfThoughtStep
|
|
298
|
+
icon={<Plug />}
|
|
299
|
+
label='get_attacks failed'
|
|
300
|
+
status='error'
|
|
301
|
+
defaultOpen
|
|
302
|
+
data-testid='cot-error'
|
|
303
|
+
>
|
|
304
|
+
<p>Request failed: 503 Service Unavailable.</p>
|
|
305
|
+
</ChainOfThoughtStep>
|
|
306
|
+
<ChainOfThoughtStep icon={<Plug />} label='get_rules failed' status='error' />
|
|
307
|
+
</ChainOfThought>
|
|
308
|
+
);
|
|
309
|
+
|
|
310
|
+
/** The whole run folded under one "Worked for …" step with the Activity icon. */
|
|
311
|
+
export const WorkedSummary: StoryFn<typeof meta> = () => (
|
|
312
|
+
<ChainOfThought data-testid='cot'>
|
|
313
|
+
<ChainOfThoughtStep
|
|
314
|
+
icon={<Activity />}
|
|
315
|
+
label='Worked for 3m 45s'
|
|
316
|
+
defaultOpen
|
|
317
|
+
data-testid='cot-summary'
|
|
318
|
+
>
|
|
319
|
+
<ChainOfThought>
|
|
320
|
+
<ChainOfThoughtStep icon={<Brain />} label='Thought for 5s' />
|
|
321
|
+
<ChainOfThoughtStep icon={<Terminal />} label='Ran wallarm-cli status' />
|
|
322
|
+
<ChainOfThoughtStep icon={<Radar />} label='Scanned 12 hosts' />
|
|
323
|
+
<ChainOfThoughtStep icon={<BadgeCheck />} label='Created a mitigation rule' />
|
|
324
|
+
</ChainOfThought>
|
|
325
|
+
</ChainOfThoughtStep>
|
|
326
|
+
</ChainOfThought>
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
/** Nested content can be prose: paragraphs, bullets and inline code. */
|
|
330
|
+
export const RichTextContent: StoryFn<typeof meta> = () => (
|
|
331
|
+
<ChainOfThought data-testid='cot'>
|
|
332
|
+
<ChainOfThoughtStep icon={<Brain />} label='Thought for 12s' defaultOpen>
|
|
333
|
+
<p>
|
|
334
|
+
The user wants to know why requests to{' '}
|
|
335
|
+
<InlineCodeSnippet
|
|
336
|
+
code='/api/login'
|
|
337
|
+
copyable={false}
|
|
338
|
+
size='sm'
|
|
339
|
+
className='text-text-secondary'
|
|
340
|
+
/>{' '}
|
|
341
|
+
were blocked.
|
|
342
|
+
</p>
|
|
343
|
+
<ul>
|
|
344
|
+
<li>Check recent attacks on that path.</li>
|
|
345
|
+
<li>Compare them with the active rules.</li>
|
|
346
|
+
</ul>
|
|
347
|
+
<p>Then suggest the narrowest rule change.</p>
|
|
348
|
+
</ChainOfThoughtStep>
|
|
349
|
+
</ChainOfThought>
|
|
350
|
+
);
|
|
351
|
+
|
|
352
|
+
/** The recommended step-type → icon mapping. The app owns it; this is documentation only. */
|
|
353
|
+
export const TypeIcons: StoryFn<typeof meta> = () => (
|
|
354
|
+
<ChainOfThought data-testid='cot'>
|
|
355
|
+
<ChainOfThoughtStep icon={<Brain />} label='thinking' />
|
|
356
|
+
<ChainOfThoughtStep icon={<ListChecks />} label='plan' />
|
|
357
|
+
<ChainOfThoughtStep icon={<GitBranch />} label='decision' />
|
|
358
|
+
<ChainOfThoughtStep icon={<Bot />} label='subagent' />
|
|
359
|
+
<ChainOfThoughtStep icon={<Wrench />} label='tool' />
|
|
360
|
+
<ChainOfThoughtStep icon={<Terminal />} label='command' />
|
|
361
|
+
<ChainOfThoughtStep icon={<Globe />} label='web search' />
|
|
362
|
+
<ChainOfThoughtStep icon={<Search />} label='query' />
|
|
363
|
+
<ChainOfThoughtStep icon={<Database />} label='datastore' />
|
|
364
|
+
<ChainOfThoughtStep icon={<Plug />} label='api' />
|
|
365
|
+
<ChainOfThoughtStep icon={<FileText />} label='read' />
|
|
366
|
+
<ChainOfThoughtStep icon={<Download />} label='fetch' />
|
|
367
|
+
<ChainOfThoughtStep icon={<Filter />} label='filter' />
|
|
368
|
+
<ChainOfThoughtStep icon={<FilePlus />} label='create' />
|
|
369
|
+
<ChainOfThoughtStep icon={<Pencil />} label='edit' />
|
|
370
|
+
<ChainOfThoughtStep icon={<Link />} label='cite' />
|
|
371
|
+
<ChainOfThoughtStep icon={<ShieldAlert />} label='threat' />
|
|
372
|
+
<ChainOfThoughtStep icon={<Radar />} label='scan' />
|
|
373
|
+
<ChainOfThoughtStep icon={<CircleDashed />} label='pending / default' />
|
|
374
|
+
<ChainOfThoughtStep icon={<Activity />} label='summary' />
|
|
375
|
+
<ChainOfThoughtStep icon={<BadgeCheck />} label='"Created" example' />
|
|
376
|
+
</ChainOfThought>
|
|
377
|
+
);
|
|
378
|
+
|
|
379
|
+
/** `open` + `onOpenChange` drive the step from outside. */
|
|
380
|
+
export const Controlled: StoryFn<typeof meta> = () => {
|
|
381
|
+
const [open, setOpen] = useState(false);
|
|
382
|
+
return (
|
|
383
|
+
<div className='flex flex-col gap-12'>
|
|
384
|
+
<ChainOfThought data-testid='cot'>
|
|
385
|
+
<ChainOfThoughtStep
|
|
386
|
+
icon={<Brain />}
|
|
387
|
+
label='Thought for 5s'
|
|
388
|
+
open={open}
|
|
389
|
+
onOpenChange={setOpen}
|
|
390
|
+
>
|
|
391
|
+
<p>Reasoning goes here.</p>
|
|
392
|
+
</ChainOfThoughtStep>
|
|
393
|
+
</ChainOfThought>
|
|
394
|
+
<code className='text-xs text-text-secondary'>open: {String(open)}</code>
|
|
395
|
+
</div>
|
|
396
|
+
);
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
/** `data-analytics-*` on a collapsible step lands on the row `<button>`, not the `<li>`. */
|
|
400
|
+
export const Analytics: StoryFn<typeof meta> = () => (
|
|
401
|
+
<ChainOfThought data-testid='cot'>
|
|
402
|
+
<ChainOfThoughtStep
|
|
403
|
+
icon={<Brain />}
|
|
404
|
+
label='Thought for 5s'
|
|
405
|
+
data-analytics-id='COT_STEP_TOGGLE'
|
|
406
|
+
data-analytics-props='{"type":"thinking"}'
|
|
407
|
+
>
|
|
408
|
+
<p>Reasoning goes here.</p>
|
|
409
|
+
</ChainOfThoughtStep>
|
|
410
|
+
</ChainOfThought>
|
|
411
|
+
);
|
|
412
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,n){let a,l;/**
|
|
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,r,c=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of m(t))u.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(a=s(t,l))||a.enumerable});return e},f={},p={$dispatcherGuard:()=>D,$makeReadOnly:()=>O,$reset:()=>N,$structuralCheck:()=>M,c:()=>C,clearRenderCounterRegistry:()=>I,renderCounterRegistry:()=>T,useRenderCounter:()=>x};for(var y in p)i(f,y,{get:p[y],enumerable:!0});e.exports=h(i({},"__esModule",{value:!0}),f);var b=(l=null!=(a=n("C"))?c(d(a)):{},h(a&&a.__esModule?l:i(l,"default",{value:a,enumerable:!0}),a)),{useRef:_,useEffect:S,isValidElement:w}=b,g=null!=(o=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?o:b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.memo_cache_sentinel"),C="function"==typeof(null==(r=b.__COMPILER_RUNTIME)?void 0:r.c)?b.__COMPILER_RUNTIME.c:function(e){return b.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=R;return t[R]=!0,t},[])},v={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{v[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 E=null;function k(e){return g.ReactCurrentDispatcher.current=e,g.ReactCurrentDispatcher.current}v.useMemoCache=e=>{if(null!=E)return E.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var $=[];function D(e){let t=g.ReactCurrentDispatcher.current;if(0===e){if($.push(t),1===$.length&&(E=t),t===v)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.");k(v)}else if(1===e){let e=$.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===$.length&&(E=null),k(e)}else if(2===e)$.push(t),k(E);else if(3===e){let e=$.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");k(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function N(e){for(let t=0;t<e.length;t++)e[t]=R}function O(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var T=new Map;function I(){for(let e of T.values())e.forEach(e=>{e.count=0})}function x(e){let t=_(null);null!=t.current&&(t.current.count+=1),S(()=>{if(null==t.current){let n,a={count:0};null==(n=T.get(e))&&(n=new Set,T.set(e,n)),n.add(a),t.current=a}return()=>{var n;let a;null!==t.current&&(n=t.current,null!=(a=T.get(e))&&a.delete(n))}})}var W=new Set;function M(e,t,n,a,l,o){function r(e,t,r,c){let i=`${a}:${o} [${l}] ${n}${r} changed from ${e} to ${t} at depth ${c}`;W.has(i)||(W.add(i),console.error(i))}!function e(t,n,a,l){if(!(l>2)){if(t!==n)if(typeof t!=typeof n)r(`type ${typeof t}`,`type ${typeof n}`,a,l);else if("object"==typeof t){let o=Array.isArray(t),c=Array.isArray(n);if(null===t&&null!==n)r("null",`type ${typeof n}`,a,l);else if(null===n)r(`type ${typeof t}`,"null",a,l);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)r(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,a,l);else for(let[o,c]of t)n.has(o)?e(c,n.get(o),`${a}.get(${o})`,l+1):r(`Map instance with key ${o}`,`Map instance without key ${o}`,a,l);else r("Map instance","other value",a,l);else if(n instanceof Map)r("other value","Map instance",a,l);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)r(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,a,l);else for(let e of n)t.has(e)||r(`Set instance without element ${e}`,`Set instance with element ${e}`,a,l);else r("Set instance","other value",a,l);else if(n instanceof Set)r("other value","Set instance",a,l);else if(o||c)if(o!==c)r(`type ${o?"array":"object"}`,`type ${c?"array":"object"}`,a,l);else if(t.length!==n.length)r(`array with length ${t.length}`,`array with length ${n.length}`,a,l);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${a}[${o}]`,l+1);else if(w(t)||w(n))w(t)!==w(n)?r(`type ${w(t)?"React element":"object"}`,`type ${w(n)?"React element":"object"}`,a,l):t.type!==n.type?r(`React element of type ${t.type}`,`React element of type ${n.type}`,a,l):e(t.props,n.props,`[props of ${a}]`,l+1);else{for(let e in n)e in t||r(`object without key ${e}`,`object with key ${e}`,a,l);for(let o in t)o in n?e(t[o],n[o],`${a}.${o}`,l+1):r(`object with key ${o}`,`object without key ${o}`,a,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&r(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,a,l):t!==n&&r(t,n,a,l)}}}(e,t,"",0)}},p(e,t,n){let a=new WeakMap,l=new WeakMap;function o(e,t,n){let o=t,r=n;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!=r.ref&&!o.prototype?.isReactComponent){let t=o,n=a.get(e);n||(n=new WeakMap,a.set(e,n));let l=n.get(t);l||((l=e.forwardRef((e,n)=>t({...e,ref:n}))).displayName=t.displayName??t.name,n.set(t,l)),o=l}if("string"==typeof o&&"boolean"==typeof r.inert&&((r={...r}).inert?r.inert="":delete r.inert),"string"==typeof o)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in r&&(r={...r,[t]:r[e]},delete r[e]);return"string"==typeof o&&null!=r.ref&&(o=function(e,t){let n=l.get(e);n||(n=new Map,l.set(e,n));let a=n.get(t);if(a)return a;let o=e.forwardRef((n,a)=>{let l=e.useRef(null);if(!l.current||l.current.original!==a){let e;l.current={original:a,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof a){let n=a(t);e="function"==typeof n?n:void 0}else a&&(a.current=t)}}}return e.createElement(t,{...n,ref:l.current.callback})});return o.displayName=`CanvasHost(${t})`,n.set(t,o),o}(e,o)),{type:o,props:r}}function r(e){let t=(t,n,a)=>{let l=o(e,t,n??{});return e.createElement(l.type,void 0===a?l.props:{...l.props,key:a})};return{jsx:t,jsxs:(t,n,a)=>{let l=o(e,t,n??{}),{children:r,...c}=l.props;return e.createElement(l.type,void 0===a?c:{...c,key:a},...Array.isArray(r)?r:[r])},jsxDEV:t,Fragment:e.Fragment}}function c(e){return{...e,createElement:(t,n,...a)=>{let l=o(e,t,n??{});return e.createElement(l.type,l.props,...a)},cloneElement:(t,n,...a)=>{let l=e.cloneElement(t,n??void 0,...a),r=l.ref,c=o(e,l.type,{...l.props,ref:r});return c.type===l.type&&"string"!=typeof l.type?l:e.createElement(c.type,{...c.props,key:l.key})}}}n.d(t,{MA:()=>r,YJ:()=>c})},C(e,t,n){n.r(t);let a=(0,n("p").YJ)(window.React),{Children:l,Component:o,Fragment:r,Profiler:c,PureComponent:i,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:u,cloneElement:h,createContext:f,createElement:p,createFactory:y,createRef:b,forwardRef:_,isValidElement:S,lazy:w,memo:g,startTransition:R,unstable_act:C,useCallback:v,useContext:E,useDebugValue:k,useDeferredValue:$,useEffect:D,useId:N,useImperativeHandle:O,useInsertionEffect:T,useLayoutEffect:I,useMemo:x,useReducer:W,useRef:M,useState:A,useSyncExternalStore:j,useTransition:P,version:L,use:z}=a;n.d(t,{},{Children:l,Component:o,Fragment:r,Profiler:c,PureComponent:i,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:u,cloneElement:h,createContext:f,createElement:p,createFactory:y,createRef:b,default:a,forwardRef:_,isValidElement:S,lazy:w,memo:g,startTransition:R,unstable_act:C,use:z,useCallback:v,useContext:E,useDebugValue:k,useDeferredValue:$,useEffect:D,useId:N,useImperativeHandle:O,useInsertionEffect:T,useLayoutEffect:I,useMemo:x,useReducer:W,useRef:M,useState:A,useSyncExternalStore:j,useTransition:P,version:L})}},t={};function n(a){var l=t[a];if(void 0!==l)return l.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.d=(e,t,a)=>{var l=(t,a)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[a]:t[l]})};l(t,"get"),l(a,"value")},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.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:a,Fragment:l}=(0,n("p").MA)(window.React);var o=n("vD"),r=n("C");let c=window.WallarmDS.Icons.Activity,i=window.WallarmDS.Icons.BadgeCheck,s=window.WallarmDS.Icons.Bot,m=window.WallarmDS.Icons.Brain,d=window.WallarmDS.Icons.CircleDashed,u=window.WallarmDS.Icons.Database,h=window.WallarmDS.Icons.Download,f=window.WallarmDS.Icons.FilePlus,p=window.WallarmDS.Icons.FileText,y=window.WallarmDS.Icons.Filter,b=window.WallarmDS.Icons.GitBranch,_=window.WallarmDS.Icons.Globe,S=window.WallarmDS.Icons.Link,w=window.WallarmDS.Icons.ListChecks,g=window.WallarmDS.Icons.Pencil,R=window.WallarmDS.Icons.Plug,C=window.WallarmDS.Icons.Radar,v=window.WallarmDS.Icons.Search,E=window.WallarmDS.Icons.ShieldAlert,k=window.WallarmDS.Icons.Terminal,$=window.WallarmDS.Icons.Wrench,D=window.WallarmDS.Button,N=window.WallarmDS.InlineCodeSnippet,O=window.WallarmDS.ChainOfThought,T=window.WallarmDS.ChainOfThoughtStep,I={title:"AI/ChainOfThought",component:O,subcomponents:{ChainOfThoughtStep:T},parameters:{layout:"padded",docs:{description:{component:"A read-only log of what Wally did while answering — searches, tool calls, its own reasoning — so the user can see how it got there without the steps crowding the answer. Each `ChainOfThoughtStep` is one line: a type icon, a label and an optional right-aligned metric, joined to the next step by a thin connector. A step with children becomes a collapsible trigger, and children can be another `ChainOfThought`, so runs nest as deep as the agent did. The app owns the mapping from step type to icon (see **Type Icons**); the DS only draws the row."}}},decorators:[t=>e("div",{className:"max-w-[400px]",children:e(t,{})})]},x=[{icon:e(v,{}),label:"Searched for ABC"},{icon:e(_,{}),label:"Searched the web"}],W=[{icon:e(m,{}),label:"Thinking...",done:"Thought for 5s"},{icon:e(v,{}),label:"Searching for blocked requests...",done:"Searched for blocked requests"},{icon:e(u,{}),label:"Querying attack events...",done:"Queried attack events"},{icon:e(f,{}),label:"Creating a rule draft...",done:"Created a rule draft"}];function M(t){return e(T,{icon:t.icon,label:t.label},t.label)}let A=[{name:"Basic",story:()=>{let n,a,l,r,c=(0,o.c)(4);return c[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(T,{icon:e(m,{}),label:"Thought for 5s"}),c[0]=n):n=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(T,{icon:e(v,{}),label:"Searched for blocked requests"}),c[1]=a):a=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{icon:e(u,{}),label:"Queried attack events"}),c[2]=l):l=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(r=t(O,{"data-testid":"cot",children:[n,a,l,e(T,{icon:e(p,{}),label:"Read the policy for api.example.com"})]}),c[3]=r):r=c[3],r},meta:I},{name:"Nested",story:()=>{let n,a,l,r,c,i,d,u,h=(0,o.c)(8);return h[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(T,{icon:e(m,{}),label:"Thought for 5s"}),h[0]=n):n=h[0],h[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(s,{}),h[1]=a):a=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{icon:e(v,{}),label:"Searched for ABC"}),h[2]=l):l=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(r=e($,{}),h[3]=r):r=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(c=e(T,{icon:r,label:"Called get_attacks","data-testid":"cot-tool",children:e("p",{children:"Returned 42 attacks over the last 24 hours."})}),h[4]=c):c=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(i=e(T,{icon:a,label:"Ran the triage subagent",defaultOpen:!0,"data-testid":"cot-subagent",children:t(O,{children:[l,c,e(T,{icon:e(w,{}),label:"Made a plan"})]})}),h[5]=i):i=h[5],h[6]===Symbol.for("react.memo_cache_sentinel")?(d=e(f,{}),h[6]=d):d=h[6],h[7]===Symbol.for("react.memo_cache_sentinel")?(u=t(O,{"data-testid":"cot",children:[n,i,e(T,{icon:d,label:"Created a rule draft","data-testid":"cot-collapsed",children:e("p",{children:"Draft rule blocks SQL injection on /api/v1/login."})})]}),h[7]=u):u=h[7],u},meta:I},{name:"SimpleRows",story:()=>{let n,a=(0,o.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(O,{"data-testid":"cot",children:[e(T,{icon:null,label:"Checked 3 applications"}),e(T,{icon:null,label:"Compared rule sets"}),e(T,{icon:null,label:"Found 2 overlapping rules"})]}),a[0]=n):n=a[0],n},meta:I},{name:"SimpleResult",story:()=>{let n,a=(0,o.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(O,{"data-testid":"cot",children:[e(T,{icon:null,label:"Scanned endpoints",metric:"1,204"}),e(T,{icon:null,label:"Matched attacks",metric:"42"}),e(T,{icon:null,label:"Elapsed",metric:"3m 45s"})]}),a[0]=n):n=a[0],n},meta:I},{name:"Working",story:()=>{let n,a,l=(0,o.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(T,{icon:e(v,{}),label:"Searched for ABC"}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(a=t(O,{"data-testid":"cot",children:[n,e(T,{icon:e(_,{}),label:"Searching the web...",status:"running"})]}),l[1]=a):a=l[1],a},meta:I},{name:"Streaming",story:()=>{let n,a,l,c,i,s,m=(0,o.c)(14),[d,u]=(0,r.useState)(1),h=d>W.length;m[0]!==d?(n=()=>{u(d+1)},m[0]=d,m[1]=n):n=m[1];let f=n;m[2]===Symbol.for("react.memo_cache_sentinel")?(a=x.map(M),m[2]=a):a=m[2],m[3]!==d?(l=W.slice(0,d).map((t,n)=>{let a=n===d-1;return e(T,{icon:t.icon,label:a?t.label:t.done,status:a?"running":"done"},t.done)}),m[3]=d,m[4]=l):l=m[4],m[5]!==l?(c=t(O,{"data-testid":"cot",children:[a,l]}),m[5]=l,m[6]=c):c=m[6];let p=d===W.length?"Finish":"Next step";return m[7]!==h||m[8]!==f||m[9]!==p?(i=e("div",{children:e(D,{variant:"secondary",color:"neutral",size:"small",disabled:h,onClick:f,"data-testid":"next-step",children:p})}),m[7]=h,m[8]=f,m[9]=p,m[10]=i):i=m[10],m[11]!==c||m[12]!==i?(s=t("div",{className:"flex flex-col gap-12",children:[c,i]}),m[11]=c,m[12]=i,m[13]=s):s=m[13],s},meta:I},{name:"ErrorStep",story:()=>{let n,a,l,r,c=(0,o.c)(4);return c[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(T,{icon:e(v,{}),label:"Searched for ABC"}),c[0]=n):n=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(R,{}),c[1]=a):a=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{icon:a,label:"get_attacks failed",status:"error",defaultOpen:!0,"data-testid":"cot-error",children:e("p",{children:"Request failed: 503 Service Unavailable."})}),c[2]=l):l=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(r=t(O,{"data-testid":"cot",children:[n,l,e(T,{icon:e(R,{}),label:"get_rules failed",status:"error"})]}),c[3]=r):r=c[3],r},meta:I},{name:"WorkedSummary",story:()=>{let n,a,l,r,s,d=(0,o.c)(5);return d[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(c,{}),d[0]=n):n=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(T,{icon:e(m,{}),label:"Thought for 5s"}),d[1]=a):a=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{icon:e(k,{}),label:"Ran wallarm-cli status"}),d[2]=l):l=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(r=e(T,{icon:e(C,{}),label:"Scanned 12 hosts"}),d[3]=r):r=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(s=e(O,{"data-testid":"cot",children:e(T,{icon:n,label:"Worked for 3m 45s",defaultOpen:!0,"data-testid":"cot-summary",children:t(O,{children:[a,l,r,e(T,{icon:e(i,{}),label:"Created a mitigation rule"})]})})}),d[4]=s):s=d[4],s},meta:I},{name:"RichTextContent",story:()=>{let n,a,l=(0,o.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(m,{}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(O,{"data-testid":"cot",children:t(T,{icon:n,label:"Thought for 12s",defaultOpen:!0,children:[t("p",{children:["The user wants to know why requests to"," ",e(N,{code:"/api/login",copyable:!1,size:"sm",className:"text-text-secondary"})," ","were blocked."]}),t("ul",{children:[e("li",{children:"Check recent attacks on that path."}),e("li",{children:"Compare them with the active rules."})]}),e("p",{children:"Then suggest the narrowest rule change."})]})}),l[1]=a):a=l[1],a},meta:I},{name:"TypeIcons",story:()=>{let n,a,l,r,D,N,I,x,W,M,A,j,P,L,z,B,F,U,q,G,V,Y=(0,o.c)(21);return Y[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(T,{icon:e(m,{}),label:"thinking"}),Y[0]=n):n=Y[0],Y[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(T,{icon:e(w,{}),label:"plan"}),Y[1]=a):a=Y[1],Y[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{icon:e(b,{}),label:"decision"}),Y[2]=l):l=Y[2],Y[3]===Symbol.for("react.memo_cache_sentinel")?(r=e(T,{icon:e(s,{}),label:"subagent"}),Y[3]=r):r=Y[3],Y[4]===Symbol.for("react.memo_cache_sentinel")?(D=e(T,{icon:e($,{}),label:"tool"}),Y[4]=D):D=Y[4],Y[5]===Symbol.for("react.memo_cache_sentinel")?(N=e(T,{icon:e(k,{}),label:"command"}),Y[5]=N):N=Y[5],Y[6]===Symbol.for("react.memo_cache_sentinel")?(I=e(T,{icon:e(_,{}),label:"web search"}),Y[6]=I):I=Y[6],Y[7]===Symbol.for("react.memo_cache_sentinel")?(x=e(T,{icon:e(v,{}),label:"query"}),Y[7]=x):x=Y[7],Y[8]===Symbol.for("react.memo_cache_sentinel")?(W=e(T,{icon:e(u,{}),label:"datastore"}),Y[8]=W):W=Y[8],Y[9]===Symbol.for("react.memo_cache_sentinel")?(M=e(T,{icon:e(R,{}),label:"api"}),Y[9]=M):M=Y[9],Y[10]===Symbol.for("react.memo_cache_sentinel")?(A=e(T,{icon:e(p,{}),label:"read"}),Y[10]=A):A=Y[10],Y[11]===Symbol.for("react.memo_cache_sentinel")?(j=e(T,{icon:e(h,{}),label:"fetch"}),Y[11]=j):j=Y[11],Y[12]===Symbol.for("react.memo_cache_sentinel")?(P=e(T,{icon:e(y,{}),label:"filter"}),Y[12]=P):P=Y[12],Y[13]===Symbol.for("react.memo_cache_sentinel")?(L=e(T,{icon:e(f,{}),label:"create"}),Y[13]=L):L=Y[13],Y[14]===Symbol.for("react.memo_cache_sentinel")?(z=e(T,{icon:e(g,{}),label:"edit"}),Y[14]=z):z=Y[14],Y[15]===Symbol.for("react.memo_cache_sentinel")?(B=e(T,{icon:e(S,{}),label:"cite"}),Y[15]=B):B=Y[15],Y[16]===Symbol.for("react.memo_cache_sentinel")?(F=e(T,{icon:e(E,{}),label:"threat"}),Y[16]=F):F=Y[16],Y[17]===Symbol.for("react.memo_cache_sentinel")?(U=e(T,{icon:e(C,{}),label:"scan"}),Y[17]=U):U=Y[17],Y[18]===Symbol.for("react.memo_cache_sentinel")?(q=e(T,{icon:e(d,{}),label:"pending / default"}),Y[18]=q):q=Y[18],Y[19]===Symbol.for("react.memo_cache_sentinel")?(G=e(T,{icon:e(c,{}),label:"summary"}),Y[19]=G):G=Y[19],Y[20]===Symbol.for("react.memo_cache_sentinel")?(V=t(O,{"data-testid":"cot",children:[n,a,l,r,D,N,I,x,W,M,A,j,P,L,z,B,F,U,q,G,e(T,{icon:e(i,{}),label:'"Created" example'})]}),Y[20]=V):V=Y[20],V},meta:I},{name:"Controlled",story:()=>{let n,a,l,c,i,s=(0,o.c)(9),[d,u]=(0,r.useState)(!1);s[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(m,{}),s[0]=n):n=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(a=e("p",{children:"Reasoning goes here."}),s[1]=a):a=s[1],s[2]!==d?(l=e(O,{"data-testid":"cot",children:e(T,{icon:n,label:"Thought for 5s",open:d,onOpenChange:u,children:a})}),s[2]=d,s[3]=l):l=s[3];let h=String(d);return s[4]!==h?(c=t("code",{className:"text-xs text-text-secondary",children:["open: ",h]}),s[4]=h,s[5]=c):c=s[5],s[6]!==l||s[7]!==c?(i=t("div",{className:"flex flex-col gap-12",children:[l,c]}),s[6]=l,s[7]=c,s[8]=i):i=s[8],i},meta:I},{name:"Analytics",story:()=>{let t,n,a=(0,o.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(m,{}),a[0]=t):t=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(O,{"data-testid":"cot",children:e(T,{icon:t,label:"Thought for 5s","data-analytics-id":"COT_STEP_TOGGLE","data-analytics-props":'{"type":"thinking"}',children:e("p",{children:"Reasoning goes here."})})}),a[1]=n):n=a[1],n},meta:I}];function j({entry:e}){let{story:t,meta:n}=e,a={...n.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,o=()=>r.default.createElement(l,a),c={args:a,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=o;o=()=>e(t,c)}return r.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},r.default.createElement("h2",{className:"text-sm mb-12"},e.name),r.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(r.default.createElement(window.WallarmDS.Root,null,A.map((e,t)=>r.default.createElement(j,{key:t,entry:e})))),t}}})();
|