@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,531 @@
|
|
|
1
|
+
The interactive hierarchy: rows that expand, select and disable, with the connector rails drawn for you. Reach for `Tree` when you only need to *show* nesting — this one is for working in it. Rows are composed freely, so an icon, a badge or a checkbox is just a child, and nested `TreeViewItem`s become the subtree.
|
|
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
|
+
| `selectable` | `boolean \| undefined` | no | `false` | Allow rows to be selected by clicking. |
|
|
10
|
+
| `multi-select` | `boolean \| undefined` | no | `false` | Allow more than one row to be selected at a time. |
|
|
11
|
+
| `selected-ids` | `string[] \| undefined` | no | — | Controlled selected item ids. |
|
|
12
|
+
| `default-selected-ids` | `string[] \| undefined` | no | — | Uncontrolled initial selected item ids. |
|
|
13
|
+
| `on-selection-change` | `((ids: string[]) => void) \| undefined` | no | — | Called whenever the selection changes. |
|
|
14
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
15
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
16
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
17
|
+
| `id` | `string \| undefined` | no | — | |
|
|
18
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
19
|
+
| `title` | `string \| undefined` | no | — | |
|
|
20
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
21
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
22
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
23
|
+
|
|
24
|
+
## Sub-components
|
|
25
|
+
|
|
26
|
+
- `WallarmDS.TreeViewItem` — `TreeViewItemProps` in the declaration bundle.
|
|
27
|
+
|
|
28
|
+
## Stories
|
|
29
|
+
|
|
30
|
+
### Basic
|
|
31
|
+
|
|
32
|
+
One level of rows. Each `TreeViewItem` is composed like any row — the component supplies the rail, the indentation and the toggle.
|
|
33
|
+
|
|
34
|
+
Source: TreeView/TreeView.stories.tsx#Basic
|
|
35
|
+
|
|
36
|
+
### Nested
|
|
37
|
+
|
|
38
|
+
Nested items become the collapsible subtree, which is also what marks the parent as a branch. Branches start closed.
|
|
39
|
+
|
|
40
|
+
Source: TreeView/TreeView.stories.tsx#Nested
|
|
41
|
+
|
|
42
|
+
### WithCheckboxes
|
|
43
|
+
|
|
44
|
+
The tree has no checkbox logic: the checkbox is a child, the checked set is yours, and the click has to be stopped from reaching row selection.
|
|
45
|
+
|
|
46
|
+
Source: TreeView/TreeView.stories.tsx#WithCheckboxes
|
|
47
|
+
|
|
48
|
+
### Selectable
|
|
49
|
+
|
|
50
|
+
`selectable` (with `multiSelect` for more than one) turns rows into a selection, controlled through `selectedIds` or left to the component.
|
|
51
|
+
|
|
52
|
+
Source: TreeView/TreeView.stories.tsx#Selectable
|
|
53
|
+
|
|
54
|
+
### WithInlineBadge
|
|
55
|
+
|
|
56
|
+
A badge beside the label, for a count that belongs to the row rather than to its children.
|
|
57
|
+
|
|
58
|
+
Source: TreeView/TreeView.stories.tsx#WithInlineBadge
|
|
59
|
+
|
|
60
|
+
### WithTrailingContent
|
|
61
|
+
|
|
62
|
+
The label is `flex-1`, so anything after it lands against the right edge — which is how a count or a tag ends up trailing without any prop for it.
|
|
63
|
+
|
|
64
|
+
Source: TreeView/TreeView.stories.tsx#WithTrailingContent
|
|
65
|
+
|
|
66
|
+
### Disabled
|
|
67
|
+
|
|
68
|
+
A disabled row dims and stops responding to everything: toggle, selection and checkbox alike.
|
|
69
|
+
|
|
70
|
+
Source: TreeView/TreeView.stories.tsx#Disabled
|
|
71
|
+
|
|
72
|
+
### WithHeaderAndSearch
|
|
73
|
+
|
|
74
|
+
The toolbar is assembled from `Text`, `Button` and `Input` — there is no TreeView toolbar. Expand-all drives the items’ controlled `open` state, and the search keeps ancestors of matches and opens them.
|
|
75
|
+
|
|
76
|
+
Source: TreeView/TreeView.stories.tsx#WithHeaderAndSearch
|
|
77
|
+
|
|
78
|
+
## Story sources
|
|
79
|
+
|
|
80
|
+
### TreeView/TreeView.stories.tsx
|
|
81
|
+
|
|
82
|
+
```tsx
|
|
83
|
+
import { type ReactNode, useState } from 'react';
|
|
84
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
85
|
+
import {
|
|
86
|
+
ChevronsDownUp,
|
|
87
|
+
ChevronsUpDown,
|
|
88
|
+
FileText,
|
|
89
|
+
Folder,
|
|
90
|
+
PanelRightClose,
|
|
91
|
+
Search,
|
|
92
|
+
} from '../../icons';
|
|
93
|
+
import { Badge } from '../Badge';
|
|
94
|
+
import { Button } from '../Button';
|
|
95
|
+
import { Checkbox } from '../Checkbox';
|
|
96
|
+
import { CheckboxIndicator } from '../Checkbox/CheckboxIndicator';
|
|
97
|
+
import { Input } from '../Input';
|
|
98
|
+
import { Text } from '../Text';
|
|
99
|
+
import { TreeView, type TreeViewProps } from './TreeView';
|
|
100
|
+
import { TreeViewItem } from './TreeViewItem';
|
|
101
|
+
|
|
102
|
+
const DESCRIPTION = [
|
|
103
|
+
'The interactive hierarchy: rows that expand, select and disable, with the connector rails drawn for you.',
|
|
104
|
+
'Reach for `Tree` when you only need to *show* nesting — this one is for working in it. Rows are composed freely, so an icon, a badge or a checkbox is just a child, and nested `TreeViewItem`s become the subtree.',
|
|
105
|
+
].join(' ');
|
|
106
|
+
|
|
107
|
+
const meta = {
|
|
108
|
+
title: 'Navigation/TreeView',
|
|
109
|
+
component: TreeView,
|
|
110
|
+
args: {
|
|
111
|
+
'data-testid': 'tree-view',
|
|
112
|
+
},
|
|
113
|
+
parameters: {
|
|
114
|
+
layout: 'centered',
|
|
115
|
+
docs: {
|
|
116
|
+
description: {
|
|
117
|
+
component: DESCRIPTION,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
} satisfies Meta<typeof TreeView>;
|
|
122
|
+
|
|
123
|
+
export default meta;
|
|
124
|
+
|
|
125
|
+
const CountBadge = ({ value }: { value: number }) => (
|
|
126
|
+
<Badge size='small' color='slate' type='secondary' textVariant='code'>
|
|
127
|
+
{value}
|
|
128
|
+
</Badge>
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
/** One level of rows. Each `TreeViewItem` is composed like any row — the component supplies the rail, the indentation and the toggle. */
|
|
132
|
+
export const Basic: StoryFn<TreeViewProps> = args => (
|
|
133
|
+
<div className='w-320'>
|
|
134
|
+
<TreeView {...args}>
|
|
135
|
+
<TreeViewItem defaultOpen>
|
|
136
|
+
<Folder />
|
|
137
|
+
Components
|
|
138
|
+
<TreeViewItem>
|
|
139
|
+
<FileText />
|
|
140
|
+
Button.tsx
|
|
141
|
+
</TreeViewItem>
|
|
142
|
+
<TreeViewItem>
|
|
143
|
+
<FileText />
|
|
144
|
+
Input.tsx
|
|
145
|
+
</TreeViewItem>
|
|
146
|
+
</TreeViewItem>
|
|
147
|
+
<TreeViewItem>
|
|
148
|
+
<Folder />
|
|
149
|
+
Utils
|
|
150
|
+
<TreeViewItem>
|
|
151
|
+
<FileText />
|
|
152
|
+
cn.ts
|
|
153
|
+
</TreeViewItem>
|
|
154
|
+
</TreeViewItem>
|
|
155
|
+
<TreeViewItem>
|
|
156
|
+
<FileText />
|
|
157
|
+
index.ts
|
|
158
|
+
</TreeViewItem>
|
|
159
|
+
</TreeView>
|
|
160
|
+
</div>
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
/** Nested items become the collapsible subtree, which is also what marks the parent as a branch. Branches start closed. */
|
|
164
|
+
export const Nested: StoryFn<TreeViewProps> = args => (
|
|
165
|
+
<div className='w-320'>
|
|
166
|
+
<TreeView {...args}>
|
|
167
|
+
<TreeViewItem defaultOpen>
|
|
168
|
+
<Folder />
|
|
169
|
+
src
|
|
170
|
+
<TreeViewItem defaultOpen>
|
|
171
|
+
<Folder />
|
|
172
|
+
components
|
|
173
|
+
<TreeViewItem defaultOpen>
|
|
174
|
+
<Folder />
|
|
175
|
+
TreeView
|
|
176
|
+
<TreeViewItem>
|
|
177
|
+
<FileText />
|
|
178
|
+
TreeView.tsx
|
|
179
|
+
</TreeViewItem>
|
|
180
|
+
</TreeViewItem>
|
|
181
|
+
<TreeViewItem>
|
|
182
|
+
<FileText />
|
|
183
|
+
Button.tsx
|
|
184
|
+
</TreeViewItem>
|
|
185
|
+
</TreeViewItem>
|
|
186
|
+
<TreeViewItem>
|
|
187
|
+
<FileText />
|
|
188
|
+
index.ts
|
|
189
|
+
</TreeViewItem>
|
|
190
|
+
</TreeViewItem>
|
|
191
|
+
<TreeViewItem>
|
|
192
|
+
<Folder />
|
|
193
|
+
public
|
|
194
|
+
<TreeViewItem>
|
|
195
|
+
<FileText />
|
|
196
|
+
favicon.ico
|
|
197
|
+
</TreeViewItem>
|
|
198
|
+
</TreeViewItem>
|
|
199
|
+
</TreeView>
|
|
200
|
+
</div>
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
/** The tree has no checkbox logic: the checkbox is a child, the checked set is yours, and the click has to be stopped from reaching row selection. */
|
|
204
|
+
export const WithCheckboxes: StoryFn<TreeViewProps> = () => {
|
|
205
|
+
const [checked, setChecked] = useState<Set<string>>(() => new Set(['users']));
|
|
206
|
+
const cb = (id: string) => (
|
|
207
|
+
<Checkbox
|
|
208
|
+
checked={checked.has(id)}
|
|
209
|
+
onClick={e => e.stopPropagation()}
|
|
210
|
+
onCheckedChange={details =>
|
|
211
|
+
setChecked(prev => {
|
|
212
|
+
const next = new Set(prev);
|
|
213
|
+
if (details.checked === true) {
|
|
214
|
+
next.add(id);
|
|
215
|
+
} else {
|
|
216
|
+
next.delete(id);
|
|
217
|
+
}
|
|
218
|
+
return next;
|
|
219
|
+
})
|
|
220
|
+
}
|
|
221
|
+
className='shrink-0'
|
|
222
|
+
>
|
|
223
|
+
<CheckboxIndicator />
|
|
224
|
+
</Checkbox>
|
|
225
|
+
);
|
|
226
|
+
|
|
227
|
+
return (
|
|
228
|
+
<div className='w-320'>
|
|
229
|
+
<TreeView>
|
|
230
|
+
<TreeViewItem defaultOpen>
|
|
231
|
+
{cb('endpoints')}
|
|
232
|
+
<Folder />
|
|
233
|
+
Endpoints
|
|
234
|
+
<TreeViewItem>
|
|
235
|
+
{cb('users')}
|
|
236
|
+
<FileText />
|
|
237
|
+
/users
|
|
238
|
+
</TreeViewItem>
|
|
239
|
+
<TreeViewItem>
|
|
240
|
+
{cb('orders')}
|
|
241
|
+
<FileText />
|
|
242
|
+
/orders
|
|
243
|
+
</TreeViewItem>
|
|
244
|
+
</TreeViewItem>
|
|
245
|
+
<TreeViewItem>
|
|
246
|
+
{cb('health')}
|
|
247
|
+
<FileText />
|
|
248
|
+
/health
|
|
249
|
+
</TreeViewItem>
|
|
250
|
+
</TreeView>
|
|
251
|
+
</div>
|
|
252
|
+
);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
/** `selectable` (with `multiSelect` for more than one) turns rows into a selection, controlled through `selectedIds` or left to the component. */
|
|
256
|
+
export const Selectable: StoryFn<TreeViewProps> = () => {
|
|
257
|
+
const [selected, setSelected] = useState<string[]>(['button']);
|
|
258
|
+
return (
|
|
259
|
+
<div className='w-320'>
|
|
260
|
+
<TreeView selectable selectedIds={selected} onSelectionChange={setSelected}>
|
|
261
|
+
<TreeViewItem id='components' defaultOpen>
|
|
262
|
+
<Folder />
|
|
263
|
+
Components
|
|
264
|
+
<TreeViewItem id='button'>
|
|
265
|
+
<FileText />
|
|
266
|
+
Button.tsx
|
|
267
|
+
</TreeViewItem>
|
|
268
|
+
<TreeViewItem id='input'>
|
|
269
|
+
<FileText />
|
|
270
|
+
Input.tsx
|
|
271
|
+
</TreeViewItem>
|
|
272
|
+
</TreeViewItem>
|
|
273
|
+
<TreeViewItem id='index'>
|
|
274
|
+
<FileText />
|
|
275
|
+
index.ts
|
|
276
|
+
</TreeViewItem>
|
|
277
|
+
</TreeView>
|
|
278
|
+
</div>
|
|
279
|
+
);
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
/** A badge beside the label, for a count that belongs to the row rather than to its children. */
|
|
283
|
+
export const WithInlineBadge: StoryFn<TreeViewProps> = args => (
|
|
284
|
+
<div className='w-320'>
|
|
285
|
+
<TreeView {...args}>
|
|
286
|
+
<TreeViewItem defaultOpen>
|
|
287
|
+
<Folder />
|
|
288
|
+
Endpoints
|
|
289
|
+
<TreeViewItem>
|
|
290
|
+
<FileText />
|
|
291
|
+
<Badge color='slate' size='small'>
|
|
292
|
+
new
|
|
293
|
+
</Badge>
|
|
294
|
+
/users
|
|
295
|
+
</TreeViewItem>
|
|
296
|
+
<TreeViewItem>
|
|
297
|
+
<FileText />
|
|
298
|
+
<Badge color='green' type='secondary' size='small' textVariant='code'>
|
|
299
|
+
GET
|
|
300
|
+
</Badge>
|
|
301
|
+
/orders
|
|
302
|
+
</TreeViewItem>
|
|
303
|
+
</TreeViewItem>
|
|
304
|
+
<TreeViewItem>
|
|
305
|
+
<FileText />
|
|
306
|
+
<Badge color='amber' size='small'>
|
|
307
|
+
wip
|
|
308
|
+
</Badge>
|
|
309
|
+
/health
|
|
310
|
+
</TreeViewItem>
|
|
311
|
+
</TreeView>
|
|
312
|
+
</div>
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
/** The label is `flex-1`, so anything after it lands against the right edge — which is how a count or a tag ends up trailing without any prop for it. */
|
|
316
|
+
export const WithTrailingContent: StoryFn<TreeViewProps> = args => (
|
|
317
|
+
<div className='w-320'>
|
|
318
|
+
<TreeView {...args}>
|
|
319
|
+
<TreeViewItem defaultOpen>
|
|
320
|
+
<Folder />
|
|
321
|
+
src
|
|
322
|
+
<CountBadge value={3} />
|
|
323
|
+
<TreeViewItem>
|
|
324
|
+
<FileText />
|
|
325
|
+
index.ts
|
|
326
|
+
<CountBadge value={12} />
|
|
327
|
+
</TreeViewItem>
|
|
328
|
+
<TreeViewItem>
|
|
329
|
+
<FileText />
|
|
330
|
+
config.ts
|
|
331
|
+
<Badge color='blue' size='small'>
|
|
332
|
+
label
|
|
333
|
+
</Badge>
|
|
334
|
+
</TreeViewItem>
|
|
335
|
+
<TreeViewItem>
|
|
336
|
+
<FileText />
|
|
337
|
+
types.ts
|
|
338
|
+
</TreeViewItem>
|
|
339
|
+
</TreeViewItem>
|
|
340
|
+
<TreeViewItem>
|
|
341
|
+
<Folder />
|
|
342
|
+
public
|
|
343
|
+
<CountBadge value={1} />
|
|
344
|
+
<TreeViewItem>
|
|
345
|
+
<FileText />
|
|
346
|
+
favicon.ico
|
|
347
|
+
</TreeViewItem>
|
|
348
|
+
</TreeViewItem>
|
|
349
|
+
</TreeView>
|
|
350
|
+
</div>
|
|
351
|
+
);
|
|
352
|
+
|
|
353
|
+
/** A disabled row dims and stops responding to everything: toggle, selection and checkbox alike. */
|
|
354
|
+
export const Disabled: StoryFn<TreeViewProps> = args => (
|
|
355
|
+
<div className='w-320'>
|
|
356
|
+
<TreeView selectable {...args}>
|
|
357
|
+
<TreeViewItem id='components' defaultOpen>
|
|
358
|
+
<Folder />
|
|
359
|
+
Components
|
|
360
|
+
<TreeViewItem id='button'>
|
|
361
|
+
<FileText />
|
|
362
|
+
Button.tsx
|
|
363
|
+
</TreeViewItem>
|
|
364
|
+
<TreeViewItem id='input' disabled>
|
|
365
|
+
<FileText />
|
|
366
|
+
Input.tsx (disabled)
|
|
367
|
+
</TreeViewItem>
|
|
368
|
+
</TreeViewItem>
|
|
369
|
+
<TreeViewItem disabled>
|
|
370
|
+
<Folder />
|
|
371
|
+
Utils (disabled)
|
|
372
|
+
<TreeViewItem>
|
|
373
|
+
<FileText />
|
|
374
|
+
cn.ts
|
|
375
|
+
</TreeViewItem>
|
|
376
|
+
</TreeViewItem>
|
|
377
|
+
<TreeViewItem id='index'>
|
|
378
|
+
<FileText />
|
|
379
|
+
index.ts
|
|
380
|
+
</TreeViewItem>
|
|
381
|
+
</TreeView>
|
|
382
|
+
</div>
|
|
383
|
+
);
|
|
384
|
+
|
|
385
|
+
interface SearchNode {
|
|
386
|
+
id: string;
|
|
387
|
+
label: string;
|
|
388
|
+
type: 'folder' | 'file';
|
|
389
|
+
children?: SearchNode[];
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
const TREE_DATA: SearchNode[] = [
|
|
393
|
+
{
|
|
394
|
+
id: 'src',
|
|
395
|
+
label: 'src',
|
|
396
|
+
type: 'folder',
|
|
397
|
+
children: [
|
|
398
|
+
{
|
|
399
|
+
id: 'components',
|
|
400
|
+
label: 'components',
|
|
401
|
+
type: 'folder',
|
|
402
|
+
children: [
|
|
403
|
+
{ id: 'button', label: 'Button.tsx', type: 'file' },
|
|
404
|
+
{ id: 'input', label: 'Input.tsx', type: 'file' },
|
|
405
|
+
{ id: 'treeview', label: 'TreeView.tsx', type: 'file' },
|
|
406
|
+
],
|
|
407
|
+
},
|
|
408
|
+
{ id: 'index', label: 'index.ts', type: 'file' },
|
|
409
|
+
],
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
id: 'utils',
|
|
413
|
+
label: 'utils',
|
|
414
|
+
type: 'folder',
|
|
415
|
+
children: [
|
|
416
|
+
{ id: 'cn', label: 'cn.ts', type: 'file' },
|
|
417
|
+
{ id: 'format', label: 'formatValue.ts', type: 'file' },
|
|
418
|
+
],
|
|
419
|
+
},
|
|
420
|
+
{ id: 'readme', label: 'README.md', type: 'file' },
|
|
421
|
+
];
|
|
422
|
+
|
|
423
|
+
const BRANCH_IDS = ['src', 'components', 'utils'];
|
|
424
|
+
|
|
425
|
+
/** The toolbar is assembled from `Text`, `Button` and `Input` — there is no TreeView toolbar. Expand-all drives the items’ controlled `open` state, and the search keeps ancestors of matches and opens them. */
|
|
426
|
+
export const WithHeaderAndSearch: StoryFn<TreeViewProps> = () => {
|
|
427
|
+
const [query, setQuery] = useState('');
|
|
428
|
+
const q = query.trim().toLowerCase();
|
|
429
|
+
const [openIds, setOpenIds] = useState<Set<string>>(() => new Set(['src', 'components']));
|
|
430
|
+
|
|
431
|
+
const isOpen = (id: string) => (q ? true : openIds.has(id));
|
|
432
|
+
const toggle = (id: string, v: boolean) =>
|
|
433
|
+
setOpenIds(prev => {
|
|
434
|
+
const next = new Set(prev);
|
|
435
|
+
if (v) {
|
|
436
|
+
next.add(id);
|
|
437
|
+
} else {
|
|
438
|
+
next.delete(id);
|
|
439
|
+
}
|
|
440
|
+
return next;
|
|
441
|
+
});
|
|
442
|
+
const setAll = (open: boolean) => setOpenIds(open ? new Set(BRANCH_IDS) : new Set());
|
|
443
|
+
|
|
444
|
+
const renderNode = (node: SearchNode): ReactNode => {
|
|
445
|
+
const selfMatch = !q || node.label.toLowerCase().includes(q);
|
|
446
|
+
const icon = node.type === 'folder' ? <Folder /> : <FileText />;
|
|
447
|
+
|
|
448
|
+
if (node.children) {
|
|
449
|
+
const kids = node.children.map(renderNode).filter(Boolean);
|
|
450
|
+
if (q && !selfMatch && kids.length === 0) {
|
|
451
|
+
return null;
|
|
452
|
+
}
|
|
453
|
+
return (
|
|
454
|
+
<TreeViewItem key={node.id} open={isOpen(node.id)} onOpenChange={v => toggle(node.id, v)}>
|
|
455
|
+
{icon}
|
|
456
|
+
{node.label}
|
|
457
|
+
{kids}
|
|
458
|
+
</TreeViewItem>
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
if (!selfMatch) {
|
|
463
|
+
return null;
|
|
464
|
+
}
|
|
465
|
+
return (
|
|
466
|
+
<TreeViewItem key={node.id}>
|
|
467
|
+
{icon}
|
|
468
|
+
{node.label}
|
|
469
|
+
</TreeViewItem>
|
|
470
|
+
);
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
const nodes = TREE_DATA.map(renderNode).filter(Boolean);
|
|
474
|
+
|
|
475
|
+
return (
|
|
476
|
+
<div className='w-320'>
|
|
477
|
+
<TreeView data-testid='tree-view'>
|
|
478
|
+
{/* Header — expand/collapse buttons grouped tightly, close set apart */}
|
|
479
|
+
<div className='flex items-center gap-8 px-8 pt-8 pb-4'>
|
|
480
|
+
<Text size='xs' weight='medium' color='secondary' grow truncate>
|
|
481
|
+
Header
|
|
482
|
+
</Text>
|
|
483
|
+
<div className='flex shrink-0 items-center gap-8'>
|
|
484
|
+
<div className='flex items-center gap-2'>
|
|
485
|
+
<Button
|
|
486
|
+
variant='ghost'
|
|
487
|
+
color='neutral'
|
|
488
|
+
size='small'
|
|
489
|
+
aria-label='Collapse all'
|
|
490
|
+
onClick={() => setAll(false)}
|
|
491
|
+
>
|
|
492
|
+
<ChevronsDownUp size='sm' />
|
|
493
|
+
</Button>
|
|
494
|
+
<Button
|
|
495
|
+
variant='ghost'
|
|
496
|
+
color='neutral'
|
|
497
|
+
size='small'
|
|
498
|
+
aria-label='Expand all'
|
|
499
|
+
onClick={() => setAll(true)}
|
|
500
|
+
>
|
|
501
|
+
<ChevronsUpDown size='sm' />
|
|
502
|
+
</Button>
|
|
503
|
+
</div>
|
|
504
|
+
<Button variant='ghost' color='neutral' size='small' aria-label='Close panel'>
|
|
505
|
+
<PanelRightClose size='sm' />
|
|
506
|
+
</Button>
|
|
507
|
+
</div>
|
|
508
|
+
</div>
|
|
509
|
+
|
|
510
|
+
{/* Search — full width, aligned with the items' selection highlight */}
|
|
511
|
+
<div className='pb-4'>
|
|
512
|
+
<div className='relative'>
|
|
513
|
+
<Search
|
|
514
|
+
size='md'
|
|
515
|
+
className='pointer-events-none absolute top-1/2 left-12 -translate-y-1/2 text-text-secondary'
|
|
516
|
+
/>
|
|
517
|
+
<Input
|
|
518
|
+
placeholder='Search'
|
|
519
|
+
value={query}
|
|
520
|
+
onChange={e => setQuery(e.target.value)}
|
|
521
|
+
className='pl-40'
|
|
522
|
+
/>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
|
|
526
|
+
{nodes}
|
|
527
|
+
</TreeView>
|
|
528
|
+
</div>
|
|
529
|
+
);
|
|
530
|
+
};
|
|
531
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,n){let r,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 a,o,c=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,f=(e,t,n,r)=>{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:!(r=s(t,l))||r.enumerable});return e},h={},p={$dispatcherGuard:()=>$,$makeReadOnly:()=>k,$reset:()=>O,$structuralCheck:()=>z,c:()=>E,clearRenderCounterRegistry:()=>I,renderCounterRegistry:()=>D,useRenderCounter:()=>M};for(var y in p)i(h,y,{get:p[y],enumerable:!0});e.exports=f(i({},"__esModule",{value:!0}),h);var _=(l=null!=(r=n("C"))?c(d(r)):{},f(r&&r.__esModule?l:i(l,"default",{value:r,enumerable:!0}),r)),{useRef:b,useEffect:S,isValidElement:w}=_,v=null!=(a=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?a:_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.memo_cache_sentinel"),E="function"==typeof(null==(o=_.__COMPILER_RUNTIME)?void 0:o.c)?_.__COMPILER_RUNTIME.c:function(e){return _.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=g;return t[g]=!0,t},[])},R={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{R[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 C=null;function N(e){return v.ReactCurrentDispatcher.current=e,v.ReactCurrentDispatcher.current}R.useMemoCache=e=>{if(null!=C)return C.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var x=[];function $(e){let t=v.ReactCurrentDispatcher.current;if(0===e){if(x.push(t),1===x.length&&(C=t),t===R)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");N(R)}else if(1===e){let e=x.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===x.length&&(C=null),N(e)}else if(2===e)x.push(t),N(C);else if(3===e){let e=x.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");N(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function O(e){for(let t=0;t<e.length;t++)e[t]=g}function k(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var D=new Map;function I(){for(let e of D.values())e.forEach(e=>{e.count=0})}function M(e){let t=b(null);null!=t.current&&(t.current.count+=1),S(()=>{if(null==t.current){let n,r={count:0};null==(n=D.get(e))&&(n=new Set,D.set(e,n)),n.add(r),t.current=r}return()=>{var n;let r;null!==t.current&&(n=t.current,null!=(r=D.get(e))&&r.delete(n))}})}var T=new Set;function z(e,t,n,r,l,a){function o(e,t,o,c){let i=`${r}:${a} [${l}] ${n}${o} changed from ${e} to ${t} at depth ${c}`;T.has(i)||(T.add(i),console.error(i))}!function e(t,n,r,l){if(!(l>2)){if(t!==n)if(typeof t!=typeof n)o(`type ${typeof t}`,`type ${typeof n}`,r,l);else if("object"==typeof t){let a=Array.isArray(t),c=Array.isArray(n);if(null===t&&null!==n)o("null",`type ${typeof n}`,r,l);else if(null===n)o(`type ${typeof t}`,"null",r,l);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)o(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,l);else for(let[a,c]of t)n.has(a)?e(c,n.get(a),`${r}.get(${a})`,l+1):o(`Map instance with key ${a}`,`Map instance without key ${a}`,r,l);else o("Map instance","other value",r,l);else if(n instanceof Map)o("other value","Map instance",r,l);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)o(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,l);else for(let e of n)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,r,l);else o("Set instance","other value",r,l);else if(n instanceof Set)o("other value","Set instance",r,l);else if(a||c)if(a!==c)o(`type ${a?"array":"object"}`,`type ${c?"array":"object"}`,r,l);else if(t.length!==n.length)o(`array with length ${t.length}`,`array with length ${n.length}`,r,l);else for(let a=0;a<t.length;a++)e(t[a],n[a],`${r}[${a}]`,l+1);else if(w(t)||w(n))w(t)!==w(n)?o(`type ${w(t)?"React element":"object"}`,`type ${w(n)?"React element":"object"}`,r,l):t.type!==n.type?o(`React element of type ${t.type}`,`React element of type ${n.type}`,r,l):e(t.props,n.props,`[props of ${r}]`,l+1);else{for(let e in n)e in t||o(`object without key ${e}`,`object with key ${e}`,r,l);for(let a in t)a in n?e(t[a],n[a],`${r}.${a}`,l+1):o(`object with key ${a}`,`object without key ${a}`,r,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,l):t!==n&&o(t,n,r,l)}}}(e,t,"",0)}},p(e,t,n){let r=new WeakMap,l=new WeakMap;function a(e,t,n){let a=t,o=n;if("object"==typeof a&&null!==a&&"$$typeof"in a&&a.$$typeof===Symbol.for("react.context")&&"Provider"in a&&(a=a.Provider),"function"==typeof a&&null!=o.ref&&!a.prototype?.isReactComponent){let t=a,n=r.get(e);n||(n=new WeakMap,r.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)),a=l}if("string"==typeof a&&"boolean"==typeof o.inert&&((o={...o}).inert?o.inert="":delete o.inert),"string"==typeof a)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in o&&(o={...o,[t]:o[e]},delete o[e]);return"string"==typeof a&&null!=o.ref&&(a=function(e,t){let n=l.get(e);n||(n=new Map,l.set(e,n));let r=n.get(t);if(r)return r;let a=e.forwardRef((n,r)=>{let l=e.useRef(null);if(!l.current||l.current.original!==r){let e;l.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let n=r(t);e="function"==typeof n?n:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...n,ref:l.current.callback})});return a.displayName=`CanvasHost(${t})`,n.set(t,a),a}(e,a)),{type:a,props:o}}function o(e){let t=(t,n,r)=>{let l=a(e,t,n??{});return e.createElement(l.type,void 0===r?l.props:{...l.props,key:r})};return{jsx:t,jsxs:(t,n,r)=>{let l=a(e,t,n??{}),{children:o,...c}=l.props;return e.createElement(l.type,void 0===r?c:{...c,key:r},...Array.isArray(o)?o:[o])},jsxDEV:t,Fragment:e.Fragment}}function c(e){return{...e,createElement:(t,n,...r)=>{let l=a(e,t,n??{});return e.createElement(l.type,l.props,...r)},cloneElement:(t,n,...r)=>{let l=e.cloneElement(t,n??void 0,...r),o=l.ref,c=a(e,l.type,{...l.props,ref:o});return c.type===l.type&&"string"!=typeof l.type?l:e.createElement(c.type,{...c.props,key:l.key})}}}n.d(t,{MA:()=>o,YJ:()=>c})},C(e,t,n){n.r(t);let r=(0,n("p").YJ)(window.React),{Children:l,Component:a,Fragment:o,Profiler:c,PureComponent:i,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:u,cloneElement:f,createContext:h,createElement:p,createFactory:y,createRef:_,forwardRef:b,isValidElement:S,lazy:w,memo:v,startTransition:g,unstable_act:E,useCallback:R,useContext:C,useDebugValue:N,useDeferredValue:x,useEffect:$,useId:O,useImperativeHandle:k,useInsertionEffect:D,useLayoutEffect:I,useMemo:M,useReducer:T,useRef:z,useState:W,useSyncExternalStore:j,useTransition:A,version:P,use:V}=r;n.d(t,{},{Children:l,Component:a,Fragment:o,Profiler:c,PureComponent:i,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:u,cloneElement:f,createContext:h,createElement:p,createFactory:y,createRef:_,default:r,forwardRef:b,isValidElement:S,lazy:w,memo:v,startTransition:g,unstable_act:E,use:V,useCallback:R,useContext:C,useDebugValue:N,useDeferredValue:x,useEffect:$,useId:O,useImperativeHandle:k,useInsertionEffect:D,useLayoutEffect:I,useMemo:M,useReducer:T,useRef:z,useState:W,useSyncExternalStore:j,useTransition:A,version:P})}},t={};function n(r){var l=t[r];if(void 0!==l)return l.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t,r)=>{var l=(t,r)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[r]:t[l]})};l(t,"get"),l(r,"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:r,Fragment:l}=(0,n("p").MA)(window.React);var a=n("vD"),o=n("C");let c=window.WallarmDS.Icons.ChevronsDownUp,i=window.WallarmDS.Icons.ChevronsUpDown,s=window.WallarmDS.Icons.FileText,m=window.WallarmDS.Icons.Folder,d=window.WallarmDS.Icons.PanelRightClose,u=window.WallarmDS.Icons.Search,f=window.WallarmDS.Badge,h=window.WallarmDS.Button,p=window.WallarmDS.Checkbox,y=window.WallarmDS.CheckboxIndicator,_=window.WallarmDS.Input,b=window.WallarmDS.Text,S=window.WallarmDS.TreeView,w=window.WallarmDS.TreeViewItem,v={title:"Navigation/TreeView",component:S,args:{"data-testid":"tree-view"},parameters:{layout:"centered",docs:{description:{component:"The interactive hierarchy: rows that expand, select and disable, with the connector rails drawn for you. Reach for `Tree` when you only need to *show* nesting — this one is for working in it. Rows are composed freely, so an icon, a badge or a checkbox is just a child, and nested `TreeViewItem`s become the subtree."}}}},g=t=>{let n,r=(0,a.c)(2),{value:l}=t;return r[0]!==l?(n=e(f,{size:"small",color:"slate",type:"secondary",textVariant:"code",children:l}),r[0]=l,r[1]=n):n=r[1],n},E=[{id:"src",label:"src",type:"folder",children:[{id:"components",label:"components",type:"folder",children:[{id:"button",label:"Button.tsx",type:"file"},{id:"input",label:"Input.tsx",type:"file"},{id:"treeview",label:"TreeView.tsx",type:"file"}]},{id:"index",label:"index.ts",type:"file"}]},{id:"utils",label:"utils",type:"folder",children:[{id:"cn",label:"cn.ts",type:"file"},{id:"format",label:"formatValue.ts",type:"file"}]},{id:"readme",label:"README.md",type:"file"}],R=["src","components","utils"];function C(){return new Set(["users"])}function N(e){return e.stopPropagation()}function x(){return new Set(["src","components"])}let $=[{name:"Basic",story:n=>{let r,l,o,c,i,d,u,f=(0,a.c)(8);return f[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{}),f[0]=r):r=f[0],f[1]===Symbol.for("react.memo_cache_sentinel")?(l=t(w,{children:[e(s,{}),"Button.tsx"]}),f[1]=l):l=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(o=t(w,{defaultOpen:!0,children:[r,"Components",l,t(w,{children:[e(s,{}),"Input.tsx"]})]}),f[2]=o):o=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(c=e(m,{}),f[3]=c):c=f[3],f[4]===Symbol.for("react.memo_cache_sentinel")?(i=t(w,{children:[c,"Utils",t(w,{children:[e(s,{}),"cn.ts"]})]}),f[4]=i):i=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(d=t(w,{children:[e(s,{}),"index.ts"]}),f[5]=d):d=f[5],f[6]!==n?(u=e("div",{className:"w-320",children:t(S,{...n,children:[o,i,d]})}),f[6]=n,f[7]=u):u=f[7],u},meta:v},{name:"Nested",story:n=>{let r,l,o,c,i,d,u,f,h,p=(0,a.c)(10);return p[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{}),p[0]=r):r=p[0],p[1]===Symbol.for("react.memo_cache_sentinel")?(l=e(m,{}),p[1]=l):l=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(m,{}),p[2]=o):o=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(w,{defaultOpen:!0,children:[o,"TreeView",t(w,{children:[e(s,{}),"TreeView.tsx"]})]}),p[3]=c):c=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(i=t(w,{defaultOpen:!0,children:[l,"components",c,t(w,{children:[e(s,{}),"Button.tsx"]})]}),p[4]=i):i=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(d=t(w,{defaultOpen:!0,children:[r,"src",i,t(w,{children:[e(s,{}),"index.ts"]})]}),p[5]=d):d=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(u=e(m,{}),p[6]=u):u=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(f=t(w,{children:[u,"public",t(w,{children:[e(s,{}),"favicon.ico"]})]}),p[7]=f):f=p[7],p[8]!==n?(h=e("div",{className:"w-320",children:t(S,{...n,children:[d,f]})}),p[8]=n,p[9]=h):h=p[9],h},meta:v},{name:"WithCheckboxes",story:()=>{let n,r,l,c,i,d,u,f,h,_,b,v,g,E,R=(0,a.c)(27),[x,$]=(0,o.useState)(C);R[0]!==x?(n=t=>e(p,{checked:x.has(t),onClick:N,onCheckedChange:e=>$(n=>{let r=new Set(n);return!0===e.checked?r.add(t):r.delete(t),r}),className:"shrink-0",children:e(y,{})}),R[0]=x,R[1]=n):n=R[1];let O=n;return R[2]!==O?(r=O("endpoints"),R[2]=O,R[3]=r):r=R[3],R[4]===Symbol.for("react.memo_cache_sentinel")?(l=e(m,{}),R[4]=l):l=R[4],R[5]!==O?(c=O("users"),R[5]=O,R[6]=c):c=R[6],R[7]===Symbol.for("react.memo_cache_sentinel")?(i=e(s,{}),R[7]=i):i=R[7],R[8]!==c?(d=t(w,{children:[c,i,"/users"]}),R[8]=c,R[9]=d):d=R[9],R[10]!==O?(u=O("orders"),R[10]=O,R[11]=u):u=R[11],R[12]===Symbol.for("react.memo_cache_sentinel")?(f=e(s,{}),R[12]=f):f=R[12],R[13]!==u?(h=t(w,{children:[u,f,"/orders"]}),R[13]=u,R[14]=h):h=R[14],R[15]!==r||R[16]!==d||R[17]!==h?(_=t(w,{defaultOpen:!0,children:[r,l,"Endpoints",d,h]}),R[15]=r,R[16]=d,R[17]=h,R[18]=_):_=R[18],R[19]!==O?(b=O("health"),R[19]=O,R[20]=b):b=R[20],R[21]===Symbol.for("react.memo_cache_sentinel")?(v=e(s,{}),R[21]=v):v=R[21],R[22]!==b?(g=t(w,{children:[b,v,"/health"]}),R[22]=b,R[23]=g):g=R[23],R[24]!==g||R[25]!==_?(E=e("div",{className:"w-320",children:t(S,{children:[_,g]})}),R[24]=g,R[25]=_,R[26]=E):E=R[26],E},meta:v},{name:"Selectable",story:()=>{let n,r,l,c,i,d,u=(0,a.c)(7);u[0]===Symbol.for("react.memo_cache_sentinel")?(n=["button"],u[0]=n):n=u[0];let[f,h]=(0,o.useState)(n);return u[1]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{}),u[1]=r):r=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(w,{id:"button",children:[e(s,{}),"Button.tsx"]}),u[2]=l):l=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(w,{id:"components",defaultOpen:!0,children:[r,"Components",l,t(w,{id:"input",children:[e(s,{}),"Input.tsx"]})]}),u[3]=c):c=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(i=t(w,{id:"index",children:[e(s,{}),"index.ts"]}),u[4]=i):i=u[4],u[5]!==f?(d=e("div",{className:"w-320",children:t(S,{selectable:!0,selectedIds:f,onSelectionChange:h,children:[c,i]})}),u[5]=f,u[6]=d):d=u[6],d},meta:v},{name:"WithInlineBadge",story:n=>{let r,l,o,c,i,d=(0,a.c)(6);return d[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{}),d[0]=r):r=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(l=t(w,{children:[e(s,{}),e(f,{color:"slate",size:"small",children:"new"}),"/users"]}),d[1]=l):l=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(o=t(w,{defaultOpen:!0,children:[r,"Endpoints",l,t(w,{children:[e(s,{}),e(f,{color:"green",type:"secondary",size:"small",textVariant:"code",children:"GET"}),"/orders"]})]}),d[2]=o):o=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(w,{children:[e(s,{}),e(f,{color:"amber",size:"small",children:"wip"}),"/health"]}),d[3]=c):c=d[3],d[4]!==n?(i=e("div",{className:"w-320",children:t(S,{...n,children:[o,c]})}),d[4]=n,d[5]=i):i=d[5],i},meta:v},{name:"WithTrailingContent",story:n=>{let r,l,o,c,i,d,u,h,p,y,_,b=(0,a.c)(12);return b[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{}),b[0]=r):r=b[0],b[1]===Symbol.for("react.memo_cache_sentinel")?(l=e(g,{value:3}),b[1]=l):l=b[1],b[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(s,{}),b[2]=o):o=b[2],b[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(w,{children:[o,"index.ts",e(g,{value:12})]}),b[3]=c):c=b[3],b[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(s,{}),b[4]=i):i=b[4],b[5]===Symbol.for("react.memo_cache_sentinel")?(d=t(w,{children:[i,"config.ts",e(f,{color:"blue",size:"small",children:"label"})]}),b[5]=d):d=b[5],b[6]===Symbol.for("react.memo_cache_sentinel")?(u=t(w,{defaultOpen:!0,children:[r,"src",l,c,d,t(w,{children:[e(s,{}),"types.ts"]})]}),b[6]=u):u=b[6],b[7]===Symbol.for("react.memo_cache_sentinel")?(h=e(m,{}),b[7]=h):h=b[7],b[8]===Symbol.for("react.memo_cache_sentinel")?(p=e(g,{value:1}),b[8]=p):p=b[8],b[9]===Symbol.for("react.memo_cache_sentinel")?(y=t(w,{children:[h,"public",p,t(w,{children:[e(s,{}),"favicon.ico"]})]}),b[9]=y):y=b[9],b[10]!==n?(_=e("div",{className:"w-320",children:t(S,{...n,children:[u,y]})}),b[10]=n,b[11]=_):_=b[11],_},meta:v},{name:"Disabled",story:n=>{let r,l,o,c,i,d,u,f=(0,a.c)(8);return f[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{}),f[0]=r):r=f[0],f[1]===Symbol.for("react.memo_cache_sentinel")?(l=t(w,{id:"button",children:[e(s,{}),"Button.tsx"]}),f[1]=l):l=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(o=t(w,{id:"components",defaultOpen:!0,children:[r,"Components",l,t(w,{id:"input",disabled:!0,children:[e(s,{}),"Input.tsx (disabled)"]})]}),f[2]=o):o=f[2],f[3]===Symbol.for("react.memo_cache_sentinel")?(c=e(m,{}),f[3]=c):c=f[3],f[4]===Symbol.for("react.memo_cache_sentinel")?(i=t(w,{disabled:!0,children:[c,"Utils (disabled)",t(w,{children:[e(s,{}),"cn.ts"]})]}),f[4]=i):i=f[4],f[5]===Symbol.for("react.memo_cache_sentinel")?(d=t(w,{id:"index",children:[e(s,{}),"index.ts"]}),f[5]=d):d=f[5],f[6]!==n?(u=e("div",{className:"w-320",children:t(S,{selectable:!0,...n,children:[o,i,d]})}),f[6]=n,f[7]=u):u=f[7],u},meta:v},{name:"WithHeaderAndSearch",story:()=>{let n,r,l,f,p,y,v,g,C,N,$,O,k,D,I,M,T=(0,a.c)(27),[z,W]=(0,o.useState)(""),j=z.trim().toLowerCase(),[A,P]=(0,o.useState)(x);T[0]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>P(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r}),T[0]=n):n=T[0];let V=n;T[1]===Symbol.for("react.memo_cache_sentinel")?(r=e=>P(e?new Set(R):new Set),T[1]=r):r=T[1];let U=r,L=n=>{let r=!j||n.label.toLowerCase().includes(j),l="folder"===n.type?e(m,{}):e(s,{});if(n.children){let e,a=n.children.map(L).filter(Boolean);return j&&!r&&0===a.length?null:t(w,{open:(e=n.id,!!j||A.has(e)),onOpenChange:e=>V(n.id,e),children:[l,n.label,a]},n.id)}return r?t(w,{children:[l,n.label]},n.id):null},B=E.map(L).filter(Boolean);return T[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(b,{size:"xs",weight:"medium",color:"secondary",grow:!0,truncate:!0,children:"Header"}),T[2]=l):l=T[2],T[3]!==U?(f=()=>U(!1),T[3]=U,T[4]=f):f=T[4],T[5]===Symbol.for("react.memo_cache_sentinel")?(p=e(c,{size:"sm"}),T[5]=p):p=T[5],T[6]!==f?(y=e(h,{variant:"ghost",color:"neutral",size:"small","aria-label":"Collapse all",onClick:f,children:p}),T[6]=f,T[7]=y):y=T[7],T[8]!==U?(v=()=>U(!0),T[8]=U,T[9]=v):v=T[9],T[10]===Symbol.for("react.memo_cache_sentinel")?(g=e(i,{size:"sm"}),T[10]=g):g=T[10],T[11]!==v?(C=e(h,{variant:"ghost",color:"neutral",size:"small","aria-label":"Expand all",onClick:v,children:g}),T[11]=v,T[12]=C):C=T[12],T[13]!==y||T[14]!==C?(N=t("div",{className:"flex items-center gap-2",children:[y,C]}),T[13]=y,T[14]=C,T[15]=N):N=T[15],T[16]===Symbol.for("react.memo_cache_sentinel")?($=e(h,{variant:"ghost",color:"neutral",size:"small","aria-label":"Close panel",children:e(d,{size:"sm"})}),T[16]=$):$=T[16],T[17]!==N?(O=t("div",{className:"flex items-center gap-8 px-8 pt-8 pb-4",children:[l,t("div",{className:"flex shrink-0 items-center gap-8",children:[N,$]})]}),T[17]=N,T[18]=O):O=T[18],T[19]===Symbol.for("react.memo_cache_sentinel")?(k=e(u,{size:"md",className:"pointer-events-none absolute top-1/2 left-12 -translate-y-1/2 text-text-secondary"}),T[19]=k):k=T[19],T[20]===Symbol.for("react.memo_cache_sentinel")?(D=e=>W(e.target.value),T[20]=D):D=T[20],T[21]!==z?(I=e("div",{className:"pb-4",children:t("div",{className:"relative",children:[k,e(_,{placeholder:"Search",value:z,onChange:D,className:"pl-40"})]})}),T[21]=z,T[22]=I):I=T[22],T[23]!==B||T[24]!==O||T[25]!==I?(M=e("div",{className:"w-320",children:t(S,{"data-testid":"tree-view",children:[O,I,B]})}),T[23]=B,T[24]=O,T[25]=I,T[26]=M):M=T[26],M},meta:v}];function O({entry:e}){let{story:t,meta:n}=e,r={...n.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,a=()=>o.default.createElement(l,r),c={args:r,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=a;a=()=>e(t,c)}return o.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},o.default.createElement("h2",{className:"text-sm mb-12"},e.name),o.default.createElement(a))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(o.default.createElement(window.WallarmDS.Root,null,$.map((e,t)=>o.default.createElement(O,{key:t,entry:e})))),t}}})();
|