@wallarm-org/claude-design 0.0.0-stage → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -2
- package/bin/claude-design.js +347 -0
- package/dist/SETUP.md +130 -0
- package/dist/UPDATE.md +84 -0
- package/dist/assets/Icons/activity.svg +1 -0
- package/dist/assets/Icons/alt.svg +1 -0
- package/dist/assets/Icons/android-neutral.svg +1 -0
- package/dist/assets/Icons/android.svg +1 -0
- package/dist/assets/Icons/api.svg +1 -0
- package/dist/assets/Icons/apple-music-neutral.svg +1 -0
- package/dist/assets/Icons/apple-music.svg +1 -0
- package/dist/assets/Icons/apple-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts.svg +1 -0
- package/dist/assets/Icons/apple.svg +1 -0
- package/dist/assets/Icons/archive.svg +1 -0
- package/dist/assets/Icons/arrow-big-up-dash.svg +1 -0
- package/dist/assets/Icons/arrow-big-up.svg +1 -0
- package/dist/assets/Icons/arrow-down-left.svg +1 -0
- package/dist/assets/Icons/arrow-down-right.svg +1 -0
- package/dist/assets/Icons/arrow-down.svg +1 -0
- package/dist/assets/Icons/arrow-left.svg +1 -0
- package/dist/assets/Icons/arrow-right-alt.svg +1 -0
- package/dist/assets/Icons/arrow-right.svg +1 -0
- package/dist/assets/Icons/arrow-up-down.svg +1 -0
- package/dist/assets/Icons/arrow-up-left.svg +1 -0
- package/dist/assets/Icons/arrow-up-right.svg +1 -0
- package/dist/assets/Icons/arrow-up.svg +1 -0
- package/dist/assets/Icons/artstation-neutral.svg +1 -0
- package/dist/assets/Icons/artstation.svg +1 -0
- package/dist/assets/Icons/asterisk.svg +1 -0
- package/dist/assets/Icons/audio-waveform.svg +1 -0
- package/dist/assets/Icons/aws-neutral.svg +1 -0
- package/dist/assets/Icons/aws.svg +1 -0
- package/dist/assets/Icons/badge-check.svg +1 -0
- package/dist/assets/Icons/baidu-neutral.svg +1 -0
- package/dist/assets/Icons/baidu.svg +1 -0
- package/dist/assets/Icons/bandage.svg +1 -0
- package/dist/assets/Icons/behance-neutral.svg +1 -0
- package/dist/assets/Icons/behance.svg +1 -0
- package/dist/assets/Icons/bell-cog.svg +1 -0
- package/dist/assets/Icons/bell.svg +1 -0
- package/dist/assets/Icons/binary.svg +1 -0
- package/dist/assets/Icons/book-open.svg +1 -0
- package/dist/assets/Icons/book.svg +1 -0
- package/dist/assets/Icons/boosty-neutral.svg +1 -0
- package/dist/assets/Icons/boosty.svg +1 -0
- package/dist/assets/Icons/bot.svg +1 -0
- package/dist/assets/Icons/brain.svg +1 -0
- package/dist/assets/Icons/braze-neutral.svg +1 -0
- package/dist/assets/Icons/braze.svg +1 -0
- package/dist/assets/Icons/brevo-neutral.svg +1 -0
- package/dist/assets/Icons/brevo.svg +1 -0
- package/dist/assets/Icons/bug-off.svg +1 -0
- package/dist/assets/Icons/bug-play.svg +1 -0
- package/dist/assets/Icons/bug.svg +1 -0
- package/dist/assets/Icons/building.svg +1 -0
- package/dist/assets/Icons/building2.svg +1 -0
- package/dist/assets/Icons/calendar-check.svg +1 -0
- package/dist/assets/Icons/calendar-check2.svg +1 -0
- package/dist/assets/Icons/calendar-clock.svg +1 -0
- package/dist/assets/Icons/calendar-cog.svg +1 -0
- package/dist/assets/Icons/calendar-days.svg +1 -0
- package/dist/assets/Icons/calendar-fold.svg +1 -0
- package/dist/assets/Icons/calendar-heart.svg +1 -0
- package/dist/assets/Icons/calendar-minus.svg +1 -0
- package/dist/assets/Icons/calendar-minus2.svg +1 -0
- package/dist/assets/Icons/calendar-off.svg +1 -0
- package/dist/assets/Icons/calendar-plus.svg +1 -0
- package/dist/assets/Icons/calendar-plus2.svg +1 -0
- package/dist/assets/Icons/calendar-range.svg +1 -0
- package/dist/assets/Icons/calendar-search.svg +1 -0
- package/dist/assets/Icons/calendar-x.svg +1 -0
- package/dist/assets/Icons/calendar-x2.svg +1 -0
- package/dist/assets/Icons/calendar.svg +1 -0
- package/dist/assets/Icons/chart-area.svg +1 -0
- package/dist/assets/Icons/chart-bar.svg +1 -0
- package/dist/assets/Icons/chart-column.svg +1 -0
- package/dist/assets/Icons/chart-no-axes-column.svg +1 -0
- package/dist/assets/Icons/check-check.svg +1 -0
- package/dist/assets/Icons/check.svg +1 -0
- package/dist/assets/Icons/checkbox-indeterminate.svg +1 -0
- package/dist/assets/Icons/chevron-down.svg +1 -0
- package/dist/assets/Icons/chevron-first.svg +1 -0
- package/dist/assets/Icons/chevron-last.svg +1 -0
- package/dist/assets/Icons/chevron-left.svg +1 -0
- package/dist/assets/Icons/chevron-right.svg +1 -0
- package/dist/assets/Icons/chevron-up-down.svg +1 -0
- package/dist/assets/Icons/chevron-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down.svg +1 -0
- package/dist/assets/Icons/chevrons-left-right.svg +1 -0
- package/dist/assets/Icons/chevrons-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right.svg +1 -0
- package/dist/assets/Icons/chevrons-up-down.svg +1 -0
- package/dist/assets/Icons/chevrons-up.svg +1 -0
- package/dist/assets/Icons/circle-arrow-down.svg +1 -0
- package/dist/assets/Icons/circle-arrow-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-up.svg +1 -0
- package/dist/assets/Icons/circle-check-big.svg +1 -0
- package/dist/assets/Icons/circle-check.svg +1 -0
- package/dist/assets/Icons/circle-chevron-down.svg +1 -0
- package/dist/assets/Icons/circle-chevron-left.svg +1 -0
- package/dist/assets/Icons/circle-chevron-right.svg +1 -0
- package/dist/assets/Icons/circle-chevron-up.svg +1 -0
- package/dist/assets/Icons/circle-dashed.svg +1 -0
- package/dist/assets/Icons/circle-dot-dashed.svg +1 -0
- package/dist/assets/Icons/circle-ellipsis.svg +1 -0
- package/dist/assets/Icons/circle-gauge.svg +1 -0
- package/dist/assets/Icons/circle-help.svg +1 -0
- package/dist/assets/Icons/circle-minus.svg +1 -0
- package/dist/assets/Icons/circle-plus.svg +1 -0
- package/dist/assets/Icons/circle-slash.svg +1 -0
- package/dist/assets/Icons/circle-slash2.svg +1 -0
- package/dist/assets/Icons/circle-stop.svg +1 -0
- package/dist/assets/Icons/circle.svg +1 -0
- package/dist/assets/Icons/clipboard-check.svg +1 -0
- package/dist/assets/Icons/clipboard-x.svg +1 -0
- package/dist/assets/Icons/clipboard.svg +1 -0
- package/dist/assets/Icons/clock-fading.svg +1 -0
- package/dist/assets/Icons/clock.svg +1 -0
- package/dist/assets/Icons/cloud-off.svg +1 -0
- package/dist/assets/Icons/cloud-sync.svg +1 -0
- package/dist/assets/Icons/cloud.svg +1 -0
- package/dist/assets/Icons/code.svg +1 -0
- package/dist/assets/Icons/collapse.svg +1 -0
- package/dist/assets/Icons/columns3-cog.svg +1 -0
- package/dist/assets/Icons/command.svg +1 -0
- package/dist/assets/Icons/compass.svg +1 -0
- package/dist/assets/Icons/copy-slash.svg +1 -0
- package/dist/assets/Icons/copy.svg +1 -0
- package/dist/assets/Icons/corner-down-left.svg +1 -0
- package/dist/assets/Icons/corner-down-right.svg +1 -0
- package/dist/assets/Icons/corner-left-down.svg +1 -0
- package/dist/assets/Icons/corner-left-up.svg +1 -0
- package/dist/assets/Icons/corner-right-down.svg +1 -0
- package/dist/assets/Icons/corner-right-up.svg +1 -0
- package/dist/assets/Icons/corner-up-left.svg +1 -0
- package/dist/assets/Icons/corner-up-right.svg +1 -0
- package/dist/assets/Icons/cpu.svg +1 -0
- package/dist/assets/Icons/credit-card.svg +1 -0
- package/dist/assets/Icons/crosshair.svg +1 -0
- package/dist/assets/Icons/ctrl.svg +1 -0
- package/dist/assets/Icons/database.svg +1 -0
- package/dist/assets/Icons/devianart-neutral.svg +1 -0
- package/dist/assets/Icons/devianart.svg +1 -0
- package/dist/assets/Icons/discord-neutral.svg +1 -0
- package/dist/assets/Icons/discord.svg +1 -0
- package/dist/assets/Icons/dollar-sign.svg +1 -0
- package/dist/assets/Icons/dot.svg +1 -0
- package/dist/assets/Icons/download.svg +1 -0
- package/dist/assets/Icons/dprofile-neutral.svg +1 -0
- package/dist/assets/Icons/dprofile.svg +1 -0
- package/dist/assets/Icons/dribbble-neutral.svg +1 -0
- package/dist/assets/Icons/dribbble.svg +1 -0
- package/dist/assets/Icons/droplet.svg +1 -0
- package/dist/assets/Icons/duplicate.svg +1 -0
- package/dist/assets/Icons/dzen-neutral.svg +1 -0
- package/dist/assets/Icons/dzen.svg +1 -0
- package/dist/assets/Icons/earth-lock.svg +1 -0
- package/dist/assets/Icons/earth.svg +1 -0
- package/dist/assets/Icons/ellipsis.svg +1 -0
- package/dist/assets/Icons/expand.svg +1 -0
- package/dist/assets/Icons/external-link.svg +1 -0
- package/dist/assets/Icons/eye-off.svg +1 -0
- package/dist/assets/Icons/eye.svg +1 -0
- package/dist/assets/Icons/facebook-neutral.svg +1 -0
- package/dist/assets/Icons/facebook.svg +1 -0
- package/dist/assets/Icons/fast-forward.svg +1 -0
- package/dist/assets/Icons/figma-neutral.svg +1 -0
- package/dist/assets/Icons/figma.svg +1 -0
- package/dist/assets/Icons/file-down.svg +1 -0
- package/dist/assets/Icons/file-plus.svg +1 -0
- package/dist/assets/Icons/file-text.svg +1 -0
- package/dist/assets/Icons/file.svg +1 -0
- package/dist/assets/Icons/film.svg +1 -0
- package/dist/assets/Icons/filter-x.svg +1 -0
- package/dist/assets/Icons/filter.svg +1 -0
- package/dist/assets/Icons/fingerprint-pattern.svg +1 -0
- package/dist/assets/Icons/flag.svg +1 -0
- package/dist/assets/Icons/flask-conical.svg +1 -0
- package/dist/assets/Icons/folder.svg +1 -0
- package/dist/assets/Icons/funnel-plus.svg +1 -0
- package/dist/assets/Icons/ghost.svg +1 -0
- package/dist/assets/Icons/git-branch.svg +1 -0
- package/dist/assets/Icons/git-commit-horizontal.svg +1 -0
- package/dist/assets/Icons/git-commit-vertical.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows-alt.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows.svg +1 -0
- package/dist/assets/Icons/git-compare.svg +1 -0
- package/dist/assets/Icons/git-fork.svg +1 -0
- package/dist/assets/Icons/git-graph.svg +1 -0
- package/dist/assets/Icons/git-merge.svg +1 -0
- package/dist/assets/Icons/git-pull-request-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-closed.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create.svg +1 -0
- package/dist/assets/Icons/git-pull-request-draft.svg +1 -0
- package/dist/assets/Icons/git-pull-request.svg +1 -0
- package/dist/assets/Icons/github-neutral.svg +1 -0
- package/dist/assets/Icons/github.svg +1 -0
- package/dist/assets/Icons/globe-lock.svg +1 -0
- package/dist/assets/Icons/globe.svg +1 -0
- package/dist/assets/Icons/gmail-neutral.svg +1 -0
- package/dist/assets/Icons/gmail.svg +1 -0
- package/dist/assets/Icons/google-meet-neutral.svg +1 -0
- package/dist/assets/Icons/google-meet.svg +1 -0
- package/dist/assets/Icons/google-neutral.svg +1 -0
- package/dist/assets/Icons/google-play-neutral.svg +1 -0
- package/dist/assets/Icons/google-play.svg +1 -0
- package/dist/assets/Icons/google-podcast-neutral.svg +1 -0
- package/dist/assets/Icons/google-podcast.svg +1 -0
- package/dist/assets/Icons/google.svg +1 -0
- package/dist/assets/Icons/grip-horizontal.svg +1 -0
- package/dist/assets/Icons/grip-vertical.svg +1 -0
- package/dist/assets/Icons/hammer.svg +1 -0
- package/dist/assets/Icons/heart-pulse.svg +1 -0
- package/dist/assets/Icons/history.svg +1 -0
- package/dist/assets/Icons/home.svg +1 -0
- package/dist/assets/Icons/imo-neutral.svg +1 -0
- package/dist/assets/Icons/imo.svg +1 -0
- package/dist/assets/Icons/infinity.svg +1 -0
- package/dist/assets/Icons/info.svg +1 -0
- package/dist/assets/Icons/infobip-neutral.svg +1 -0
- package/dist/assets/Icons/infobip.svg +1 -0
- package/dist/assets/Icons/instagram-neutral.svg +1 -0
- package/dist/assets/Icons/instagram.svg +1 -0
- package/dist/assets/Icons/key-round.svg +1 -0
- package/dist/assets/Icons/key-square.svg +1 -0
- package/dist/assets/Icons/keyboard.svg +1 -0
- package/dist/assets/Icons/kickstarter-neutral.svg +1 -0
- package/dist/assets/Icons/kickstarter.svg +1 -0
- package/dist/assets/Icons/laptop.svg +1 -0
- package/dist/assets/Icons/layers.svg +1 -0
- package/dist/assets/Icons/layers2.svg +1 -0
- package/dist/assets/Icons/layers3.svg +1 -0
- package/dist/assets/Icons/layout-dashboard.svg +1 -0
- package/dist/assets/Icons/layout-grid.svg +1 -0
- package/dist/assets/Icons/layout-list.svg +1 -0
- package/dist/assets/Icons/layout-panel-left.svg +1 -0
- package/dist/assets/Icons/layout-panel-top.svg +1 -0
- package/dist/assets/Icons/layout-template.svg +1 -0
- package/dist/assets/Icons/library-big.svg +1 -0
- package/dist/assets/Icons/life-buoy.svg +1 -0
- package/dist/assets/Icons/lightbulb-off.svg +1 -0
- package/dist/assets/Icons/lightbulb.svg +1 -0
- package/dist/assets/Icons/line-neutral.svg +1 -0
- package/dist/assets/Icons/line.svg +1 -0
- package/dist/assets/Icons/link.svg +1 -0
- package/dist/assets/Icons/link2-off.svg +1 -0
- package/dist/assets/Icons/link2.svg +1 -0
- package/dist/assets/Icons/linkedin-neutral.svg +1 -0
- package/dist/assets/Icons/linkedin.svg +1 -0
- package/dist/assets/Icons/list-checks.svg +1 -0
- package/dist/assets/Icons/list-collapse.svg +1 -0
- package/dist/assets/Icons/list-filter.svg +1 -0
- package/dist/assets/Icons/list-minus.svg +1 -0
- package/dist/assets/Icons/list-ordered.svg +1 -0
- package/dist/assets/Icons/list-plus.svg +1 -0
- package/dist/assets/Icons/list-restart.svg +1 -0
- package/dist/assets/Icons/list-start.svg +1 -0
- package/dist/assets/Icons/list-todo.svg +1 -0
- package/dist/assets/Icons/list-tree.svg +1 -0
- package/dist/assets/Icons/list-video.svg +1 -0
- package/dist/assets/Icons/list-x.svg +1 -0
- package/dist/assets/Icons/list.svg +1 -0
- package/dist/assets/Icons/loader-circle.svg +1 -0
- package/dist/assets/Icons/loader.svg +1 -0
- package/dist/assets/Icons/lock-open.svg +1 -0
- package/dist/assets/Icons/lock.svg +1 -0
- package/dist/assets/Icons/log-in.svg +1 -0
- package/dist/assets/Icons/log-out.svg +1 -0
- package/dist/assets/Icons/mail-check.svg +1 -0
- package/dist/assets/Icons/mail-minus.svg +1 -0
- package/dist/assets/Icons/mail-open.svg +1 -0
- package/dist/assets/Icons/mail-plus.svg +1 -0
- package/dist/assets/Icons/mail-question.svg +1 -0
- package/dist/assets/Icons/mail-search.svg +1 -0
- package/dist/assets/Icons/mail-warning.svg +1 -0
- package/dist/assets/Icons/mail-x.svg +1 -0
- package/dist/assets/Icons/mail.svg +1 -0
- package/dist/assets/Icons/mailbox.svg +1 -0
- package/dist/assets/Icons/mailersend-neutral.svg +1 -0
- package/dist/assets/Icons/mailersend.svg +1 -0
- package/dist/assets/Icons/mailgun-neutral.svg +1 -0
- package/dist/assets/Icons/mailgun.svg +1 -0
- package/dist/assets/Icons/mailjet-neutral.svg +1 -0
- package/dist/assets/Icons/mailjet.svg +1 -0
- package/dist/assets/Icons/mails.svg +1 -0
- package/dist/assets/Icons/mailtrap-neutral.svg +1 -0
- package/dist/assets/Icons/mailtrap.svg +1 -0
- package/dist/assets/Icons/mandrill-neutral.svg +1 -0
- package/dist/assets/Icons/mandrill.svg +1 -0
- package/dist/assets/Icons/map-pin.svg +1 -0
- package/dist/assets/Icons/maqsam-neutral.svg +1 -0
- package/dist/assets/Icons/maqsam.svg +1 -0
- package/dist/assets/Icons/mattermost-neutral.svg +1 -0
- package/dist/assets/Icons/mattermost.svg +1 -0
- package/dist/assets/Icons/maximize.svg +1 -0
- package/dist/assets/Icons/maximize2.svg +1 -0
- package/dist/assets/Icons/medium-neutral.svg +1 -0
- package/dist/assets/Icons/medium.svg +1 -0
- package/dist/assets/Icons/megaphone-off.svg +1 -0
- package/dist/assets/Icons/megaphone.svg +1 -0
- package/dist/assets/Icons/menu.svg +1 -0
- package/dist/assets/Icons/merge.svg +1 -0
- package/dist/assets/Icons/message-square-code.svg +1 -0
- package/dist/assets/Icons/message-square-dashed.svg +1 -0
- package/dist/assets/Icons/message-square-diff.svg +1 -0
- package/dist/assets/Icons/message-square-dot.svg +1 -0
- package/dist/assets/Icons/message-square-heart.svg +1 -0
- package/dist/assets/Icons/message-square-off.svg +1 -0
- package/dist/assets/Icons/message-square-plus.svg +1 -0
- package/dist/assets/Icons/message-square-quote.svg +1 -0
- package/dist/assets/Icons/message-square-reply.svg +1 -0
- package/dist/assets/Icons/message-square-share.svg +1 -0
- package/dist/assets/Icons/message-square-text.svg +1 -0
- package/dist/assets/Icons/message-square-warning.svg +1 -0
- package/dist/assets/Icons/message-square-x.svg +1 -0
- package/dist/assets/Icons/message-square.svg +1 -0
- package/dist/assets/Icons/messages-square.svg +1 -0
- package/dist/assets/Icons/messenger-neutral.svg +1 -0
- package/dist/assets/Icons/messenger.svg +1 -0
- package/dist/assets/Icons/microsoft-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams.svg +1 -0
- package/dist/assets/Icons/microsoft.svg +1 -0
- package/dist/assets/Icons/minimize.svg +1 -0
- package/dist/assets/Icons/minimize2.svg +1 -0
- package/dist/assets/Icons/minus.svg +1 -0
- package/dist/assets/Icons/moon.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-ban.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-click.svg +1 -0
- package/dist/assets/Icons/mouse-pointer.svg +1 -0
- package/dist/assets/Icons/mouse-pointer2.svg +1 -0
- package/dist/assets/Icons/mouse.svg +1 -0
- package/dist/assets/Icons/move-diagonal.svg +1 -0
- package/dist/assets/Icons/move-diagonal2.svg +1 -0
- package/dist/assets/Icons/move-down-left.svg +1 -0
- package/dist/assets/Icons/move-down-right.svg +1 -0
- package/dist/assets/Icons/move-down.svg +1 -0
- package/dist/assets/Icons/move-horizontal.svg +1 -0
- package/dist/assets/Icons/move-left.svg +1 -0
- package/dist/assets/Icons/move-right.svg +1 -0
- package/dist/assets/Icons/move-up-left.svg +1 -0
- package/dist/assets/Icons/move-up-right.svg +1 -0
- package/dist/assets/Icons/move-up.svg +1 -0
- package/dist/assets/Icons/move-vertical.svg +1 -0
- package/dist/assets/Icons/move3-d.svg +1 -0
- package/dist/assets/Icons/netcore-neutral.svg +1 -0
- package/dist/assets/Icons/netcore.svg +1 -0
- package/dist/assets/Icons/notebook-pen.svg +1 -0
- package/dist/assets/Icons/notebook-tabs.svg +1 -0
- package/dist/assets/Icons/notebook-text.svg +1 -0
- package/dist/assets/Icons/notebook.svg +1 -0
- package/dist/assets/Icons/notepad-text-dashed.svg +1 -0
- package/dist/assets/Icons/notepad-text.svg +1 -0
- package/dist/assets/Icons/notion-neutral.svg +1 -0
- package/dist/assets/Icons/notion.svg +1 -0
- package/dist/assets/Icons/octagon-alert.svg +1 -0
- package/dist/assets/Icons/octagon-pause.svg +1 -0
- package/dist/assets/Icons/octagon-x.svg +1 -0
- package/dist/assets/Icons/octagon.svg +1 -0
- package/dist/assets/Icons/ok-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign.svg +1 -0
- package/dist/assets/Icons/ok.svg +1 -0
- package/dist/assets/Icons/onlyfans-neutral.svg +1 -0
- package/dist/assets/Icons/onlyfans.svg +1 -0
- package/dist/assets/Icons/option.svg +1 -0
- package/dist/assets/Icons/outlook365-neutral.svg +1 -0
- package/dist/assets/Icons/outlook365.svg +1 -0
- package/dist/assets/Icons/paintbrush.svg +1 -0
- package/dist/assets/Icons/panel-bottom-open.svg +1 -0
- package/dist/assets/Icons/panel-bottom.svg +1 -0
- package/dist/assets/Icons/panel-left-close.svg +1 -0
- package/dist/assets/Icons/panel-left-dashed.svg +1 -0
- package/dist/assets/Icons/panel-left-open.svg +1 -0
- package/dist/assets/Icons/panel-left.svg +1 -0
- package/dist/assets/Icons/panel-right-animated.svg +1 -0
- package/dist/assets/Icons/panel-right-close.svg +1 -0
- package/dist/assets/Icons/panel-right-dashed.svg +1 -0
- package/dist/assets/Icons/panel-right-open.svg +1 -0
- package/dist/assets/Icons/panel-right.svg +1 -0
- package/dist/assets/Icons/panel-top-bottom-dashed.svg +1 -0
- package/dist/assets/Icons/panel-top-close.svg +1 -0
- package/dist/assets/Icons/panel-top-open.svg +1 -0
- package/dist/assets/Icons/panel-top.svg +1 -0
- package/dist/assets/Icons/panels-left-bottom.svg +1 -0
- package/dist/assets/Icons/panels-right-bottom.svg +1 -0
- package/dist/assets/Icons/panels-top-left.svg +1 -0
- package/dist/assets/Icons/paperclip.svg +1 -0
- package/dist/assets/Icons/patreon-neutral.svg +1 -0
- package/dist/assets/Icons/patreon.svg +1 -0
- package/dist/assets/Icons/paypal-neutral.svg +1 -0
- package/dist/assets/Icons/paypal.svg +1 -0
- package/dist/assets/Icons/pen-line.svg +1 -0
- package/dist/assets/Icons/pen-off.svg +1 -0
- package/dist/assets/Icons/pen-tool.svg +1 -0
- package/dist/assets/Icons/pen.svg +1 -0
- package/dist/assets/Icons/pencil-line.svg +1 -0
- package/dist/assets/Icons/pencil-off.svg +1 -0
- package/dist/assets/Icons/pencil-ruler.svg +1 -0
- package/dist/assets/Icons/pencil.svg +1 -0
- package/dist/assets/Icons/pentagon.svg +1 -0
- package/dist/assets/Icons/percentage.svg +1 -0
- package/dist/assets/Icons/phone.svg +1 -0
- package/dist/assets/Icons/pin-off.svg +1 -0
- package/dist/assets/Icons/pin.svg +1 -0
- package/dist/assets/Icons/pinterest-neutral.svg +1 -0
- package/dist/assets/Icons/pinterest.svg +1 -0
- package/dist/assets/Icons/play.svg +1 -0
- package/dist/assets/Icons/plug.svg +1 -0
- package/dist/assets/Icons/plunk-neutral.svg +1 -0
- package/dist/assets/Icons/plunk.svg +1 -0
- package/dist/assets/Icons/plus.svg +1 -0
- package/dist/assets/Icons/postmark-neutral.svg +1 -0
- package/dist/assets/Icons/postmark.svg +1 -0
- package/dist/assets/Icons/product-hunt-neutral.svg +1 -0
- package/dist/assets/Icons/product-hunt.svg +1 -0
- package/dist/assets/Icons/quora-neutral.svg +1 -0
- package/dist/assets/Icons/quora.svg +1 -0
- package/dist/assets/Icons/quote.svg +1 -0
- package/dist/assets/Icons/radar.svg +1 -0
- package/dist/assets/Icons/reddit-neutral.svg +1 -0
- package/dist/assets/Icons/reddit.svg +1 -0
- package/dist/assets/Icons/redo-dot.svg +1 -0
- package/dist/assets/Icons/redo.svg +1 -0
- package/dist/assets/Icons/redo2.svg +1 -0
- package/dist/assets/Icons/refresh-ccw.svg +1 -0
- package/dist/assets/Icons/refresh-cw-off.svg +1 -0
- package/dist/assets/Icons/resend-neutral.svg +1 -0
- package/dist/assets/Icons/resend.svg +1 -0
- package/dist/assets/Icons/rss.svg +1 -0
- package/dist/assets/Icons/rules.svg +1 -0
- package/dist/assets/Icons/scan-line.svg +1 -0
- package/dist/assets/Icons/scroll-text.svg +1 -0
- package/dist/assets/Icons/search-hint.svg +1 -0
- package/dist/assets/Icons/search-x.svg +1 -0
- package/dist/assets/Icons/search.svg +1 -0
- package/dist/assets/Icons/sendgrid-neutral.svg +1 -0
- package/dist/assets/Icons/sendgrid.svg +1 -0
- package/dist/assets/Icons/server.svg +1 -0
- package/dist/assets/Icons/ses-neutral.svg +1 -0
- package/dist/assets/Icons/ses.svg +1 -0
- package/dist/assets/Icons/settings.svg +1 -0
- package/dist/assets/Icons/settings2.svg +1 -0
- package/dist/assets/Icons/shapes.svg +1 -0
- package/dist/assets/Icons/share.svg +1 -0
- package/dist/assets/Icons/sheet.svg +1 -0
- package/dist/assets/Icons/shield-alert.svg +1 -0
- package/dist/assets/Icons/shield-ban.svg +1 -0
- package/dist/assets/Icons/shield-check.svg +1 -0
- package/dist/assets/Icons/shield-ellipsis.svg +1 -0
- package/dist/assets/Icons/shield-half.svg +1 -0
- package/dist/assets/Icons/shield-minus.svg +1 -0
- package/dist/assets/Icons/shield-off.svg +1 -0
- package/dist/assets/Icons/shield-plus.svg +1 -0
- package/dist/assets/Icons/shield-question.svg +1 -0
- package/dist/assets/Icons/shield-user.svg +1 -0
- package/dist/assets/Icons/shield-x.svg +1 -0
- package/dist/assets/Icons/shield.svg +1 -0
- package/dist/assets/Icons/shift.svg +1 -0
- package/dist/assets/Icons/signal-neutral.svg +1 -0
- package/dist/assets/Icons/signal.svg +1 -0
- package/dist/assets/Icons/signpost.svg +1 -0
- package/dist/assets/Icons/sina-weibo-neutral.svg +1 -0
- package/dist/assets/Icons/sina-weibo.svg +1 -0
- package/dist/assets/Icons/skull.svg +1 -0
- package/dist/assets/Icons/skype-neutral.svg +1 -0
- package/dist/assets/Icons/skype.svg +1 -0
- package/dist/assets/Icons/slack-neutral.svg +1 -0
- package/dist/assets/Icons/slack.svg +1 -0
- package/dist/assets/Icons/sliders-horizontal.svg +1 -0
- package/dist/assets/Icons/sliders-vertical.svg +1 -0
- package/dist/assets/Icons/smtp-neutral.svg +1 -0
- package/dist/assets/Icons/smtp.svg +1 -0
- package/dist/assets/Icons/snapchat-neutral.svg +1 -0
- package/dist/assets/Icons/snapchat.svg +1 -0
- package/dist/assets/Icons/soundcloud-neutral.svg +1 -0
- package/dist/assets/Icons/soundcloud.svg +1 -0
- package/dist/assets/Icons/space.svg +1 -0
- package/dist/assets/Icons/sparkpost-neutral.svg +1 -0
- package/dist/assets/Icons/sparkpost.svg +1 -0
- package/dist/assets/Icons/speed.svg +1 -0
- package/dist/assets/Icons/split.svg +1 -0
- package/dist/assets/Icons/spotify-neutral.svg +1 -0
- package/dist/assets/Icons/spotify.svg +1 -0
- package/dist/assets/Icons/square-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/square-minus.svg +1 -0
- package/dist/assets/Icons/square-pen.svg +1 -0
- package/dist/assets/Icons/square-plus.svg +1 -0
- package/dist/assets/Icons/square-user-round.svg +1 -0
- package/dist/assets/Icons/stack-overflow-neutral.svg +1 -0
- package/dist/assets/Icons/stack-overflow.svg +1 -0
- package/dist/assets/Icons/star.svg +1 -0
- package/dist/assets/Icons/sun.svg +1 -0
- package/dist/assets/Icons/syringe.svg +1 -0
- package/dist/assets/Icons/tag.svg +1 -0
- package/dist/assets/Icons/target.svg +1 -0
- package/dist/assets/Icons/teams-neutral.svg +1 -0
- package/dist/assets/Icons/teams.svg +1 -0
- package/dist/assets/Icons/telegram-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign.svg +1 -0
- package/dist/assets/Icons/telegram.svg +1 -0
- package/dist/assets/Icons/terminal.svg +1 -0
- package/dist/assets/Icons/test-policies.svg +1 -0
- package/dist/assets/Icons/threads-neutral.svg +1 -0
- package/dist/assets/Icons/threads.svg +1 -0
- package/dist/assets/Icons/thumbs-down.svg +1 -0
- package/dist/assets/Icons/thumbs-up.svg +1 -0
- package/dist/assets/Icons/tiktok-neutral.svg +1 -0
- package/dist/assets/Icons/tiktok.svg +1 -0
- package/dist/assets/Icons/tinder-neutral.svg +1 -0
- package/dist/assets/Icons/tinder.svg +1 -0
- package/dist/assets/Icons/trash.svg +1 -0
- package/dist/assets/Icons/trash2.svg +1 -0
- package/dist/assets/Icons/triangle-alert.svg +1 -0
- package/dist/assets/Icons/tumblr-neutral.svg +1 -0
- package/dist/assets/Icons/tumblr.svg +1 -0
- package/dist/assets/Icons/twitch-neutral.svg +1 -0
- package/dist/assets/Icons/twitch.svg +1 -0
- package/dist/assets/Icons/undo-dot.svg +1 -0
- package/dist/assets/Icons/undo.svg +1 -0
- package/dist/assets/Icons/undo2.svg +1 -0
- package/dist/assets/Icons/unplug.svg +1 -0
- package/dist/assets/Icons/user-check.svg +1 -0
- package/dist/assets/Icons/user-minus.svg +1 -0
- package/dist/assets/Icons/user-plus.svg +1 -0
- package/dist/assets/Icons/user-round-x.svg +1 -0
- package/dist/assets/Icons/user-round.svg +1 -0
- package/dist/assets/Icons/user.svg +1 -0
- package/dist/assets/Icons/username.svg +1 -0
- package/dist/assets/Icons/users-round.svg +1 -0
- package/dist/assets/Icons/users.svg +1 -0
- package/dist/assets/Icons/viber-neutral.svg +1 -0
- package/dist/assets/Icons/viber.svg +1 -0
- package/dist/assets/Icons/video.svg +1 -0
- package/dist/assets/Icons/vimeo-neutral.svg +1 -0
- package/dist/assets/Icons/vimeo.svg +1 -0
- package/dist/assets/Icons/vk-music-neutral.svg +1 -0
- package/dist/assets/Icons/vk-music.svg +1 -0
- package/dist/assets/Icons/vk-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign.svg +1 -0
- package/dist/assets/Icons/vk.svg +1 -0
- package/dist/assets/Icons/webhook-neutral.svg +1 -0
- package/dist/assets/Icons/webhook.svg +1 -0
- package/dist/assets/Icons/wechat-neutral.svg +1 -0
- package/dist/assets/Icons/wechat.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge.svg +1 -0
- package/dist/assets/Icons/whatsapp-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp.svg +1 -0
- package/dist/assets/Icons/workflow.svg +1 -0
- package/dist/assets/Icons/wrap-text.svg +1 -0
- package/dist/assets/Icons/wrench.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter-neutral.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter.svg +1 -0
- package/dist/assets/Icons/x.svg +1 -0
- package/dist/assets/Icons/xing-neutral.svg +1 -0
- package/dist/assets/Icons/xing.svg +1 -0
- package/dist/assets/Icons/yandex-music-neutral.svg +1 -0
- package/dist/assets/Icons/yandex-music.svg +1 -0
- package/dist/assets/Icons/yelp-neutral.svg +1 -0
- package/dist/assets/Icons/yelp.svg +1 -0
- package/dist/assets/Icons/youtube-music-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-music.svg +1 -0
- package/dist/assets/Icons/youtube-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts.svg +1 -0
- package/dist/assets/Icons/youtube.svg +1 -0
- package/dist/assets/Icons/zap.svg +1 -0
- package/dist/assets/Icons/zoom-in.svg +1 -0
- package/dist/assets/Icons/zoom-neutral.svg +1 -0
- package/dist/assets/Icons/zoom-out.svg +1 -0
- package/dist/assets/Icons/zoom.svg +1 -0
- package/dist/assets/Icons/zulip-neutral.svg +1 -0
- package/dist/assets/Icons/zulip.svg +1 -0
- package/dist/assets/Logos/wallarm.svg +1 -0
- package/dist/assets.json +4666 -0
- package/dist/project/README.md +265 -0
- package/dist/project/components/Accordion/README.md +354 -0
- package/dist/project/components/Accordion/preview.html +2 -0
- package/dist/project/components/Accordion/stories.js +12 -0
- package/dist/project/components/AgentAvatar/README.md +127 -0
- package/dist/project/components/AgentAvatar/preview.html +2 -0
- package/dist/project/components/AgentAvatar/stories.js +12 -0
- package/dist/project/components/AgentAvatar/stories.md +1805 -0
- package/dist/project/components/AgentGlyph/README.md +1182 -0
- package/dist/project/components/AgentGlyph/preview.html +2 -0
- package/dist/project/components/AgentGlyph/stories.js +12 -0
- package/dist/project/components/AgentLookBuilder/README.md +269 -0
- package/dist/project/components/AgentLookBuilder/preview.html +2 -0
- package/dist/project/components/AgentLookBuilder/stories.js +12 -0
- package/dist/project/components/Alert/README.md +492 -0
- package/dist/project/components/Alert/preview.html +2 -0
- package/dist/project/components/Alert/stories.js +12 -0
- package/dist/project/components/AnimatedBackground/README.md +124 -0
- package/dist/project/components/AnimatedBackground/preview.html +2 -0
- package/dist/project/components/AnimatedBackground/stories.js +12 -0
- package/dist/project/components/AppShell/README.md +75 -0
- package/dist/project/components/AppShell/preview.html +2 -0
- package/dist/project/components/AppShell/stories.js +28 -0
- package/dist/project/components/AppShell/stories.md +2878 -0
- package/dist/project/components/ApprovalCard/README.md +353 -0
- package/dist/project/components/ApprovalCard/preview.html +2 -0
- package/dist/project/components/ApprovalCard/stories.js +12 -0
- package/dist/project/components/AreaChart/README.md +673 -0
- package/dist/project/components/AreaChart/preview.html +2 -0
- package/dist/project/components/AreaChart/stories.js +12 -0
- package/dist/project/components/AssistantMessage/README.md +724 -0
- package/dist/project/components/AssistantMessage/preview.html +2 -0
- package/dist/project/components/AssistantMessage/stories.js +55 -0
- package/dist/project/components/Attribute/README.md +1174 -0
- package/dist/project/components/Attribute/preview.html +2 -0
- package/dist/project/components/Attribute/stories.js +12 -0
- package/dist/project/components/Avatar/README.md +416 -0
- package/dist/project/components/Avatar/preview.html +2 -0
- package/dist/project/components/Avatar/stories.js +12 -0
- package/dist/project/components/Badge/README.md +853 -0
- package/dist/project/components/Badge/preview.html +2 -0
- package/dist/project/components/Badge/stories.js +12 -0
- package/dist/project/components/Banner/README.md +341 -0
- package/dist/project/components/Banner/preview.html +2 -0
- package/dist/project/components/Banner/stories.js +12 -0
- package/dist/project/components/BarList/README.md +757 -0
- package/dist/project/components/BarList/preview.html +2 -0
- package/dist/project/components/BarList/stories.js +12 -0
- package/dist/project/components/Breadcrumbs/README.md +274 -0
- package/dist/project/components/Breadcrumbs/preview.html +2 -0
- package/dist/project/components/Breadcrumbs/stories.js +12 -0
- package/dist/project/components/BulkBar/README.md +19 -0
- package/dist/project/components/Button/README.md +467 -0
- package/dist/project/components/Button/preview.html +2 -0
- package/dist/project/components/Button/stories.js +12 -0
- package/dist/project/components/Calendar/README.md +654 -0
- package/dist/project/components/Calendar/preview.html +2 -0
- package/dist/project/components/Calendar/stories.js +12 -0
- package/dist/project/components/Card/README.md +367 -0
- package/dist/project/components/Card/preview.html +2 -0
- package/dist/project/components/Card/stories.js +12 -0
- package/dist/project/components/ChainOfThought/README.md +412 -0
- package/dist/project/components/ChainOfThought/preview.html +2 -0
- package/dist/project/components/ChainOfThought/stories.js +12 -0
- package/dist/project/components/Chart/README.md +224 -0
- package/dist/project/components/Chart/preview.html +2 -0
- package/dist/project/components/Chart/stories.js +12 -0
- package/dist/project/components/Chat/README.md +1244 -0
- package/dist/project/components/Chat/preview.html +2 -0
- package/dist/project/components/Chat/stories.js +12 -0
- package/dist/project/components/ChatInput/README.md +378 -0
- package/dist/project/components/ChatInput/preview.html +2 -0
- package/dist/project/components/ChatInput/stories.js +12 -0
- package/dist/project/components/ChatPermissions/README.md +218 -0
- package/dist/project/components/ChatPermissions/preview.html +2 -0
- package/dist/project/components/ChatPermissions/stories.js +12 -0
- package/dist/project/components/Checkbox/README.md +367 -0
- package/dist/project/components/Checkbox/preview.html +2 -0
- package/dist/project/components/Checkbox/stories.js +12 -0
- package/dist/project/components/Code/README.md +243 -0
- package/dist/project/components/Code/preview.html +2 -0
- package/dist/project/components/Code/stories.js +12 -0
- package/dist/project/components/CodeEditor/README.md +280 -0
- package/dist/project/components/CodeEditor/preview.html +2 -0
- package/dist/project/components/CodeEditor/stories.js +162 -0
- package/dist/project/components/CodeEditor/stories.md +1533 -0
- package/dist/project/components/CodeSnippet/README.md +1352 -0
- package/dist/project/components/CodeSnippet/preview.html +2 -0
- package/dist/project/components/CodeSnippet/stories.js +156 -0
- package/dist/project/components/ColumnChart/README.md +521 -0
- package/dist/project/components/ColumnChart/preview.html +2 -0
- package/dist/project/components/ColumnChart/stories.js +12 -0
- package/dist/project/components/Conversation/README.md +314 -0
- package/dist/project/components/Conversation/preview.html +2 -0
- package/dist/project/components/Conversation/stories.js +12 -0
- package/dist/project/components/Copyable/README.md +406 -0
- package/dist/project/components/Copyable/preview.html +2 -0
- package/dist/project/components/Copyable/stories.js +12 -0
- package/dist/project/components/Country/README.md +226 -0
- package/dist/project/components/Country/preview.html +2 -0
- package/dist/project/components/Country/stories.js +12 -0
- package/dist/project/components/Cover/preview.html +43 -0
- package/dist/project/components/DateInput/README.md +458 -0
- package/dist/project/components/DateInput/preview.html +2 -0
- package/dist/project/components/DateInput/stories.js +12 -0
- package/dist/project/components/DateRangeInput/README.md +412 -0
- package/dist/project/components/DateRangeInput/preview.html +2 -0
- package/dist/project/components/DateRangeInput/stories.js +12 -0
- package/dist/project/components/Dialog/README.md +1140 -0
- package/dist/project/components/Dialog/preview.html +2 -0
- package/dist/project/components/Dialog/stories.js +12 -0
- package/dist/project/components/Drawer/README.md +1163 -0
- package/dist/project/components/Drawer/preview.html +2 -0
- package/dist/project/components/Drawer/stories.js +12 -0
- package/dist/project/components/DropdownMenu/README.md +678 -0
- package/dist/project/components/DropdownMenu/preview.html +2 -0
- package/dist/project/components/DropdownMenu/stories.js +12 -0
- package/dist/project/components/EmptyState/README.md +276 -0
- package/dist/project/components/EmptyState/preview.html +2 -0
- package/dist/project/components/EmptyState/stories.js +12 -0
- package/dist/project/components/FeedbackPulse/README.md +125 -0
- package/dist/project/components/FeedbackPulse/preview.html +2 -0
- package/dist/project/components/FeedbackPulse/stories.js +12 -0
- package/dist/project/components/Field/README.md +676 -0
- package/dist/project/components/Field/preview.html +2 -0
- package/dist/project/components/Field/stories.js +12 -0
- package/dist/project/components/FileUpload/README.md +544 -0
- package/dist/project/components/FileUpload/preview.html +2 -0
- package/dist/project/components/FileUpload/stories.js +12 -0
- package/dist/project/components/FilterCascade/README.md +348 -0
- package/dist/project/components/FilterCascade/preview.html +2 -0
- package/dist/project/components/FilterCascade/stories.js +12 -0
- package/dist/project/components/FilterDropdown/README.md +542 -0
- package/dist/project/components/FilterDropdown/preview.html +2 -0
- package/dist/project/components/FilterDropdown/stories.js +12 -0
- package/dist/project/components/FilterInput/README.md +416 -0
- package/dist/project/components/FilterInput/preview.html +2 -0
- package/dist/project/components/FilterInput/stories.js +12 -0
- package/dist/project/components/FilterInput/stories.md +6682 -0
- package/dist/project/components/Flex/README.md +225 -0
- package/dist/project/components/Flex/preview.html +2 -0
- package/dist/project/components/Flex/stories.js +12 -0
- package/dist/project/components/FormatDateTime/README.md +315 -0
- package/dist/project/components/FormatDateTime/preview.html +2 -0
- package/dist/project/components/FormatDateTime/stories.js +12 -0
- package/dist/project/components/FormatNumber/README.md +317 -0
- package/dist/project/components/FormatNumber/preview.html +2 -0
- package/dist/project/components/FormatNumber/stories.js +12 -0
- package/dist/project/components/Heading/README.md +240 -0
- package/dist/project/components/Heading/preview.html +2 -0
- package/dist/project/components/Heading/stories.js +12 -0
- package/dist/project/components/HorizontalBarStack/README.md +281 -0
- package/dist/project/components/HorizontalBarStack/preview.html +2 -0
- package/dist/project/components/HorizontalBarStack/stories.js +12 -0
- package/dist/project/components/HttpMethod/README.md +137 -0
- package/dist/project/components/HttpMethod/preview.html +2 -0
- package/dist/project/components/HttpMethod/stories.js +12 -0
- package/dist/project/components/ImageCropper/README.md +332 -0
- package/dist/project/components/ImageCropper/preview.html +2 -0
- package/dist/project/components/ImageCropper/stories.js +33 -0
- package/dist/project/components/Indicator/README.md +110 -0
- package/dist/project/components/Indicator/preview.html +2 -0
- package/dist/project/components/Indicator/stories.js +12 -0
- package/dist/project/components/InlineEdit/README.md +977 -0
- package/dist/project/components/InlineEdit/preview.html +2 -0
- package/dist/project/components/InlineEdit/stories.js +12 -0
- package/dist/project/components/Input/README.md +187 -0
- package/dist/project/components/Input/preview.html +2 -0
- package/dist/project/components/Input/stories.js +12 -0
- package/dist/project/components/InputGroup/README.md +423 -0
- package/dist/project/components/InputGroup/preview.html +2 -0
- package/dist/project/components/InputGroup/stories.js +12 -0
- package/dist/project/components/InputOTP/README.md +201 -0
- package/dist/project/components/InputOTP/preview.html +2 -0
- package/dist/project/components/InputOTP/stories.js +12 -0
- package/dist/project/components/Ip/README.md +226 -0
- package/dist/project/components/Ip/preview.html +2 -0
- package/dist/project/components/Ip/stories.js +12 -0
- package/dist/project/components/Kbd/README.md +126 -0
- package/dist/project/components/Kbd/preview.html +2 -0
- package/dist/project/components/Kbd/stories.js +12 -0
- package/dist/project/components/LineChart/README.md +1479 -0
- package/dist/project/components/LineChart/preview.html +2 -0
- package/dist/project/components/LineChart/stories.js +12 -0
- package/dist/project/components/Link/README.md +160 -0
- package/dist/project/components/Link/preview.html +2 -0
- package/dist/project/components/Link/stories.js +12 -0
- package/dist/project/components/List/README.md +181 -0
- package/dist/project/components/List/preview.html +2 -0
- package/dist/project/components/List/stories.js +12 -0
- package/dist/project/components/Loader/README.md +145 -0
- package/dist/project/components/Loader/preview.html +2 -0
- package/dist/project/components/Loader/stories.js +12 -0
- package/dist/project/components/Logo/README.md +183 -0
- package/dist/project/components/Logo/preview.html +2 -0
- package/dist/project/components/Logo/stories.js +12 -0
- package/dist/project/components/MessageActions/README.md +255 -0
- package/dist/project/components/MessageActions/preview.html +2 -0
- package/dist/project/components/MessageActions/stories.js +12 -0
- package/dist/project/components/Metric/README.md +324 -0
- package/dist/project/components/Metric/preview.html +2 -0
- package/dist/project/components/Metric/stories.js +12 -0
- package/dist/project/components/NavRail/README.md +25 -0
- package/dist/project/components/NotificationCenter/README.md +91 -0
- package/dist/project/components/NotificationCenter/preview.html +2 -0
- package/dist/project/components/NotificationCenter/stories.js +12 -0
- package/dist/project/components/NotificationCenter/stories.md +2170 -0
- package/dist/project/components/NumberInput/README.md +177 -0
- package/dist/project/components/NumberInput/preview.html +2 -0
- package/dist/project/components/NumberInput/stories.js +12 -0
- package/dist/project/components/NumericBadge/README.md +252 -0
- package/dist/project/components/NumericBadge/preview.html +2 -0
- package/dist/project/components/NumericBadge/stories.js +12 -0
- package/dist/project/components/OverflowList/README.md +324 -0
- package/dist/project/components/OverflowList/preview.html +2 -0
- package/dist/project/components/OverflowList/stories.js +12 -0
- package/dist/project/components/OverflowTooltip/README.md +421 -0
- package/dist/project/components/OverflowTooltip/preview.html +2 -0
- package/dist/project/components/OverflowTooltip/stories.js +12 -0
- package/dist/project/components/Overlay/README.md +95 -0
- package/dist/project/components/Overlay/preview.html +2 -0
- package/dist/project/components/Overlay/stories.js +12 -0
- package/dist/project/components/Overview/README.md +445 -0
- package/dist/project/components/Overview/preview.html +2 -0
- package/dist/project/components/Overview/stories.js +12 -0
- package/dist/project/components/Page/README.md +215 -0
- package/dist/project/components/Page/preview.html +2 -0
- package/dist/project/components/Page/stories.js +12 -0
- package/dist/project/components/Pagination/README.md +302 -0
- package/dist/project/components/Pagination/preview.html +2 -0
- package/dist/project/components/Pagination/stories.js +12 -0
- package/dist/project/components/ParameterPath/README.md +284 -0
- package/dist/project/components/ParameterPath/preview.html +2 -0
- package/dist/project/components/ParameterPath/stories.js +12 -0
- package/dist/project/components/PasswordComplexity/README.md +171 -0
- package/dist/project/components/PasswordComplexity/preview.html +2 -0
- package/dist/project/components/PasswordComplexity/stories.js +12 -0
- package/dist/project/components/PasswordInput/README.md +254 -0
- package/dist/project/components/PasswordInput/preview.html +2 -0
- package/dist/project/components/PasswordInput/stories.js +12 -0
- package/dist/project/components/PieChart/README.md +895 -0
- package/dist/project/components/PieChart/preview.html +2 -0
- package/dist/project/components/PieChart/stories.js +12 -0
- package/dist/project/components/Popover/README.md +282 -0
- package/dist/project/components/Popover/preview.html +2 -0
- package/dist/project/components/Popover/stories.js +12 -0
- package/dist/project/components/Progress/README.md +174 -0
- package/dist/project/components/Progress/preview.html +2 -0
- package/dist/project/components/Progress/stories.js +12 -0
- package/dist/project/components/Radio/README.md +264 -0
- package/dist/project/components/Radio/preview.html +2 -0
- package/dist/project/components/Radio/stories.js +12 -0
- package/dist/project/components/RemoteShell/README.md +1758 -0
- package/dist/project/components/RemoteShell/preview.html +2 -0
- package/dist/project/components/RemoteShell/stories.js +28 -0
- package/dist/project/components/Resizable/README.md +290 -0
- package/dist/project/components/Resizable/preview.html +2 -0
- package/dist/project/components/Resizable/stories.js +12 -0
- package/dist/project/components/ResponseCode/README.md +205 -0
- package/dist/project/components/ResponseCode/preview.html +2 -0
- package/dist/project/components/ResponseCode/stories.js +12 -0
- package/dist/project/components/ScrollArea/README.md +234 -0
- package/dist/project/components/ScrollArea/preview.html +2 -0
- package/dist/project/components/ScrollArea/stories.js +12 -0
- package/dist/project/components/SearchInput/README.md +158 -0
- package/dist/project/components/SearchInput/preview.html +2 -0
- package/dist/project/components/SearchInput/stories.js +12 -0
- package/dist/project/components/SearchModal/README.md +836 -0
- package/dist/project/components/SearchModal/preview.html +2 -0
- package/dist/project/components/SearchModal/stories.js +12 -0
- package/dist/project/components/SegmentedControl/README.md +382 -0
- package/dist/project/components/SegmentedControl/preview.html +2 -0
- package/dist/project/components/SegmentedControl/stories.js +12 -0
- package/dist/project/components/SegmentedTabs/README.md +390 -0
- package/dist/project/components/SegmentedTabs/preview.html +2 -0
- package/dist/project/components/SegmentedTabs/stories.js +12 -0
- package/dist/project/components/Select/README.md +1311 -0
- package/dist/project/components/Select/preview.html +2 -0
- package/dist/project/components/Select/stories.js +12 -0
- package/dist/project/components/Selection/README.md +648 -0
- package/dist/project/components/Selection/preview.html +2 -0
- package/dist/project/components/Selection/stories.js +12 -0
- package/dist/project/components/Separator/README.md +77 -0
- package/dist/project/components/Separator/preview.html +2 -0
- package/dist/project/components/Separator/stories.js +12 -0
- package/dist/project/components/Skeleton/README.md +358 -0
- package/dist/project/components/Skeleton/preview.html +2 -0
- package/dist/project/components/Skeleton/stories.js +12 -0
- package/dist/project/components/Slider/README.md +433 -0
- package/dist/project/components/Slider/preview.html +2 -0
- package/dist/project/components/Slider/stories.js +12 -0
- package/dist/project/components/SplashScreen/README.md +192 -0
- package/dist/project/components/SplashScreen/preview.html +2 -0
- package/dist/project/components/SplashScreen/stories.js +12 -0
- package/dist/project/components/SplitButton/README.md +402 -0
- package/dist/project/components/SplitButton/preview.html +2 -0
- package/dist/project/components/SplitButton/stories.js +12 -0
- package/dist/project/components/Stack/README.md +269 -0
- package/dist/project/components/Stack/preview.html +2 -0
- package/dist/project/components/Stack/stories.js +12 -0
- package/dist/project/components/Stepper/README.md +682 -0
- package/dist/project/components/Stepper/preview.html +2 -0
- package/dist/project/components/Stepper/stories.js +12 -0
- package/dist/project/components/Switch/README.md +236 -0
- package/dist/project/components/Switch/preview.html +2 -0
- package/dist/project/components/Switch/stories.js +12 -0
- package/dist/project/components/Table/README.md +471 -0
- package/dist/project/components/Table/preview.html +2 -0
- package/dist/project/components/Table/stories.js +12 -0
- package/dist/project/components/Table/stories.md +3697 -0
- package/dist/project/components/Tabs/README.md +443 -0
- package/dist/project/components/Tabs/preview.html +2 -0
- package/dist/project/components/Tabs/stories.js +12 -0
- package/dist/project/components/Tag/README.md +324 -0
- package/dist/project/components/Tag/preview.html +2 -0
- package/dist/project/components/Tag/stories.js +12 -0
- package/dist/project/components/Text/README.md +200 -0
- package/dist/project/components/Text/preview.html +2 -0
- package/dist/project/components/Text/stories.js +12 -0
- package/dist/project/components/Textarea/README.md +273 -0
- package/dist/project/components/Textarea/preview.html +2 -0
- package/dist/project/components/Textarea/stories.js +12 -0
- package/dist/project/components/TimeInput/README.md +359 -0
- package/dist/project/components/TimeInput/preview.html +2 -0
- package/dist/project/components/TimeInput/stories.js +12 -0
- package/dist/project/components/Timeline/README.md +204 -0
- package/dist/project/components/Timeline/preview.html +2 -0
- package/dist/project/components/Timeline/stories.js +12 -0
- package/dist/project/components/Toast/README.md +718 -0
- package/dist/project/components/Toast/preview.html +2 -0
- package/dist/project/components/Toast/stories.js +12 -0
- package/dist/project/components/ToggleButton/README.md +292 -0
- package/dist/project/components/ToggleButton/preview.html +2 -0
- package/dist/project/components/ToggleButton/stories.js +12 -0
- package/dist/project/components/Tooltip/README.md +199 -0
- package/dist/project/components/Tooltip/preview.html +2 -0
- package/dist/project/components/Tooltip/stories.js +12 -0
- package/dist/project/components/TopHeader/README.md +21 -0
- package/dist/project/components/Tour/README.md +532 -0
- package/dist/project/components/Tour/preview.html +2 -0
- package/dist/project/components/Tour/stories.js +12 -0
- package/dist/project/components/Tree/README.md +450 -0
- package/dist/project/components/Tree/preview.html +2 -0
- package/dist/project/components/Tree/stories.js +12 -0
- package/dist/project/components/TreeView/README.md +531 -0
- package/dist/project/components/TreeView/preview.html +2 -0
- package/dist/project/components/TreeView/stories.js +12 -0
- package/dist/project/components/UTILITIES.md +647 -0
- package/dist/project/components/UserMessage/README.md +166 -0
- package/dist/project/components/UserMessage/preview.html +2 -0
- package/dist/project/components/UserMessage/stories.js +12 -0
- package/dist/project/components/UtilityPage/README.md +147 -0
- package/dist/project/components/UtilityPage/preview.html +2 -0
- package/dist/project/components/UtilityPage/stories.js +12 -0
- package/dist/project/components/WallyAssistant/README.md +1380 -0
- package/dist/project/components/WallyAssistant/preview.html +2 -0
- package/dist/project/components/WallyAssistant/stories.js +12 -0
- package/dist/project/components/WallyIcon/README.md +130 -0
- package/dist/project/components/WallyIcon/preview.html +2 -0
- package/dist/project/components/WallyIcon/stories.js +12 -0
- package/dist/project/components/WallySkeleton/README.md +96 -0
- package/dist/project/components/WallySkeleton/preview.html +2 -0
- package/dist/project/components/WallySkeleton/stories.js +12 -0
- package/dist/project/components/bundle.css +18734 -0
- package/dist/project/components/bundle.js +167 -0
- package/dist/project/components/index.d.ts +27226 -0
- package/dist/project/design-system.json +35 -0
- package/dist/project/fonts/Geist-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistMono-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistPixel-Square.woff2 +0 -0
- package/dist/project/sampler.dc.html +238 -0
- package/dist/project/tokens.css +1395 -0
- package/dist/project/tokens.json +5235 -0
- package/dist/wallarm-sampler.dc.html +239 -0
- package/package.json +67 -3
|
@@ -0,0 +1,757 @@
|
|
|
1
|
+
A compact top-N breakdown for a dashboard card — endpoints, status codes, regions — where the rows are read as a ranking rather than plotted against an axis. You render a `BarListItem` per data point and choose which slots go in it; the root supplies `max`, the value at which a bar is full, and nothing is sorted, sliced or aggregated for you. `BarListSkeleton` covers the loading state.
|
|
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
|
+
| `max` | `number` | yes | — | Value at which a bar reaches 100%. Required. - Percent inputs → `max={100}`. - Fractions → `max={1}`. - Raw counts → `Math.max(...values)` or the total. Invalid values (non-finite, zero, negative) render every row empty with a 0% label and log a single dev-only warning. |
|
|
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.BarListBar` — `BarListBarProps` in the declaration bundle.
|
|
23
|
+
- `WallarmDS.BarListItem` — `BarListItemProps` in the declaration bundle.
|
|
24
|
+
- `WallarmDS.BarListLabel` — `BarListLabelProps` in the declaration bundle.
|
|
25
|
+
- `WallarmDS.BarListPercent` — `BarListPercentProps` in the declaration bundle.
|
|
26
|
+
- `WallarmDS.BarListSkeleton` — `BarListSkeletonProps` in the declaration bundle.
|
|
27
|
+
- `WallarmDS.BarListValue` — `BarListValueProps` in the declaration bundle.
|
|
28
|
+
|
|
29
|
+
## Stories
|
|
30
|
+
|
|
31
|
+
### Default
|
|
32
|
+
|
|
33
|
+
The interactive shape: click a row to filter down to it, and the header's clear button
|
|
34
|
+
appears while that filter holds. Filtering recomputes `max` from what is left, which is why
|
|
35
|
+
a lone row reads 100%.
|
|
36
|
+
|
|
37
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#Default
|
|
38
|
+
|
|
39
|
+
### Colored
|
|
40
|
+
|
|
41
|
+
`color` tints the bar with a palette hue at 16% — enough to distinguish the rows while still
|
|
42
|
+
letting the row's own hover state show through it.
|
|
43
|
+
|
|
44
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#Colored
|
|
45
|
+
|
|
46
|
+
### CustomColors
|
|
47
|
+
|
|
48
|
+
For a hue the palette does not carry, pass a `bg-*` utility on the bar instead — the
|
|
49
|
+
explicit class wins the merge against the variant's own fill.
|
|
50
|
+
|
|
51
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#CustomColors
|
|
52
|
+
|
|
53
|
+
### Percentage
|
|
54
|
+
|
|
55
|
+
Values that are already percentages: `max={100}`, and the value slot prints the number
|
|
56
|
+
itself rather than a share derived from it.
|
|
57
|
+
|
|
58
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#Percentage
|
|
59
|
+
|
|
60
|
+
### Selectable
|
|
61
|
+
|
|
62
|
+
`selected` marks the active row — the hover tint and `aria-current` — and never touches the
|
|
63
|
+
bar, whose width stays `value / max` whatever is selected.
|
|
64
|
+
|
|
65
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#Selectable
|
|
66
|
+
|
|
67
|
+
### TruncatedLabels
|
|
68
|
+
|
|
69
|
+
Long labels truncate at the row width. A tooltip on the label needs `pointer-events-auto`,
|
|
70
|
+
since the row's slots are transparent to the pointer by default.
|
|
71
|
+
|
|
72
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#TruncatedLabels
|
|
73
|
+
|
|
74
|
+
### TruncatedLabelsWithTooltip
|
|
75
|
+
|
|
76
|
+
The same labels under `OverflowTooltip`, which shows the full text only when it is actually
|
|
77
|
+
cut off — the right choice when most labels fit.
|
|
78
|
+
|
|
79
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#TruncatedLabelsWithTooltip
|
|
80
|
+
|
|
81
|
+
### DataVariants
|
|
82
|
+
|
|
83
|
+
One card, three datasets behind a settings menu: raw counts, percentages and fractions each
|
|
84
|
+
need their own `max`, so switching the source switches that too.
|
|
85
|
+
|
|
86
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#DataVariants
|
|
87
|
+
|
|
88
|
+
### Loading
|
|
89
|
+
|
|
90
|
+
`BarListSkeleton` stands in for the list while data loads, taking a row count so the card
|
|
91
|
+
holds the height it will end up at.
|
|
92
|
+
|
|
93
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#Loading
|
|
94
|
+
|
|
95
|
+
### Overflow
|
|
96
|
+
|
|
97
|
+
A value above `max` caps the bar at full width and the label at 100%, rather than
|
|
98
|
+
overrunning the row.
|
|
99
|
+
|
|
100
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#Overflow
|
|
101
|
+
|
|
102
|
+
### InvalidMax
|
|
103
|
+
|
|
104
|
+
`max={0}` is not a division the component will guess at: every row renders empty at 0%, with
|
|
105
|
+
a single warning in development.
|
|
106
|
+
|
|
107
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#InvalidMax
|
|
108
|
+
|
|
109
|
+
### PercentDigits
|
|
110
|
+
|
|
111
|
+
`digits` adds decimal places, for a set of shares too close together to tell apart as whole
|
|
112
|
+
numbers.
|
|
113
|
+
|
|
114
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#PercentDigits
|
|
115
|
+
|
|
116
|
+
### PercentVariants
|
|
117
|
+
|
|
118
|
+
The three percent treatments — `split` colours the number and the `%` differently and is the
|
|
119
|
+
Figma default, `muted` sets both back, `inherit` leaves them to the row.
|
|
120
|
+
|
|
121
|
+
Source: SimpleCharts/BarList/BarList.stories.tsx#PercentVariants
|
|
122
|
+
|
|
123
|
+
## Story sources
|
|
124
|
+
|
|
125
|
+
### SimpleCharts/BarList/BarList.stories.tsx
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
import { type ReactNode, useState } from 'react';
|
|
129
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
130
|
+
import { Check, FilterX, Settings } from '../../../icons';
|
|
131
|
+
import { cn } from '../../../utils/cn';
|
|
132
|
+
import { Button } from '../../Button';
|
|
133
|
+
import {
|
|
134
|
+
DropdownMenu,
|
|
135
|
+
DropdownMenuContent,
|
|
136
|
+
DropdownMenuGroup,
|
|
137
|
+
DropdownMenuItem,
|
|
138
|
+
DropdownMenuItemIcon,
|
|
139
|
+
DropdownMenuLabel,
|
|
140
|
+
DropdownMenuTrigger,
|
|
141
|
+
} from '../../DropdownMenu';
|
|
142
|
+
import {
|
|
143
|
+
OverflowTooltip,
|
|
144
|
+
OverflowTooltipContent,
|
|
145
|
+
OverflowTooltipTrigger,
|
|
146
|
+
} from '../../OverflowTooltip';
|
|
147
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../../Tooltip';
|
|
148
|
+
import { Chart } from '../Chart/Chart';
|
|
149
|
+
import { ChartActions } from '../Chart/ChartActions';
|
|
150
|
+
import { ChartHeader } from '../Chart/ChartHeader';
|
|
151
|
+
import { ChartTitle } from '../Chart/ChartTitle';
|
|
152
|
+
import type { ChartColor } from '../types';
|
|
153
|
+
import { BarList } from './BarList';
|
|
154
|
+
import { BarListBar } from './BarListBar';
|
|
155
|
+
import { BarListItem } from './BarListItem';
|
|
156
|
+
import { BarListLabel } from './BarListLabel';
|
|
157
|
+
import { BarListPercent } from './BarListPercent';
|
|
158
|
+
import { BarListSkeleton } from './BarListSkeleton';
|
|
159
|
+
import { BarListValue } from './BarListValue';
|
|
160
|
+
|
|
161
|
+
interface Row {
|
|
162
|
+
name: string;
|
|
163
|
+
value: number;
|
|
164
|
+
color?: ChartColor;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const baseRows: Row[] = [
|
|
168
|
+
{ name: '/api/v1/users', value: 1240, color: 'brand' },
|
|
169
|
+
{ name: '/api/v1/auth/login', value: 890, color: 'green' },
|
|
170
|
+
{ name: '/api/v1/orders', value: 612, color: 'blue' },
|
|
171
|
+
{ name: '/api/v1/products', value: 358, color: 'amber' },
|
|
172
|
+
{ name: '/api/v1/search', value: 174, color: 'red' },
|
|
173
|
+
];
|
|
174
|
+
|
|
175
|
+
const longLabelRows: Row[] = [
|
|
176
|
+
{ name: '/api/v1/observability/events/ingestion/batch', value: 1240 },
|
|
177
|
+
{ name: '/api/v1/identity/authentication/sessions/refresh', value: 890 },
|
|
178
|
+
{ name: '/api/v1/billing/invoices/line-items/detail', value: 612 },
|
|
179
|
+
{ name: '/api/v1/catalog/products/variants/inventory', value: 358 },
|
|
180
|
+
{ name: '/api/v1/search/federated/suggestions/autocomplete', value: 174 },
|
|
181
|
+
{ name: '/api/v1/analytics/dashboards/widgets/timeseries', value: 162 },
|
|
182
|
+
{ name: '/api/v1/notifications/subscriptions/channels/email', value: 148 },
|
|
183
|
+
{ name: '/api/v1/reports/export/scheduled/weekly', value: 121 },
|
|
184
|
+
{ name: '/api/v1/integrations/webhooks/deliveries/retry', value: 97 },
|
|
185
|
+
{ name: '/api/v1/audit-logs/events/security/login-attempts', value: 42 },
|
|
186
|
+
];
|
|
187
|
+
|
|
188
|
+
const percentageRows: Row[] = [
|
|
189
|
+
{ name: 'Success', value: 78 },
|
|
190
|
+
{ name: 'Client error', value: 18 },
|
|
191
|
+
{ name: 'Server error', value: 4 },
|
|
192
|
+
];
|
|
193
|
+
|
|
194
|
+
const formatValue = (n: number) => n.toLocaleString('en-US');
|
|
195
|
+
const formatPercent = (n: number) => `${n}%`;
|
|
196
|
+
|
|
197
|
+
const DESCRIPTION = [
|
|
198
|
+
'A compact top-N breakdown for a dashboard card — endpoints, status codes, regions — where the rows are read as a ranking rather than plotted against an axis.',
|
|
199
|
+
'You render a `BarListItem` per data point and choose which slots go in it; the root supplies `max`, the value at which a bar is full, and nothing is sorted, sliced or aggregated for you. `BarListSkeleton` covers the loading state.',
|
|
200
|
+
].join(' ');
|
|
201
|
+
|
|
202
|
+
const meta = {
|
|
203
|
+
title: 'Data Display/SimpleCharts/BarList',
|
|
204
|
+
component: BarList,
|
|
205
|
+
subcomponents: {
|
|
206
|
+
BarListItem,
|
|
207
|
+
BarListBar,
|
|
208
|
+
BarListLabel,
|
|
209
|
+
BarListValue,
|
|
210
|
+
BarListPercent,
|
|
211
|
+
BarListSkeleton,
|
|
212
|
+
},
|
|
213
|
+
parameters: {
|
|
214
|
+
layout: 'padded',
|
|
215
|
+
design: {
|
|
216
|
+
type: 'figma',
|
|
217
|
+
url: 'https://www.figma.com/design/VKb5gW46uSGw0rqrhZsbXT/WADS-Components?node-id=7490-121720&m=dev',
|
|
218
|
+
},
|
|
219
|
+
docs: { description: { component: DESCRIPTION } },
|
|
220
|
+
},
|
|
221
|
+
tags: ['autodocs'],
|
|
222
|
+
} satisfies Meta<typeof BarList>;
|
|
223
|
+
|
|
224
|
+
export default meta;
|
|
225
|
+
|
|
226
|
+
const chartSum = (rows: Row[]) => rows.reduce((sum, r) => sum + r.value, 0);
|
|
227
|
+
const chartMax = (rows: Row[]) => Math.max(...rows.map(r => r.value));
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The interactive shape: click a row to filter down to it, and the header's clear button
|
|
231
|
+
* appears while that filter holds. Filtering recomputes `max` from what is left, which is why
|
|
232
|
+
* a lone row reads 100%.
|
|
233
|
+
*/
|
|
234
|
+
export const Default: StoryFn<typeof meta> = () => {
|
|
235
|
+
const [filtered, setFiltered] = useState<string | null>(null);
|
|
236
|
+
const rows = filtered ? baseRows.filter(r => r.name === filtered) : baseRows;
|
|
237
|
+
|
|
238
|
+
return (
|
|
239
|
+
<div className='w-400'>
|
|
240
|
+
<Chart>
|
|
241
|
+
<ChartHeader>
|
|
242
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
243
|
+
<ChartActions alwaysVisible={filtered !== null}>
|
|
244
|
+
{filtered !== null && (
|
|
245
|
+
<Tooltip>
|
|
246
|
+
<TooltipTrigger asChild>
|
|
247
|
+
<Button
|
|
248
|
+
variant='ghost'
|
|
249
|
+
color='neutral'
|
|
250
|
+
size='small'
|
|
251
|
+
aria-label='Clear filter'
|
|
252
|
+
onClick={() => setFiltered(null)}
|
|
253
|
+
>
|
|
254
|
+
<FilterX />
|
|
255
|
+
</Button>
|
|
256
|
+
</TooltipTrigger>
|
|
257
|
+
<TooltipContent>Remove filter</TooltipContent>
|
|
258
|
+
</Tooltip>
|
|
259
|
+
)}
|
|
260
|
+
<Tooltip>
|
|
261
|
+
<TooltipTrigger asChild>
|
|
262
|
+
<Button variant='ghost' color='neutral' size='small' aria-label='Settings'>
|
|
263
|
+
<Settings />
|
|
264
|
+
</Button>
|
|
265
|
+
</TooltipTrigger>
|
|
266
|
+
<TooltipContent>Change data source</TooltipContent>
|
|
267
|
+
</Tooltip>
|
|
268
|
+
</ChartActions>
|
|
269
|
+
</ChartHeader>
|
|
270
|
+
<BarList data-testid='bar-list' max={chartSum(rows)}>
|
|
271
|
+
{rows.map(row => (
|
|
272
|
+
<Tooltip key={row.name}>
|
|
273
|
+
<TooltipTrigger asChild>
|
|
274
|
+
<BarListItem
|
|
275
|
+
value={row.value}
|
|
276
|
+
selected={filtered === row.name}
|
|
277
|
+
onClick={() => setFiltered(filtered === row.name ? null : row.name)}
|
|
278
|
+
>
|
|
279
|
+
<BarListBar />
|
|
280
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
281
|
+
<BarListValue>
|
|
282
|
+
{formatValue(row.value)}
|
|
283
|
+
<BarListPercent />
|
|
284
|
+
</BarListValue>
|
|
285
|
+
</BarListItem>
|
|
286
|
+
</TooltipTrigger>
|
|
287
|
+
<TooltipContent>Click to filter</TooltipContent>
|
|
288
|
+
</Tooltip>
|
|
289
|
+
))}
|
|
290
|
+
</BarList>
|
|
291
|
+
</Chart>
|
|
292
|
+
</div>
|
|
293
|
+
);
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* `color` tints the bar with a palette hue at 16% — enough to distinguish the rows while still
|
|
298
|
+
* letting the row's own hover state show through it.
|
|
299
|
+
*/
|
|
300
|
+
export const Colored: StoryFn<typeof meta> = () => (
|
|
301
|
+
<div className='w-400'>
|
|
302
|
+
<Chart>
|
|
303
|
+
<ChartHeader>
|
|
304
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
305
|
+
</ChartHeader>
|
|
306
|
+
<BarList data-testid='bar-list' max={chartMax(baseRows)}>
|
|
307
|
+
{baseRows.map(row => (
|
|
308
|
+
<BarListItem key={row.name} value={row.value}>
|
|
309
|
+
<BarListBar color={row.color} />
|
|
310
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
311
|
+
<BarListValue>
|
|
312
|
+
{formatValue(row.value)}
|
|
313
|
+
<BarListPercent variant='muted' />
|
|
314
|
+
</BarListValue>
|
|
315
|
+
</BarListItem>
|
|
316
|
+
))}
|
|
317
|
+
</BarList>
|
|
318
|
+
</Chart>
|
|
319
|
+
</div>
|
|
320
|
+
);
|
|
321
|
+
|
|
322
|
+
const customColorClassNames = [
|
|
323
|
+
'bg-violet-500/16',
|
|
324
|
+
'bg-emerald-500/16',
|
|
325
|
+
'bg-sky-500/16',
|
|
326
|
+
'bg-yellow-500/16',
|
|
327
|
+
'bg-fuchsia-500/16',
|
|
328
|
+
];
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* For a hue the palette does not carry, pass a `bg-*` utility on the bar instead — the
|
|
332
|
+
* explicit class wins the merge against the variant's own fill.
|
|
333
|
+
*/
|
|
334
|
+
export const CustomColors: StoryFn<typeof meta> = () => (
|
|
335
|
+
<div className='w-400'>
|
|
336
|
+
<Chart>
|
|
337
|
+
<ChartHeader>
|
|
338
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
339
|
+
</ChartHeader>
|
|
340
|
+
<BarList max={chartMax(baseRows)}>
|
|
341
|
+
{baseRows.map((row, i) => (
|
|
342
|
+
<BarListItem key={row.name} value={row.value}>
|
|
343
|
+
<BarListBar className={customColorClassNames[i]} />
|
|
344
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
345
|
+
<BarListValue>
|
|
346
|
+
{formatValue(row.value)}
|
|
347
|
+
<BarListPercent variant='muted' />
|
|
348
|
+
</BarListValue>
|
|
349
|
+
</BarListItem>
|
|
350
|
+
))}
|
|
351
|
+
</BarList>
|
|
352
|
+
</Chart>
|
|
353
|
+
</div>
|
|
354
|
+
);
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Values that are already percentages: `max={100}`, and the value slot prints the number
|
|
358
|
+
* itself rather than a share derived from it.
|
|
359
|
+
*/
|
|
360
|
+
export const Percentage: StoryFn<typeof meta> = () => (
|
|
361
|
+
<div className='w-400'>
|
|
362
|
+
<Chart>
|
|
363
|
+
<ChartHeader>
|
|
364
|
+
<ChartTitle>Response status</ChartTitle>
|
|
365
|
+
</ChartHeader>
|
|
366
|
+
<BarList max={100}>
|
|
367
|
+
{percentageRows.map(row => (
|
|
368
|
+
<BarListItem key={row.name} value={row.value}>
|
|
369
|
+
<BarListBar />
|
|
370
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
371
|
+
<BarListValue>{formatPercent(row.value)}</BarListValue>
|
|
372
|
+
</BarListItem>
|
|
373
|
+
))}
|
|
374
|
+
</BarList>
|
|
375
|
+
</Chart>
|
|
376
|
+
</div>
|
|
377
|
+
);
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* `selected` marks the active row — the hover tint and `aria-current` — and never touches the
|
|
381
|
+
* bar, whose width stays `value / max` whatever is selected.
|
|
382
|
+
*/
|
|
383
|
+
export const Selectable: StoryFn<typeof meta> = () => {
|
|
384
|
+
const [selected, setSelected] = useState<string | null>(null);
|
|
385
|
+
|
|
386
|
+
return (
|
|
387
|
+
<div className='w-400'>
|
|
388
|
+
<Chart>
|
|
389
|
+
<ChartHeader>
|
|
390
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
391
|
+
<ChartActions alwaysVisible={selected !== null}>
|
|
392
|
+
{selected !== null && (
|
|
393
|
+
<Button
|
|
394
|
+
variant='ghost'
|
|
395
|
+
color='neutral'
|
|
396
|
+
size='small'
|
|
397
|
+
aria-label='Clear selection'
|
|
398
|
+
onClick={() => setSelected(null)}
|
|
399
|
+
>
|
|
400
|
+
<FilterX />
|
|
401
|
+
</Button>
|
|
402
|
+
)}
|
|
403
|
+
</ChartActions>
|
|
404
|
+
</ChartHeader>
|
|
405
|
+
<BarList data-testid='bar-list' max={chartSum(baseRows)}>
|
|
406
|
+
{baseRows.map(row => (
|
|
407
|
+
<Tooltip key={row.name}>
|
|
408
|
+
<TooltipTrigger asChild>
|
|
409
|
+
<BarListItem
|
|
410
|
+
value={row.value}
|
|
411
|
+
selected={selected === row.name}
|
|
412
|
+
onClick={() => setSelected(selected === row.name ? null : row.name)}
|
|
413
|
+
>
|
|
414
|
+
<BarListBar />
|
|
415
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
416
|
+
<BarListValue>
|
|
417
|
+
{formatValue(row.value)}
|
|
418
|
+
<BarListPercent variant='muted' />
|
|
419
|
+
</BarListValue>
|
|
420
|
+
</BarListItem>
|
|
421
|
+
</TooltipTrigger>
|
|
422
|
+
<TooltipContent>Click to filter</TooltipContent>
|
|
423
|
+
</Tooltip>
|
|
424
|
+
))}
|
|
425
|
+
</BarList>
|
|
426
|
+
</Chart>
|
|
427
|
+
</div>
|
|
428
|
+
);
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Long labels truncate at the row width. A tooltip on the label needs `pointer-events-auto`,
|
|
433
|
+
* since the row's slots are transparent to the pointer by default.
|
|
434
|
+
*/
|
|
435
|
+
export const TruncatedLabels: StoryFn<typeof meta> = () => (
|
|
436
|
+
<div className='w-400'>
|
|
437
|
+
<Chart>
|
|
438
|
+
<ChartHeader>
|
|
439
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
440
|
+
</ChartHeader>
|
|
441
|
+
<BarList max={chartMax(longLabelRows)}>
|
|
442
|
+
{longLabelRows.map(row => (
|
|
443
|
+
<BarListItem key={row.name} value={row.value}>
|
|
444
|
+
<BarListBar />
|
|
445
|
+
<Tooltip>
|
|
446
|
+
<TooltipTrigger asChild>
|
|
447
|
+
<BarListLabel className='pointer-events-auto'>{row.name}</BarListLabel>
|
|
448
|
+
</TooltipTrigger>
|
|
449
|
+
<TooltipContent>Example of custom description</TooltipContent>
|
|
450
|
+
</Tooltip>
|
|
451
|
+
<BarListValue>
|
|
452
|
+
{formatValue(row.value)}
|
|
453
|
+
<BarListPercent variant='muted' />
|
|
454
|
+
</BarListValue>
|
|
455
|
+
</BarListItem>
|
|
456
|
+
))}
|
|
457
|
+
</BarList>
|
|
458
|
+
</Chart>
|
|
459
|
+
</div>
|
|
460
|
+
);
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The same labels under `OverflowTooltip`, which shows the full text only when it is actually
|
|
464
|
+
* cut off — the right choice when most labels fit.
|
|
465
|
+
*/
|
|
466
|
+
export const TruncatedLabelsWithTooltip: StoryFn<typeof meta> = () => (
|
|
467
|
+
<div className='w-400'>
|
|
468
|
+
<Chart>
|
|
469
|
+
<ChartHeader>
|
|
470
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
471
|
+
</ChartHeader>
|
|
472
|
+
<BarList max={chartMax(longLabelRows)}>
|
|
473
|
+
{longLabelRows.map(row => (
|
|
474
|
+
<BarListItem key={row.name} value={row.value}>
|
|
475
|
+
<BarListBar />
|
|
476
|
+
<OverflowTooltip>
|
|
477
|
+
<OverflowTooltipTrigger>
|
|
478
|
+
<BarListLabel className='pointer-events-auto'>{row.name}</BarListLabel>
|
|
479
|
+
</OverflowTooltipTrigger>
|
|
480
|
+
<OverflowTooltipContent>{row.name}</OverflowTooltipContent>
|
|
481
|
+
</OverflowTooltip>
|
|
482
|
+
<BarListValue>
|
|
483
|
+
{formatValue(row.value)}
|
|
484
|
+
<BarListPercent variant='muted' />
|
|
485
|
+
</BarListValue>
|
|
486
|
+
</BarListItem>
|
|
487
|
+
))}
|
|
488
|
+
</BarList>
|
|
489
|
+
</Chart>
|
|
490
|
+
</div>
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
type DatasetKey = 'values' | 'labeled' | 'percent';
|
|
494
|
+
|
|
495
|
+
interface Dataset {
|
|
496
|
+
title: string;
|
|
497
|
+
rows: Row[];
|
|
498
|
+
max: number;
|
|
499
|
+
renderValue: (row: Row) => ReactNode;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
const datasets: Record<DatasetKey, Dataset> = {
|
|
503
|
+
values: {
|
|
504
|
+
title: 'Requests — values only',
|
|
505
|
+
rows: baseRows,
|
|
506
|
+
max: chartMax(baseRows),
|
|
507
|
+
renderValue: row => <BarListValue>{formatValue(row.value)}</BarListValue>,
|
|
508
|
+
},
|
|
509
|
+
labeled: {
|
|
510
|
+
title: 'Top 5 Endpoints — value + %',
|
|
511
|
+
rows: longLabelRows,
|
|
512
|
+
max: chartMax(longLabelRows),
|
|
513
|
+
renderValue: row => (
|
|
514
|
+
<BarListValue>
|
|
515
|
+
{formatValue(row.value)}
|
|
516
|
+
<BarListPercent variant='muted' />
|
|
517
|
+
</BarListValue>
|
|
518
|
+
),
|
|
519
|
+
},
|
|
520
|
+
percent: {
|
|
521
|
+
title: 'Response status — percentage input',
|
|
522
|
+
rows: percentageRows,
|
|
523
|
+
max: 100,
|
|
524
|
+
renderValue: row => <BarListValue>{formatPercent(row.value)}</BarListValue>,
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* One card, three datasets behind a settings menu: raw counts, percentages and fractions each
|
|
530
|
+
* need their own `max`, so switching the source switches that too.
|
|
531
|
+
*/
|
|
532
|
+
export const DataVariants: StoryFn<typeof meta> = () => {
|
|
533
|
+
const [key, setKey] = useState<DatasetKey>('values');
|
|
534
|
+
const [menuOpen, setMenuOpen] = useState(false);
|
|
535
|
+
const current = datasets[key];
|
|
536
|
+
|
|
537
|
+
return (
|
|
538
|
+
<div className='w-400'>
|
|
539
|
+
<Chart>
|
|
540
|
+
<ChartHeader>
|
|
541
|
+
<ChartTitle>{current.title}</ChartTitle>
|
|
542
|
+
<ChartActions alwaysVisible={menuOpen}>
|
|
543
|
+
<Tooltip disabled={menuOpen}>
|
|
544
|
+
<TooltipTrigger asChild>
|
|
545
|
+
<span className='inline-flex'>
|
|
546
|
+
<DropdownMenu onOpenChange={setMenuOpen}>
|
|
547
|
+
<DropdownMenuTrigger asChild>
|
|
548
|
+
<Button variant='ghost' color='neutral' size='small' aria-label='Settings'>
|
|
549
|
+
<Settings />
|
|
550
|
+
</Button>
|
|
551
|
+
</DropdownMenuTrigger>
|
|
552
|
+
<DropdownMenuContent>
|
|
553
|
+
<DropdownMenuLabel>Data source</DropdownMenuLabel>
|
|
554
|
+
<DropdownMenuGroup>
|
|
555
|
+
{(Object.keys(datasets) as DatasetKey[]).map(k => (
|
|
556
|
+
<DropdownMenuItem key={k} onSelect={() => setKey(k)}>
|
|
557
|
+
<span className='flex-1'>{datasets[k].title}</span>
|
|
558
|
+
<DropdownMenuItemIcon>
|
|
559
|
+
<Check className={cn(key !== k && 'opacity-0')} />
|
|
560
|
+
</DropdownMenuItemIcon>
|
|
561
|
+
</DropdownMenuItem>
|
|
562
|
+
))}
|
|
563
|
+
</DropdownMenuGroup>
|
|
564
|
+
</DropdownMenuContent>
|
|
565
|
+
</DropdownMenu>
|
|
566
|
+
</span>
|
|
567
|
+
</TooltipTrigger>
|
|
568
|
+
<TooltipContent>Change data source</TooltipContent>
|
|
569
|
+
</Tooltip>
|
|
570
|
+
</ChartActions>
|
|
571
|
+
</ChartHeader>
|
|
572
|
+
<BarList max={current.max}>
|
|
573
|
+
{current.rows.map(row => (
|
|
574
|
+
<BarListItem key={row.name} value={row.value}>
|
|
575
|
+
<BarListBar color={row.color} />
|
|
576
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
577
|
+
{current.renderValue(row)}
|
|
578
|
+
</BarListItem>
|
|
579
|
+
))}
|
|
580
|
+
</BarList>
|
|
581
|
+
</Chart>
|
|
582
|
+
</div>
|
|
583
|
+
);
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* `BarListSkeleton` stands in for the list while data loads, taking a row count so the card
|
|
588
|
+
* holds the height it will end up at.
|
|
589
|
+
*/
|
|
590
|
+
export const Loading: StoryFn<typeof meta> = () => (
|
|
591
|
+
<div className='w-400'>
|
|
592
|
+
<Chart>
|
|
593
|
+
<ChartHeader>
|
|
594
|
+
<ChartTitle>Top 5 Endpoints</ChartTitle>
|
|
595
|
+
</ChartHeader>
|
|
596
|
+
<BarListSkeleton data-testid='bar-list-skeleton' rows={5} />
|
|
597
|
+
</Chart>
|
|
598
|
+
</div>
|
|
599
|
+
);
|
|
600
|
+
|
|
601
|
+
const overflowRows: Row[] = [
|
|
602
|
+
{ name: 'Over capacity', value: 150 },
|
|
603
|
+
{ name: 'Half', value: 50 },
|
|
604
|
+
{ name: 'Zero', value: 0 },
|
|
605
|
+
];
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* A value above `max` caps the bar at full width and the label at 100%, rather than
|
|
609
|
+
* overrunning the row.
|
|
610
|
+
*/
|
|
611
|
+
export const Overflow: StoryFn<typeof meta> = () => (
|
|
612
|
+
<div className='w-400'>
|
|
613
|
+
<Chart>
|
|
614
|
+
<ChartHeader>
|
|
615
|
+
<ChartTitle>Overflow & zero</ChartTitle>
|
|
616
|
+
</ChartHeader>
|
|
617
|
+
<BarList data-testid='bar-list' max={100}>
|
|
618
|
+
{overflowRows.map(row => (
|
|
619
|
+
<BarListItem key={row.name} value={row.value}>
|
|
620
|
+
<BarListBar />
|
|
621
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
622
|
+
<BarListValue>
|
|
623
|
+
{formatValue(row.value)}
|
|
624
|
+
<BarListPercent variant='muted' />
|
|
625
|
+
</BarListValue>
|
|
626
|
+
</BarListItem>
|
|
627
|
+
))}
|
|
628
|
+
</BarList>
|
|
629
|
+
</Chart>
|
|
630
|
+
</div>
|
|
631
|
+
);
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* `max={0}` is not a division the component will guess at: every row renders empty at 0%, with
|
|
635
|
+
* a single warning in development.
|
|
636
|
+
*/
|
|
637
|
+
export const InvalidMax: StoryFn<typeof meta> = () => (
|
|
638
|
+
<div className='w-400'>
|
|
639
|
+
<Chart>
|
|
640
|
+
<ChartHeader>
|
|
641
|
+
<ChartTitle>Invalid max</ChartTitle>
|
|
642
|
+
</ChartHeader>
|
|
643
|
+
<BarList data-testid='bar-list' max={0}>
|
|
644
|
+
{baseRows.map(row => (
|
|
645
|
+
<BarListItem key={row.name} value={row.value}>
|
|
646
|
+
<BarListBar />
|
|
647
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
648
|
+
<BarListValue>
|
|
649
|
+
{formatValue(row.value)}
|
|
650
|
+
<BarListPercent variant='muted' />
|
|
651
|
+
</BarListValue>
|
|
652
|
+
</BarListItem>
|
|
653
|
+
))}
|
|
654
|
+
</BarList>
|
|
655
|
+
</Chart>
|
|
656
|
+
</div>
|
|
657
|
+
);
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* `digits` adds decimal places, for a set of shares too close together to tell apart as whole
|
|
661
|
+
* numbers.
|
|
662
|
+
*/
|
|
663
|
+
export const PercentDigits: StoryFn<typeof meta> = () => (
|
|
664
|
+
<div className='w-400'>
|
|
665
|
+
<Chart>
|
|
666
|
+
<ChartHeader>
|
|
667
|
+
<ChartTitle>Decimal precision</ChartTitle>
|
|
668
|
+
</ChartHeader>
|
|
669
|
+
<BarList data-testid='bar-list' max={chartSum(baseRows)}>
|
|
670
|
+
{baseRows.map(row => (
|
|
671
|
+
<BarListItem key={row.name} value={row.value}>
|
|
672
|
+
<BarListBar />
|
|
673
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
674
|
+
<BarListValue>
|
|
675
|
+
{formatValue(row.value)}
|
|
676
|
+
<BarListPercent digits={1} variant='muted' />
|
|
677
|
+
</BarListValue>
|
|
678
|
+
</BarListItem>
|
|
679
|
+
))}
|
|
680
|
+
</BarList>
|
|
681
|
+
</Chart>
|
|
682
|
+
</div>
|
|
683
|
+
);
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* The three percent treatments — `split` colours the number and the `%` differently and is the
|
|
687
|
+
* Figma default, `muted` sets both back, `inherit` leaves them to the row.
|
|
688
|
+
*/
|
|
689
|
+
export const PercentVariants: StoryFn<typeof meta> = () => (
|
|
690
|
+
<div className='flex flex-col gap-16 w-400'>
|
|
691
|
+
<Chart>
|
|
692
|
+
<ChartHeader>
|
|
693
|
+
<ChartTitle>Split — value primary, % secondary (default)</ChartTitle>
|
|
694
|
+
</ChartHeader>
|
|
695
|
+
<BarList data-testid='bar-list-split' max={chartSum(baseRows)}>
|
|
696
|
+
{baseRows.map(row => (
|
|
697
|
+
<BarListItem key={row.name} value={row.value}>
|
|
698
|
+
<BarListBar />
|
|
699
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
700
|
+
<BarListValue>
|
|
701
|
+
{formatValue(row.value)}
|
|
702
|
+
<BarListPercent variant='split' />
|
|
703
|
+
</BarListValue>
|
|
704
|
+
</BarListItem>
|
|
705
|
+
))}
|
|
706
|
+
</BarList>
|
|
707
|
+
</Chart>
|
|
708
|
+
|
|
709
|
+
<Chart>
|
|
710
|
+
<ChartHeader>
|
|
711
|
+
<ChartTitle>Muted — both tokens secondary</ChartTitle>
|
|
712
|
+
</ChartHeader>
|
|
713
|
+
<BarList max={chartSum(baseRows)}>
|
|
714
|
+
{baseRows.map(row => (
|
|
715
|
+
<BarListItem key={row.name} value={row.value}>
|
|
716
|
+
<BarListBar />
|
|
717
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
718
|
+
<BarListValue>
|
|
719
|
+
{formatValue(row.value)}
|
|
720
|
+
<BarListPercent variant='muted' />
|
|
721
|
+
</BarListValue>
|
|
722
|
+
</BarListItem>
|
|
723
|
+
))}
|
|
724
|
+
</BarList>
|
|
725
|
+
</Chart>
|
|
726
|
+
|
|
727
|
+
<Chart>
|
|
728
|
+
<ChartHeader>
|
|
729
|
+
<ChartTitle>Inherit — follows BarListValue color</ChartTitle>
|
|
730
|
+
</ChartHeader>
|
|
731
|
+
<BarList max={chartSum(baseRows)}>
|
|
732
|
+
{baseRows.map(row => (
|
|
733
|
+
<BarListItem key={row.name} value={row.value}>
|
|
734
|
+
<BarListBar />
|
|
735
|
+
<BarListLabel>{row.name}</BarListLabel>
|
|
736
|
+
<BarListValue>
|
|
737
|
+
{formatValue(row.value)}
|
|
738
|
+
<BarListPercent variant='inherit' />
|
|
739
|
+
</BarListValue>
|
|
740
|
+
</BarListItem>
|
|
741
|
+
))}
|
|
742
|
+
</BarList>
|
|
743
|
+
</Chart>
|
|
744
|
+
</div>
|
|
745
|
+
);
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
### ../utils/cn.ts
|
|
749
|
+
|
|
750
|
+
```tsx
|
|
751
|
+
import { type ClassArray, clsx } from 'clsx';
|
|
752
|
+
import { twMerge } from 'tailwind-merge';
|
|
753
|
+
|
|
754
|
+
export const cn = (...inputs: ClassArray): string => {
|
|
755
|
+
return twMerge(clsx(inputs));
|
|
756
|
+
};
|
|
757
|
+
```
|