@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,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 i,c,o=Object.create,a=Object.defineProperty,d=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,s=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of m(t))h.call(e,l)||l===n||a(e,l,{get:()=>t[l],enumerable:!(r=d(t,l))||r.enumerable});return e},f={},_={$dispatcherGuard:()=>I,$makeReadOnly:()=>C,$reset:()=>D,$structuralCheck:()=>k,c:()=>E,clearRenderCounterRegistry:()=>$,renderCounterRegistry:()=>A,useRenderCounter:()=>W};for(var y in _)a(f,y,{get:_[y],enumerable:!0});e.exports=u(a({},"__esModule",{value:!0}),f);var p=(l=null!=(r=n("C"))?o(s(r)):{},u(r&&r.__esModule?l:a(l,"default",{value:r,enumerable:!0}),r)),{useRef:S,useEffect:b,isValidElement:w}=p,g=null!=(i=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?i:p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.memo_cache_sentinel"),E="function"==typeof(null==(c=p.__COMPILER_RUNTIME)?void 0:c.c)?p.__COMPILER_RUNTIME.c:function(e){return p.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=v;return t[v]=!0,t},[])},N={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{N[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 z=null;function R(e){return g.ReactCurrentDispatcher.current=e,g.ReactCurrentDispatcher.current}N.useMemoCache=e=>{if(null!=z)return z.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var x=[];function I(e){let t=g.ReactCurrentDispatcher.current;if(0===e){if(x.push(t),1===x.length&&(z=t),t===N)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.");R(N)}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&&(z=null),R(e)}else if(2===e)x.push(t),R(z);else if(3===e){let e=x.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");R(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function D(e){for(let t=0;t<e.length;t++)e[t]=v}function C(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var A=new Map;function $(){for(let e of A.values())e.forEach(e=>{e.count=0})}function W(e){let t=S(null);null!=t.current&&(t.current.count+=1),b(()=>{if(null==t.current){let n,r={count:0};null==(n=A.get(e))&&(n=new Set,A.set(e,n)),n.add(r),t.current=r}return()=>{var n;let r;null!==t.current&&(n=t.current,null!=(r=A.get(e))&&r.delete(n))}})}var O=new Set;function k(e,t,n,r,l,i){function c(e,t,c,o){let a=`${r}:${i} [${l}] ${n}${c} changed from ${e} to ${t} at depth ${o}`;O.has(a)||(O.add(a),console.error(a))}!function e(t,n,r,l){if(!(l>2)){if(t!==n)if(typeof t!=typeof n)c(`type ${typeof t}`,`type ${typeof n}`,r,l);else if("object"==typeof t){let i=Array.isArray(t),o=Array.isArray(n);if(null===t&&null!==n)c("null",`type ${typeof n}`,r,l);else if(null===n)c(`type ${typeof t}`,"null",r,l);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)c(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,l);else for(let[i,o]of t)n.has(i)?e(o,n.get(i),`${r}.get(${i})`,l+1):c(`Map instance with key ${i}`,`Map instance without key ${i}`,r,l);else c("Map instance","other value",r,l);else if(n instanceof Map)c("other value","Map instance",r,l);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)c(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,l);else for(let e of n)t.has(e)||c(`Set instance without element ${e}`,`Set instance with element ${e}`,r,l);else c("Set instance","other value",r,l);else if(n instanceof Set)c("other value","Set instance",r,l);else if(i||o)if(i!==o)c(`type ${i?"array":"object"}`,`type ${o?"array":"object"}`,r,l);else if(t.length!==n.length)c(`array with length ${t.length}`,`array with length ${n.length}`,r,l);else for(let i=0;i<t.length;i++)e(t[i],n[i],`${r}[${i}]`,l+1);else if(w(t)||w(n))w(t)!==w(n)?c(`type ${w(t)?"React element":"object"}`,`type ${w(n)?"React element":"object"}`,r,l):t.type!==n.type?c(`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||c(`object without key ${e}`,`object with key ${e}`,r,l);for(let i in t)i in n?e(t[i],n[i],`${r}.${i}`,l+1):c(`object with key ${i}`,`object without key ${i}`,r,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&c(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,l):t!==n&&c(t,n,r,l)}}}(e,t,"",0)}},p(e,t,n){let r=new WeakMap,l=new WeakMap;function i(e,t,n){let i=t,c=n;if("object"==typeof i&&null!==i&&"$$typeof"in i&&i.$$typeof===Symbol.for("react.context")&&"Provider"in i&&(i=i.Provider),"function"==typeof i&&null!=c.ref&&!i.prototype?.isReactComponent){let t=i,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)),i=l}if("string"==typeof i&&"boolean"==typeof c.inert&&((c={...c}).inert?c.inert="":delete c.inert),"string"==typeof i)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in c&&(c={...c,[t]:c[e]},delete c[e]);return"string"==typeof i&&null!=c.ref&&(i=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 i=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 i.displayName=`CanvasHost(${t})`,n.set(t,i),i}(e,i)),{type:i,props:c}}function c(e){let t=(t,n,r)=>{let l=i(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=i(e,t,n??{}),{children:c,...o}=l.props;return e.createElement(l.type,void 0===r?o:{...o,key:r},...Array.isArray(c)?c:[c])},jsxDEV:t,Fragment:e.Fragment}}function o(e){return{...e,createElement:(t,n,...r)=>{let l=i(e,t,n??{});return e.createElement(l.type,l.props,...r)},cloneElement:(t,n,...r)=>{let l=e.cloneElement(t,n??void 0,...r),c=l.ref,o=i(e,l.type,{...l.props,ref:c});return o.type===l.type&&"string"!=typeof l.type?l:e.createElement(o.type,{...o.props,key:l.key})}}}n.d(t,{MA:()=>c,YJ:()=>o})},C(e,t,n){n.r(t);let r=(0,n("p").YJ)(window.React),{Children:l,Component:i,Fragment:c,Profiler:o,PureComponent:a,StrictMode:d,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:s,act:h,cloneElement:u,createContext:f,createElement:_,createFactory:y,createRef:p,forwardRef:S,isValidElement:b,lazy:w,memo:g,startTransition:v,unstable_act:E,useCallback:N,useContext:z,useDebugValue:R,useDeferredValue:x,useEffect:I,useId:D,useImperativeHandle:C,useInsertionEffect:A,useLayoutEffect:$,useMemo:W,useReducer:O,useRef:k,useState:P,useSyncExternalStore:M,useTransition:T,version:L,use:j}=r;n.d(t,{},{Children:l,Component:i,Fragment:c,Profiler:o,PureComponent:a,StrictMode:d,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:s,act:h,cloneElement:u,createContext:f,createElement:_,createFactory:y,createRef:p,default:r,forwardRef:S,isValidElement:b,lazy:w,memo:g,startTransition:v,unstable_act:E,use:j,useCallback:N,useContext:z,useDebugValue:R,useDeferredValue:x,useEffect:I,useId:D,useImperativeHandle:C,useInsertionEffect:A,useLayoutEffect:$,useMemo:W,useReducer:O,useRef:k,useState:P,useSyncExternalStore:M,useTransition:T,version:L})}},t={};function n(r){var l=t[r];if(void 0!==l)return l.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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 i=n("vD"),c=n("C");let o=window.WallarmDS.Icons.Copy,a=window.WallarmDS.Icons.Filter,d=window.WallarmDS.Badge,m=window.WallarmDS.Code,s=window.WallarmDS.InlineCodeSnippet,h=window.WallarmDS.FormatDateTime,u=window.WallarmDS.InlineEditControl,f=window.WallarmDS.InlineEditError,_=window.WallarmDS.InlineEditInput,y=window.WallarmDS.InlineEditPreview,p=window.WallarmDS.InlineEdit,S=window.WallarmDS.Ip,b=window.WallarmDS.IpAddress,w=window.WallarmDS.IpCountry,g=window.WallarmDS.IpList,v=window.WallarmDS.IpProvider,E=window.WallarmDS.Link,N=window.WallarmDS.OverflowList,z=window.WallarmDS.Tag,R=window.WallarmDS.Text,x=window.WallarmDS.Attribute,I=window.WallarmDS.AttributeActions,D=window.WallarmDS.AttributeActionsContent,C=window.WallarmDS.AttributeActionsItem,A=window.WallarmDS.AttributeActionsTarget,$=window.WallarmDS.AttributeEmptyDescription,W=window.WallarmDS.AttributeLabel,O=window.WallarmDS.AttributeLabelDescription,k=window.WallarmDS.AttributeLabelInfo,P=window.WallarmDS.AttributeValue,M={title:"Data Display/Attribute",component:x,subcomponents:{AttributeLabel:W,AttributeLabelDescription:O,AttributeLabelInfo:k,AttributeValue:P,AttributeEmptyDescription:$,AttributeActions:I,AttributeActionsTarget:A,AttributeActionsContent:D,AttributeActionsItem:C,InlineEditPreview:y,InlineEditControl:u,InlineEditInput:_,InlineEditError:f},parameters:{layout:"centered",docs:{description:{component:"Pairs one field's label with its value on a detail page — reach for `Table` when the same fields repeat across many objects, and `Field` when the value is being collected rather than read. The value slot takes whichever display component fits the data and hosts `InlineEdit` when the field is editable in place, while `AttributeActions` hangs a per-value menu off it."}}}},T=()=>t(D,{children:[t(C,{onSelect:()=>{},children:[e(a,{}),"Investigate by this value"]}),t(C,{onSelect:()=>{},children:[e(o,{}),"Copy value"]})]}),L=n=>t(l,{children:[t(x,{orientation:"horizontal",children:[e(W,{children:"Source IP"}),e(P,{children:t(I,{"data-testid":"attr-source-ip",children:[e(A,{disableNestedInteractive:n,children:e(R,{size:"sm",children:"142.198.167.52"})}),T()]})})]}),t(x,{orientation:"horizontal",children:[e(W,{children:"Status"}),e(P,{children:t(I,{"data-testid":"attr-badge",children:[e(A,{disableNestedInteractive:n,children:e(d,{"data-testid":"attr-badge-value",color:"red",variant:"dotted",children:"Blocked"})}),T()]})})]}),t(x,{orientation:"horizontal",children:[e(W,{children:"IPs"}),e(P,{children:t(I,{"data-testid":"attr-ip-overflow",children:[e(A,{disableNestedInteractive:n,children:t(g,{type:"horizontal",children:[t(S,{children:[e(w,{code:"US"}),e(b,{children:"142.198.167.52"}),e(v,{children:"Azure"})]}),t(S,{children:[e(w,{code:"US"}),e(b,{children:"34.74.73.20"}),e(v,{children:"AWS"})]}),t(S,{children:[e(w,{code:"DE"}),e(b,{children:"34.74.73.20"}),e(v,{children:"GCP"})]}),t(S,{children:[e(w,{code:"NL"}),e(b,{children:"10.0.0.1"})]}),t(S,{children:[e(w,{code:"JP"}),e(b,{children:"192.168.1.1"})]})]})}),T()]})})]}),t(x,{orientation:"horizontal",children:[e(W,{children:"Payload"}),e(P,{children:t(I,{"data-testid":"attr-code-snippet",children:[e(A,{disableNestedInteractive:n,children:e(s,{code:'{ "action": "login", "user_id": 42 }',size:"sm"})}),T()]})})]}),t(x,{orientation:"horizontal",children:[e(W,{children:"Documentation"}),e(P,{children:t(I,{"data-testid":"attr-link",children:[e(A,{disableNestedInteractive:n,children:e(E,{href:"#",size:"md",children:"View full report"})}),T()]})})]}),t(x,{orientation:"horizontal",children:[e(W,{children:"Tags"}),e(P,{children:t(I,{"data-testid":"attr-tags",children:[e(A,{disableNestedInteractive:n,children:e(N,{className:"gap-4",items:["production","us-east-1","critical","tier-1","public","monitored"],itemRenderer:t=>e(z,{"data-testid":"attr-tag",children:t},t)})}),T()]})})]})]}),j=()=>{let t,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e("div",{className:"w-[400px] flex flex-col gap-8",children:L(!1)}),n[0]=t):t=n[0],t};j.storyName="Horizontal With Actions (default — copy on text, menu outside)";let U=()=>{let t,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e("div",{className:"w-[400px] flex flex-col gap-8",children:L(!0)}),n[0]=t):t=n[0],t};function F(n){let r,l,o,a,d,m,s,h=(0,i.c)(12),{orientation:S}=n,[b,w]=(0,c.useState)("Checkout API");return h[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(W,{children:"Name"}),h[0]=r):r=h[0],h[1]===Symbol.for("react.memo_cache_sentinel")?(l=e=>w(e),h[1]=l):l=h[1],h[2]!==b?(o=e(y,{children:b}),h[2]=b,h[3]=o):o=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(a=e(u,{children:e(_,{})}),d=e(f,{}),h[4]=a,h[5]=d):(a=h[4],d=h[5]),h[6]!==b||h[7]!==o?(m=e(P,{children:t(p,{value:b,onValueCommit:l,children:[o,a,d]})}),h[6]=b,h[7]=o,h[8]=m):m=h[8],h[9]!==S||h[10]!==m?(s=e("div",{className:"w-[420px]",children:t(x,{orientation:S,"data-testid":"attr",children:[r,m]})}),h[9]=S,h[10]=m,h[11]=s):s=h[11],s}function H(n){let r,l,o,a,d,m,s,h,S,b,w,g,v,E,N=(0,i.c)(25),{orientation:z}=n,[D,C]=(0,c.useState)("Checkout API"),$="horizontal"===z?"w-[420px] flex flex-col gap-8":"w-[420px] flex flex-col gap-16";return N[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(W,{children:"Request ID"}),N[0]=r):r=N[0],N[1]===Symbol.for("react.memo_cache_sentinel")?(l=e(P,{children:e(R,{size:"sm",children:"abc-123-def-456"})}),N[1]=l):l=N[1],N[2]!==z?(o=t(x,{orientation:z,"data-testid":"attr-plain",children:[r,l]}),N[2]=z,N[3]=o):o=N[3],N[4]===Symbol.for("react.memo_cache_sentinel")?(a=e(W,{children:"Source IP"}),N[4]=a):a=N[4],N[5]===Symbol.for("react.memo_cache_sentinel")?(d=e(P,{children:t(I,{children:[e(A,{children:e(R,{size:"sm",children:"142.198.167.52"})}),T()]})}),N[5]=d):d=N[5],N[6]!==z?(m=t(x,{orientation:z,"data-testid":"attr-actions",children:[a,d]}),N[6]=z,N[7]=m):m=N[7],N[8]===Symbol.for("react.memo_cache_sentinel")?(s=e(W,{children:"Name"}),N[8]=s):s=N[8],N[9]===Symbol.for("react.memo_cache_sentinel")?(h=e=>C(e),N[9]=h):h=N[9],N[10]!==D?(S=e(y,{children:D}),N[10]=D,N[11]=S):S=N[11],N[12]===Symbol.for("react.memo_cache_sentinel")?(b=e(u,{children:e(_,{})}),w=e(f,{}),N[12]=b,N[13]=w):(b=N[12],w=N[13]),N[14]!==D||N[15]!==S?(g=e(P,{children:t(p,{value:D,onValueCommit:h,children:[S,b,w]})}),N[14]=D,N[15]=S,N[16]=g):g=N[16],N[17]!==z||N[18]!==g?(v=t(x,{orientation:z,"data-testid":"attr-inline-edit",children:[s,g]}),N[17]=z,N[18]=g,N[19]=v):v=N[19],N[20]!==$||N[21]!==v||N[22]!==o||N[23]!==m?(E=t("div",{className:$,children:[o,m,v]}),N[20]=$,N[21]=v,N[22]=o,N[23]=m,N[24]=E):E=N[24],E}U.storyName="Horizontal With Actions (disableNestedInteractive — menu only)";let V=()=>{let t,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(H,{}),n[0]=t):t=n[0],t};V.storyName="Mixed (plain + Actions + InlineEdit)";let B=()=>{let t,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(H,{orientation:"horizontal"}),n[0]=t):t=n[0],t};function X(t){return e(z,{children:t},t)}function q(t){return e(z,{children:t},t)}function Z(t){return e(z,{children:t},t)}function G(t){return e(z,{children:t},t)}function J(t){return e(z,{children:t},t)}function Y(t){return e(z,{children:t},t)}B.storyName="Horizontal Mixed (plain + Actions + InlineEdit)";let Q=[{name:"Default",story:()=>{let n,r,l=(0,i.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(W,{children:"Request ID"}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=e("div",{className:"w-[400px]",children:t(x,{children:[n,e(P,{children:e(R,{size:"sm",children:"abc-123-def-456"})})]})}),l[1]=r):r=l[1],r},meta:M},{name:"WithDescription",story:()=>{let n,r,l=(0,i.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(W,{children:["Created at",e(O,{children:"The time when the request was first received"})]}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=e("div",{className:"w-[400px]",children:t(x,{children:[n,e(P,{children:e(R,{size:"sm",children:"April 9, 2026, 14:32"})})]})}),l[1]=r):r=l[1],r},meta:M},{name:"WithInfo",story:()=>{let n,r,l,c,o=(0,i.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(W,{children:["Request ID",e(k,{children:"Unique identifier assigned to each incoming request"})]}),o[0]=n):n=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(x,{children:[n,e(P,{children:e(R,{size:"sm",children:"abc-123-def-456"})})]}),o[1]=r):r=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(W,{children:[e(k,{children:"Unique identifier assigned to each incoming request"}),"Request ID"]}),o[2]=l):l=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(c=t("div",{className:"w-[400px] flex flex-col gap-16",children:[r,t(x,{children:[l,e(P,{children:e(R,{size:"sm",children:"abc-123-def-456"})})]})]}),o[3]=c):c=o[3],c},meta:M},{name:"WithLink",story:()=>{let n,r,l=(0,i.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(W,{children:["Source",e(E,{href:"#",size:"md",children:"View docs"})]}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=e("div",{className:"w-[400px]",children:t(x,{children:[n,e(P,{children:e(R,{size:"sm",children:"API Gateway"})})]})}),l[1]=r):r=l[1],r},meta:M},{name:"Empty",story:()=>{let n,r,l,c,o,a=(0,i.c)(5);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(x,{children:[t(W,{children:["Region",e(O,{children:"Manual composition"})]}),e(P,{})]}),a[0]=n):n=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(r=e(W,{children:"Region"}),a[1]=r):r=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(x,{isEmpty:!0,children:[r,e(P,{children:e(R,{size:"sm",children:"This text is replaced by the em-dash placeholder"})})]}),a[2]=l):l=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(x,{isEmpty:!0,children:[t(W,{children:["Owner",e($,{children:"Not yet assigned"})]}),e(P,{})]}),a[3]=c):c=a[3],a[4]===Symbol.for("react.memo_cache_sentinel")?(o=t("div",{className:"w-[400px] flex flex-col gap-16",children:[n,l,c,t(x,{isEmpty:!0,children:[t(W,{children:["SSO provider",t($,{children:["Not connected —"," ",e(E,{href:"#",size:"md",children:"set up integration"})]})]}),e(P,{})]})]}),a[4]=o):o=a[4],o},meta:M},{name:"Loading",story:()=>{let n,r,l=(0,i.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(x,{loading:!0,children:[e(W,{children:"Created at"}),e(P,{})]}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=t("div",{className:"w-[400px] flex flex-col gap-16",children:[n,t(x,{loading:!0,children:[e(W,{children:"Status"}),e(P,{})]})]}),l[1]=r):r=l[1],r},meta:M},{name:"Composition",story:()=>{let n,r,l,c,o,a,u,f,_,y,p,z,I,D,C,A,$,O,k,M,T,L,j,U,F,H,V=(0,i.c)(26);return V[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(W,{children:"Status"}),V[0]=n):n=V[0],V[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(x,{children:[n,e(P,{children:e(d,{color:"red",variant:"dotted",children:"Blocked"})})]}),V[1]=r):r=V[1],V[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(W,{children:"First seen"}),V[2]=l):l=V[2],V[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(x,{children:[l,e(P,{children:e(h,{value:"2026-04-03T10:15:00Z",format:"relative"})})]}),V[3]=c):c=V[3],V[4]===Symbol.for("react.memo_cache_sentinel")?(o=e(W,{children:"Attack type"}),V[4]=o):o=V[4],V[5]===Symbol.for("react.memo_cache_sentinel")?(a=t(x,{children:[o,e(P,{children:e(N,{className:"gap-4",items:["XSS","BOLA","SQL Injection","Scanner","CSRF","XXE","RCE","LFI","IDOR"],itemRenderer:X})})]}),V[5]=a):a=V[5],V[6]===Symbol.for("react.memo_cache_sentinel")?(u=e(W,{children:"Sessions"}),V[6]=u):u=V[6],V[7]===Symbol.for("react.memo_cache_sentinel")?(f=t(x,{children:[u,e(P,{children:e(R,{size:"sm",children:"3 sessions"})})]}),V[7]=f):f=V[7],V[8]===Symbol.for("react.memo_cache_sentinel")?(_=e(W,{children:"Users"}),V[8]=_):_=V[8],V[9]===Symbol.for("react.memo_cache_sentinel")?(y=t(x,{children:[_,e(P,{children:e(N,{className:"gap-4",items:["artem@acme.com","uxd@acme.com","ops@acme.com","security@acme.com","admin@acme.com"],itemRenderer:q})})]}),V[9]=y):y=V[9],V[10]===Symbol.for("react.memo_cache_sentinel")?(p=e(W,{children:"IPs"}),V[10]=p):p=V[10],V[11]===Symbol.for("react.memo_cache_sentinel")?(z=t(S,{children:[e(w,{code:"US"}),e(b,{children:"142.198.167.52"}),e(v,{children:"Azure"})]}),V[11]=z):z=V[11],V[12]===Symbol.for("react.memo_cache_sentinel")?(I=t(S,{children:[e(w,{code:"US"}),e(b,{children:"34.74.73.20"}),e(v,{children:"AWS"})]}),V[12]=I):I=V[12],V[13]===Symbol.for("react.memo_cache_sentinel")?(D=t(S,{children:[e(w,{code:"DE"}),e(b,{children:"34.74.73.20"}),e(v,{children:"GCP"})]}),V[13]=D):D=V[13],V[14]===Symbol.for("react.memo_cache_sentinel")?(C=t(S,{children:[e(w,{code:"NL"}),e(b,{children:"10.0.0.1"})]}),V[14]=C):C=V[14],V[15]===Symbol.for("react.memo_cache_sentinel")?(A=t(x,{children:[p,e(P,{children:t(g,{children:[z,I,D,C,t(S,{children:[e(w,{code:"JP"}),e(b,{children:"192.168.1.1"})]})]})})]}),V[15]=A):A=V[15],V[16]===Symbol.for("react.memo_cache_sentinel")?($=e(W,{children:"Source IP"}),V[16]=$):$=V[16],V[17]===Symbol.for("react.memo_cache_sentinel")?(O=t(x,{children:[$,e(P,{children:t(S,{children:[e(w,{code:"US"}),e(b,{children:"142.198.167.52"}),e(v,{children:"Azure"})]})})]}),V[17]=O):O=V[17],V[18]===Symbol.for("react.memo_cache_sentinel")?(k=e(W,{children:"Created at"}),V[18]=k):k=V[18],V[19]===Symbol.for("react.memo_cache_sentinel")?(M=t(x,{children:[k,e(P,{children:e(h,{value:"2026-04-02T14:03:00Z",format:"datetime"})})]}),V[19]=M):M=V[19],V[20]===Symbol.for("react.memo_cache_sentinel")?(T=e(W,{children:"Documentation"}),V[20]=T):T=V[20],V[21]===Symbol.for("react.memo_cache_sentinel")?(L=t(x,{children:[T,e(P,{children:e(E,{href:"#",size:"md",children:"View full report"})})]}),V[21]=L):L=V[21],V[22]===Symbol.for("react.memo_cache_sentinel")?(j=e(W,{children:"Payload (inline)"}),V[22]=j):j=V[22],V[23]===Symbol.for("react.memo_cache_sentinel")?(U=t(x,{children:[j,e(P,{children:e(s,{code:'{ "action": "login", "user_id": 42 }',size:"sm"})})]}),V[23]=U):U=V[23],V[24]===Symbol.for("react.memo_cache_sentinel")?(F=e(W,{children:"Payload (code)"}),V[24]=F):F=V[24],V[25]===Symbol.for("react.memo_cache_sentinel")?(H=t("div",{className:"grid grid-cols-2 gap-x-8 gap-y-16 w-[874px]",children:[r,c,a,f,y,A,O,M,L,U,t(x,{children:[F,e(P,{children:e(m,{size:"s",children:'{ "action": "login", "user_id": 42 }'})})]})]}),V[25]=H):H=V[25],H},meta:M},{name:"WithActions",story:()=>{let n,r,l,c,o,a,u,f,_,y,p,z,D,C,$,O,k,M,L,j,U,F,H,V,B,X,q=(0,i.c)(26);return q[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(W,{children:"Status"}),q[0]=n):n=q[0],q[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(x,{children:[n,e(P,{children:t(I,{"data-testid":"attribute-with-actions",children:[e(A,{children:e(d,{color:"red",variant:"dotted",children:"Blocked"})}),T()]})})]}),q[1]=r):r=q[1],q[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(W,{children:"First seen"}),q[2]=l):l=q[2],q[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(x,{children:[l,e(P,{children:t(I,{children:[e(A,{children:e(h,{value:"2026-04-03T10:15:00Z",format:"relative"})}),T()]})})]}),q[3]=c):c=q[3],q[4]===Symbol.for("react.memo_cache_sentinel")?(o=e(W,{children:"Attack type"}),q[4]=o):o=q[4],q[5]===Symbol.for("react.memo_cache_sentinel")?(a=t(x,{children:[o,e(P,{children:t(I,{children:[e(A,{children:e(N,{className:"gap-4",items:["XSS","BOLA","SQL Injection","Scanner","CSRF","XXE","RCE","LFI","IDOR"],itemRenderer:Z})}),T()]})})]}),q[5]=a):a=q[5],q[6]===Symbol.for("react.memo_cache_sentinel")?(u=e(W,{children:"Sessions"}),q[6]=u):u=q[6],q[7]===Symbol.for("react.memo_cache_sentinel")?(f=t(x,{children:[u,e(P,{children:t(I,{children:[e(A,{children:e(R,{size:"sm",children:"3 sessions"})}),T()]})})]}),q[7]=f):f=q[7],q[8]===Symbol.for("react.memo_cache_sentinel")?(_=e(W,{children:"Users"}),q[8]=_):_=q[8],q[9]===Symbol.for("react.memo_cache_sentinel")?(y=t(x,{children:[_,e(P,{children:t(I,{children:[e(A,{children:e(N,{className:"gap-4",items:["artem@acme.com","uxd@acme.com","ops@acme.com","security@acme.com","admin@acme.com"],itemRenderer:G})}),T()]})})]}),q[9]=y):y=q[9],q[10]===Symbol.for("react.memo_cache_sentinel")?(p=e(W,{children:"IPs"}),q[10]=p):p=q[10],q[11]===Symbol.for("react.memo_cache_sentinel")?(z=t(S,{children:[e(w,{code:"US"}),e(b,{children:"142.198.167.52"}),e(v,{children:"Azure"})]}),q[11]=z):z=q[11],q[12]===Symbol.for("react.memo_cache_sentinel")?(D=t(S,{children:[e(w,{code:"US"}),e(b,{children:"34.74.73.20"}),e(v,{children:"AWS"})]}),q[12]=D):D=q[12],q[13]===Symbol.for("react.memo_cache_sentinel")?(C=t(S,{children:[e(w,{code:"DE"}),e(b,{children:"34.74.73.20"}),e(v,{children:"GCP"})]}),q[13]=C):C=q[13],q[14]===Symbol.for("react.memo_cache_sentinel")?($=t(S,{children:[e(w,{code:"NL"}),e(b,{children:"10.0.0.1"})]}),q[14]=$):$=q[14],q[15]===Symbol.for("react.memo_cache_sentinel")?(O=t(x,{children:[p,e(P,{children:t(I,{children:[e(A,{children:t(g,{children:[z,D,C,$,t(S,{children:[e(w,{code:"JP"}),e(b,{children:"192.168.1.1"})]})]})}),T()]})})]}),q[15]=O):O=q[15],q[16]===Symbol.for("react.memo_cache_sentinel")?(k=e(W,{children:"Source IP"}),q[16]=k):k=q[16],q[17]===Symbol.for("react.memo_cache_sentinel")?(M=t(x,{children:[k,e(P,{children:t(I,{children:[e(A,{children:t(S,{children:[e(w,{code:"US"}),e(b,{children:"142.198.167.52"}),e(v,{children:"Azure"})]})}),T()]})})]}),q[17]=M):M=q[17],q[18]===Symbol.for("react.memo_cache_sentinel")?(L=e(W,{children:"Created at"}),q[18]=L):L=q[18],q[19]===Symbol.for("react.memo_cache_sentinel")?(j=t(x,{children:[L,e(P,{children:t(I,{children:[e(A,{children:e(h,{value:"2026-04-02T14:03:00Z",format:"datetime"})}),T()]})})]}),q[19]=j):j=q[19],q[20]===Symbol.for("react.memo_cache_sentinel")?(U=e(W,{children:"Documentation"}),q[20]=U):U=q[20],q[21]===Symbol.for("react.memo_cache_sentinel")?(F=t(x,{children:[U,e(P,{children:t(I,{children:[e(A,{children:e(E,{href:"#",size:"md",children:"View full report"})}),T()]})})]}),q[21]=F):F=q[21],q[22]===Symbol.for("react.memo_cache_sentinel")?(H=e(W,{children:"Payload (inline)"}),q[22]=H):H=q[22],q[23]===Symbol.for("react.memo_cache_sentinel")?(V=t(x,{children:[H,e(P,{children:t(I,{children:[e(A,{children:e(s,{code:'{ "action": "login", "user_id": 42 }',size:"sm"})}),T()]})})]}),q[23]=V):V=q[23],q[24]===Symbol.for("react.memo_cache_sentinel")?(B=e(W,{children:"Payload (code)"}),q[24]=B):B=q[24],q[25]===Symbol.for("react.memo_cache_sentinel")?(X=t("div",{className:"grid grid-cols-2 gap-x-8 gap-y-16 w-[874px]",children:[r,c,a,f,y,O,M,j,F,V,t(x,{children:[B,e(P,{children:t(I,{children:[e(A,{children:e(m,{size:"s",children:'{ "action": "login", "user_id": 42 }'})}),T()]})})]})]}),q[25]=X):X=q[25],X},meta:M},{name:"Horizontal",story:()=>{let n,r,l=(0,i.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(W,{children:"Status"}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=e("div",{className:"w-[400px]",children:t(x,{orientation:"horizontal",children:[n,e(P,{children:e(d,{color:"red",variant:"dotted",children:"Blocked"})})]})}),l[1]=r):r=l[1],r},meta:M},{name:"HorizontalTruncation",story:()=>{let n,r,l,c,o,a,d=(0,i.c)(6);return d[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(W,{width:256,children:"Short"}),d[0]=n):n=d[0],d[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(x,{orientation:"horizontal",children:[n,e(P,{children:e(R,{size:"sm",children:"Fits in 256px label cell"})})]}),d[1]=r):r=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(W,{width:256,children:"This label text is much longer than 256 pixels and must be truncated"}),d[2]=l):l=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(x,{orientation:"horizontal",children:[l,e(P,{children:e(R,{size:"sm",children:"Value"})})]}),d[3]=c):c=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(o=e(W,{children:"Users"}),d[4]=o):o=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(a=t("div",{className:"w-[500px] flex flex-col gap-8",children:[r,c,t(x,{orientation:"horizontal",children:[o,e(P,{children:e(R,{size:"sm",truncate:!0,children:"artem@acme.com, uxd@acme.com, ops@acme.com, security@acme.com, admin@acme.com"})})]})]}),d[5]=a):a=d[5],a},meta:M},{name:"HorizontalComposition",story:()=>{let n,r,l,c,o,a,m,s,u,f,_,y,p,E,z,I,D=(0,i.c)(16);return D[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(W,{children:"Status"}),D[0]=n):n=D[0],D[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(x,{orientation:"horizontal",children:[n,e(P,{children:e(d,{color:"red",variant:"dotted",children:"Blocked"})})]}),D[1]=r):r=D[1],D[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(W,{children:"First seen"}),D[2]=l):l=D[2],D[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(x,{orientation:"horizontal",children:[l,e(P,{children:e(h,{value:"2026-04-03T10:15:00Z",format:"relative"})})]}),D[3]=c):c=D[3],D[4]===Symbol.for("react.memo_cache_sentinel")?(o=e(W,{children:"Attack type"}),D[4]=o):o=D[4],D[5]===Symbol.for("react.memo_cache_sentinel")?(a=t(x,{orientation:"horizontal",children:[o,e(P,{children:e(N,{className:"gap-4",items:["XSS","BOLA","SQL Injection","Scanner","CSRF","XXE","RCE","LFI","IDOR"],itemRenderer:J})})]}),D[5]=a):a=D[5],D[6]===Symbol.for("react.memo_cache_sentinel")?(m=e(W,{children:"Last seen"}),D[6]=m):m=D[6],D[7]===Symbol.for("react.memo_cache_sentinel")?(s=t(x,{orientation:"horizontal",children:[m,e(P,{children:e(h,{value:"2025-04-02T14:03:00Z",format:"date"})})]}),D[7]=s):s=D[7],D[8]===Symbol.for("react.memo_cache_sentinel")?(u=e(W,{children:"Sessions"}),D[8]=u):u=D[8],D[9]===Symbol.for("react.memo_cache_sentinel")?(f=t(x,{orientation:"horizontal",children:[u,e(P,{children:e(R,{size:"sm",children:"3 sessions"})})]}),D[9]=f):f=D[9],D[10]===Symbol.for("react.memo_cache_sentinel")?(_=e(W,{children:"Users"}),D[10]=_):_=D[10],D[11]===Symbol.for("react.memo_cache_sentinel")?(y=t(x,{orientation:"horizontal",children:[_,e(P,{children:e(N,{className:"gap-4",items:["artem@acme.com","uxd@acme.com","ops@acme.com","security@acme.com","admin@acme.com"],itemRenderer:Y})})]}),D[11]=y):y=D[11],D[12]===Symbol.for("react.memo_cache_sentinel")?(p=e(W,{children:"IPs"}),D[12]=p):p=D[12],D[13]===Symbol.for("react.memo_cache_sentinel")?(E=t(S,{children:[e(w,{code:"US"}),e(b,{children:"142.198.167.52"}),e(v,{children:"Azure"})]}),D[13]=E):E=D[13],D[14]===Symbol.for("react.memo_cache_sentinel")?(z=t(S,{children:[e(w,{code:"US"}),e(b,{children:"34.74.73.20"}),e(v,{children:"AWS"})]}),D[14]=z):z=D[14],D[15]===Symbol.for("react.memo_cache_sentinel")?(I=t("div",{className:"grid grid-cols-2 gap-x-8 gap-y-6 w-[874px]",children:[r,c,a,s,f,y,e("div",{className:"col-span-2",children:t(x,{orientation:"horizontal",children:[p,e(P,{children:t(g,{type:"horizontal",children:[E,z,t(S,{children:[e(w,{code:"DE"}),e(b,{children:"34.74.73.20"}),e(v,{children:"GCP"})]})]})})]})})]}),D[15]=I):I=D[15],I},meta:M},{name:"HorizontalLoading",story:()=>{let n,r,l=(0,i.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(x,{orientation:"horizontal",loading:!0,children:[e(W,{children:"Created at"}),e(P,{})]}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=t("div",{className:"w-[400px] flex flex-col gap-8",children:[n,t(x,{orientation:"horizontal",loading:!0,children:[e(W,{children:"Status"}),e(P,{})]})]}),l[1]=r):r=l[1],r},meta:M},{name:"HorizontalEmpty",story:()=>{let n,r,l,c,o,a=(0,i.c)(5);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(x,{orientation:"horizontal",children:[t(W,{width:160,children:["Region",e(O,{children:"Manual composition"})]}),e(P,{})]}),a[0]=n):n=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(r=e(W,{width:160,children:"Region"}),a[1]=r):r=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(x,{orientation:"horizontal",isEmpty:!0,children:[r,e(P,{children:e(R,{size:"sm",children:"This text is replaced by the em-dash placeholder"})})]}),a[2]=l):l=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(x,{orientation:"horizontal",isEmpty:!0,children:[t(W,{width:160,children:["Owner",e($,{children:"Not yet assigned"})]}),e(P,{})]}),a[3]=c):c=a[3],a[4]===Symbol.for("react.memo_cache_sentinel")?(o=t("div",{className:"w-[400px] flex flex-col gap-8",children:[n,l,c,t(x,{orientation:"horizontal",isEmpty:!0,children:[t(W,{width:160,children:["SSO provider",t($,{children:["Not connected —"," ",e(E,{href:"#",size:"md",children:"set up integration"})]})]}),e(P,{})]})]}),a[4]=o):o=a[4],o},meta:M},{name:"HorizontalWithActions",story:j,meta:M},{name:"HorizontalWithActionsMenuOnly",story:U,meta:M},{name:"WithInlineEdit",story:()=>{let t,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(F,{}),n[0]=t):t=n[0],t},meta:M},{name:"HorizontalWithInlineEdit",story:()=>{let t,n=(0,i.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(F,{orientation:"horizontal"}),n[0]=t):t=n[0],t},meta:M},{name:"Mixed",story:V,meta:M},{name:"HorizontalMixed",story:B,meta:M}];function K({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,i=()=>c.default.createElement(l,r),o={args:r,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=i;i=()=>e(t,o)}return c.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},c.default.createElement("h2",{className:"text-sm mb-12"},e.name),c.default.createElement(i))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(c.default.createElement(window.WallarmDS.Root,null,Q.map((e,t)=>c.default.createElement(K,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
A person's photo on a rounded plate, falling back to initials or an icon while it loads, when it fails, or when there is none. It is decorative beside a visible name; standing alone, give it `aria-label` so it reads as an image. Add `AvatarContent` with `AvatarName` (and an optional `AvatarDescription`) for the user item: plate and name in one row. To let people change it, make the avatar the `FileUploadTrigger` (`asChild`) and give it `as='button'` — picking only previews, and your form uploads.
|
|
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
|
+
| `on-status-change` | `((details: StatusChangeDetails) => void) \| undefined` | no | — | |
|
|
10
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
12
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `id` | `string \| undefined` | no | — | |
|
|
14
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
15
|
+
| `title` | `string \| undefined` | no | — | |
|
|
16
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
17
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
18
|
+
| `size` | `"sm" \| "md" \| "lg"` | no | `lg` | |
|
|
19
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
20
|
+
| `as` | `"span" \| undefined` | no | `span` | Root tag. 'button' makes the avatar itself interactive (e.g. inside FileUploadTrigger asChild). |
|
|
21
|
+
| `as-child` | `false \| undefined` | no | `false` | Render the single child element as the root instead of `as`; takes precedence over it. |
|
|
22
|
+
| `type` | `"button" \| "submit" \| "reset" \| undefined` | no | — | |
|
|
23
|
+
| `disabled` | `boolean \| undefined` | no | — | |
|
|
24
|
+
| `name` | `string \| undefined` | no | — | |
|
|
25
|
+
| `value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
26
|
+
|
|
27
|
+
## Sub-components
|
|
28
|
+
|
|
29
|
+
- `WallarmDS.AvatarContent` — `AvatarContentProps` in the declaration bundle.
|
|
30
|
+
- `WallarmDS.AvatarDescription` — `AvatarDescriptionProps` in the declaration bundle.
|
|
31
|
+
- `WallarmDS.AvatarFallback` — `AvatarFallbackProps` in the declaration bundle.
|
|
32
|
+
- `WallarmDS.AvatarImage` — `AvatarImageProps` in the declaration bundle.
|
|
33
|
+
- `WallarmDS.AvatarName` — `AvatarNameProps` in the declaration bundle.
|
|
34
|
+
- `WallarmDS.AvatarOverlay` — `AvatarOverlayProps` in the declaration bundle.
|
|
35
|
+
|
|
36
|
+
## Stories
|
|
37
|
+
|
|
38
|
+
### Basic
|
|
39
|
+
|
|
40
|
+
A photo with an initials fallback — the fallback also covers the moment before the photo arrives.
|
|
41
|
+
|
|
42
|
+
Source: Avatar/Avatar.stories.tsx#Basic
|
|
43
|
+
|
|
44
|
+
### Sizes
|
|
45
|
+
|
|
46
|
+
`sm` (20px) and `md` (24px, the nav-rail plate) are the compact sizes for user items; `lg` (32px,
|
|
47
|
+
the default) is for rows and forms. Each row shows a photo, initials and the icon, then the same
|
|
48
|
+
three inside a Branded frame.
|
|
49
|
+
|
|
50
|
+
Source: Avatar/Avatar.stories.tsx#Sizes
|
|
51
|
+
|
|
52
|
+
### WithName
|
|
53
|
+
|
|
54
|
+
The user item (Figma 12557:5856): the plate and the name in one row, 6px apart. The name is
|
|
55
|
+
`text-sm` at every size and truncates with an ellipsis when the row is narrow.
|
|
56
|
+
|
|
57
|
+
Source: Avatar/Avatar.stories.tsx#WithName
|
|
58
|
+
|
|
59
|
+
### WithDescription
|
|
60
|
+
|
|
61
|
+
`AvatarDescription` adds a secondary line under the name — the email in the account menu. Both lines truncate.
|
|
62
|
+
|
|
63
|
+
Source: Avatar/Avatar.stories.tsx#WithDescription
|
|
64
|
+
|
|
65
|
+
### Fallback
|
|
66
|
+
|
|
67
|
+
Initials are the first letters of the first and last word of `name`; without a name the person icon shows, whether the photo is missing or failed to load.
|
|
68
|
+
|
|
69
|
+
Source: Avatar/Avatar.stories.tsx#Fallback
|
|
70
|
+
|
|
71
|
+
### CustomIcon
|
|
72
|
+
|
|
73
|
+
`icon` replaces the default person glyph whenever `name` gives no initials.
|
|
74
|
+
|
|
75
|
+
Source: Avatar/Avatar.stories.tsx#CustomIcon
|
|
76
|
+
|
|
77
|
+
### Branded
|
|
78
|
+
|
|
79
|
+
Inside a Branded frame the empty plate takes the brand tint and stroke, initials and the icon take the brand colour, and a photo is unchanged.
|
|
80
|
+
|
|
81
|
+
Source: Avatar/Avatar.stories.tsx#Branded
|
|
82
|
+
|
|
83
|
+
### ClickToUpload
|
|
84
|
+
|
|
85
|
+
Click the avatar, or focus it and press Enter, to pick a photo — hover and focus show the edit
|
|
86
|
+
icon, and the pick only previews until your form saves.
|
|
87
|
+
|
|
88
|
+
Source: Avatar/Avatar.stories.tsx#ClickToUpload
|
|
89
|
+
|
|
90
|
+
### WithActions
|
|
91
|
+
|
|
92
|
+
The settings-row pattern: explicit Remove and Replace buttons beside a plain avatar, with the accepted formats and size spelled out.
|
|
93
|
+
|
|
94
|
+
Source: Avatar/Avatar.stories.tsx#WithActions
|
|
95
|
+
|
|
96
|
+
### Uploading
|
|
97
|
+
|
|
98
|
+
While the new photo uploads, disable the trigger and force the overlay with `visible` so it holds a `Loader`.
|
|
99
|
+
|
|
100
|
+
Source: Avatar/Avatar.stories.tsx#Uploading
|
|
101
|
+
|
|
102
|
+
## Story sources
|
|
103
|
+
|
|
104
|
+
### Avatar/Avatar.stories.tsx
|
|
105
|
+
|
|
106
|
+
```tsx
|
|
107
|
+
import { useState } from 'react';
|
|
108
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
109
|
+
import { Activity, RefreshCcw, Trash2 } from '../../icons';
|
|
110
|
+
import { Button } from '../Button';
|
|
111
|
+
import { FieldDescription, FieldLabel } from '../Field';
|
|
112
|
+
import { FileUpload, FileUploadError, FileUploadTrigger, useFilePreviewUrl } from '../FileUpload';
|
|
113
|
+
import { Loader } from '../Loader';
|
|
114
|
+
import { HStack, VStack } from '../Stack';
|
|
115
|
+
import {
|
|
116
|
+
Avatar,
|
|
117
|
+
AvatarContent,
|
|
118
|
+
AvatarDescription,
|
|
119
|
+
AvatarFallback,
|
|
120
|
+
AvatarImage,
|
|
121
|
+
AvatarName,
|
|
122
|
+
AvatarOverlay,
|
|
123
|
+
type AvatarProps,
|
|
124
|
+
} from '.';
|
|
125
|
+
|
|
126
|
+
// Deterministic "photo": no network, identical pixels in every screenshot run.
|
|
127
|
+
const PHOTO = `data:image/svg+xml;utf8,${encodeURIComponent(
|
|
128
|
+
"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' fill='#8ec5fc'/><circle cx='32' cy='26' r='12' fill='#f6d5b8'/><rect x='14' y='42' width='36' height='22' rx='11' fill='#4b6cb7'/></svg>",
|
|
129
|
+
)}`;
|
|
130
|
+
|
|
131
|
+
const ACCEPT = 'image/png,image/jpeg,image/webp';
|
|
132
|
+
const MAX_SIZE = 512 * 1024;
|
|
133
|
+
|
|
134
|
+
const DESCRIPTION = [
|
|
135
|
+
"A person's photo on a rounded plate, falling back to initials or an icon while it loads, when it fails, or when there is none.",
|
|
136
|
+
'It is decorative beside a visible name; standing alone, give it `aria-label` so it reads as an image.',
|
|
137
|
+
'Add `AvatarContent` with `AvatarName` (and an optional `AvatarDescription`) for the user item: plate and name in one row.',
|
|
138
|
+
"To let people change it, make the avatar the `FileUploadTrigger` (`asChild`) and give it `as='button'` — picking only previews, and your form uploads.",
|
|
139
|
+
].join(' ');
|
|
140
|
+
|
|
141
|
+
const meta = {
|
|
142
|
+
title: 'Data Display/Avatar',
|
|
143
|
+
component: Avatar,
|
|
144
|
+
parameters: {
|
|
145
|
+
layout: 'centered',
|
|
146
|
+
docs: { description: { component: DESCRIPTION } },
|
|
147
|
+
},
|
|
148
|
+
argTypes: {
|
|
149
|
+
size: { control: 'select', options: ['sm', 'md', 'lg'] },
|
|
150
|
+
},
|
|
151
|
+
} satisfies Meta<typeof Avatar>;
|
|
152
|
+
|
|
153
|
+
export default meta;
|
|
154
|
+
|
|
155
|
+
/** A photo with an initials fallback — the fallback also covers the moment before the photo arrives. */
|
|
156
|
+
export const Basic: StoryFn<AvatarProps> = args => (
|
|
157
|
+
<Avatar data-testid='avatar' {...args}>
|
|
158
|
+
<AvatarImage src={PHOTO} />
|
|
159
|
+
<AvatarFallback name='Ada Lovelace' />
|
|
160
|
+
</Avatar>
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
const SIZES = ['sm', 'md', 'lg'] as const;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* `sm` (20px) and `md` (24px, the nav-rail plate) are the compact sizes for user items; `lg` (32px,
|
|
167
|
+
* the default) is for rows and forms. Each row shows a photo, initials and the icon, then the same
|
|
168
|
+
* three inside a Branded frame.
|
|
169
|
+
*/
|
|
170
|
+
export const Sizes: StoryFn<AvatarProps> = () => (
|
|
171
|
+
<VStack gap={16} align='start' data-testid='avatar'>
|
|
172
|
+
{SIZES.map(size => (
|
|
173
|
+
<HStack key={size} gap={12} align='center' data-testid={`avatar-${size}`}>
|
|
174
|
+
<Avatar size={size} data-testid={`avatar-${size}-photo`}>
|
|
175
|
+
<AvatarImage src={PHOTO} />
|
|
176
|
+
<AvatarFallback name='Ada Lovelace' />
|
|
177
|
+
</Avatar>
|
|
178
|
+
<Avatar size={size} data-testid={`avatar-${size}-initials`}>
|
|
179
|
+
<AvatarFallback name='Ada Lovelace' />
|
|
180
|
+
</Avatar>
|
|
181
|
+
<Avatar size={size} data-testid={`avatar-${size}-icon`}>
|
|
182
|
+
<AvatarFallback />
|
|
183
|
+
</Avatar>
|
|
184
|
+
<HStack gap={12} align='center' data-frame-style='branded'>
|
|
185
|
+
<Avatar size={size} data-testid={`avatar-${size}-branded-photo`}>
|
|
186
|
+
<AvatarImage src={PHOTO} />
|
|
187
|
+
<AvatarFallback name='Ada Lovelace' />
|
|
188
|
+
</Avatar>
|
|
189
|
+
<Avatar size={size} data-testid={`avatar-${size}-branded-initials`}>
|
|
190
|
+
<AvatarFallback name='Ada Lovelace' />
|
|
191
|
+
</Avatar>
|
|
192
|
+
<Avatar size={size} data-testid={`avatar-${size}-branded-icon`}>
|
|
193
|
+
<AvatarFallback />
|
|
194
|
+
</Avatar>
|
|
195
|
+
</HStack>
|
|
196
|
+
<span className='sb-annotation'>{size}</span>
|
|
197
|
+
</HStack>
|
|
198
|
+
))}
|
|
199
|
+
</VStack>
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The user item (Figma 12557:5856): the plate and the name in one row, 6px apart. The name is
|
|
204
|
+
* `text-sm` at every size and truncates with an ellipsis when the row is narrow.
|
|
205
|
+
*/
|
|
206
|
+
export const WithName: StoryFn<AvatarProps> = () => (
|
|
207
|
+
<VStack gap={16} align='start' data-testid='avatar'>
|
|
208
|
+
{(['sm', 'md'] as const).map(size => (
|
|
209
|
+
<VStack key={size} gap={8} align='start' data-testid={`avatar-${size}`}>
|
|
210
|
+
<Avatar size={size} data-testid={`avatar-${size}-photo`}>
|
|
211
|
+
<AvatarImage src={PHOTO} />
|
|
212
|
+
<AvatarFallback name='Artem Miskevich' />
|
|
213
|
+
<AvatarContent>
|
|
214
|
+
<AvatarName>Artem Miskevich</AvatarName>
|
|
215
|
+
</AvatarContent>
|
|
216
|
+
</Avatar>
|
|
217
|
+
<Avatar size={size} data-testid={`avatar-${size}-initials`}>
|
|
218
|
+
<AvatarFallback name='Artem Miskevich' />
|
|
219
|
+
<AvatarContent>
|
|
220
|
+
<AvatarName>Artem Miskevich</AvatarName>
|
|
221
|
+
</AvatarContent>
|
|
222
|
+
</Avatar>
|
|
223
|
+
<div data-frame-style='branded'>
|
|
224
|
+
<Avatar size={size} data-testid={`avatar-${size}-branded`}>
|
|
225
|
+
<AvatarFallback name='Artem Miskevich' />
|
|
226
|
+
<AvatarContent>
|
|
227
|
+
<AvatarName>Artem Miskevich</AvatarName>
|
|
228
|
+
</AvatarContent>
|
|
229
|
+
</Avatar>
|
|
230
|
+
</div>
|
|
231
|
+
<div className='w-120'>
|
|
232
|
+
<Avatar size={size} data-testid={`avatar-${size}-truncated`}>
|
|
233
|
+
<AvatarFallback name='Maximilian Alexander-Montgomery' />
|
|
234
|
+
<AvatarContent>
|
|
235
|
+
<AvatarName>Maximilian Alexander-Montgomery</AvatarName>
|
|
236
|
+
</AvatarContent>
|
|
237
|
+
</Avatar>
|
|
238
|
+
</div>
|
|
239
|
+
</VStack>
|
|
240
|
+
))}
|
|
241
|
+
</VStack>
|
|
242
|
+
);
|
|
243
|
+
|
|
244
|
+
/** `AvatarDescription` adds a secondary line under the name — the email in the account menu. Both lines truncate. */
|
|
245
|
+
export const WithDescription: StoryFn<AvatarProps> = () => (
|
|
246
|
+
<VStack gap={16} align='start' data-testid='avatar'>
|
|
247
|
+
<Avatar data-testid='avatar-photo'>
|
|
248
|
+
<AvatarImage src={PHOTO} />
|
|
249
|
+
<AvatarFallback name='Artem Miskevich' />
|
|
250
|
+
<AvatarContent>
|
|
251
|
+
<AvatarName>Artem Miskevich</AvatarName>
|
|
252
|
+
<AvatarDescription>admin@wallarm.com</AvatarDescription>
|
|
253
|
+
</AvatarContent>
|
|
254
|
+
</Avatar>
|
|
255
|
+
<Avatar size='md' data-testid='avatar-md'>
|
|
256
|
+
<AvatarFallback name='Artem Miskevich' />
|
|
257
|
+
<AvatarContent>
|
|
258
|
+
<AvatarName>Artem Miskevich</AvatarName>
|
|
259
|
+
<AvatarDescription>admin@wallarm.com</AvatarDescription>
|
|
260
|
+
</AvatarContent>
|
|
261
|
+
</Avatar>
|
|
262
|
+
<div className='w-160'>
|
|
263
|
+
<Avatar data-testid='avatar-truncated'>
|
|
264
|
+
<AvatarFallback />
|
|
265
|
+
<AvatarContent>
|
|
266
|
+
<AvatarName>Maximilian Alexander-Montgomery</AvatarName>
|
|
267
|
+
<AvatarDescription>maximilian.alexander-montgomery@wallarm.com</AvatarDescription>
|
|
268
|
+
</AvatarContent>
|
|
269
|
+
</Avatar>
|
|
270
|
+
</div>
|
|
271
|
+
</VStack>
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
/** Initials are the first letters of the first and last word of `name`; without a name the person icon shows, whether the photo is missing or failed to load. */
|
|
275
|
+
export const Fallback: StoryFn<AvatarProps> = () => (
|
|
276
|
+
<HStack gap={12} align='center' data-testid='avatar'>
|
|
277
|
+
<Avatar>
|
|
278
|
+
<AvatarFallback name='Grace Hopper' />
|
|
279
|
+
</Avatar>
|
|
280
|
+
<Avatar>
|
|
281
|
+
<AvatarFallback />
|
|
282
|
+
</Avatar>
|
|
283
|
+
<Avatar data-testid='avatar-broken-initials'>
|
|
284
|
+
<AvatarImage src='/does-not-exist.png' />
|
|
285
|
+
<AvatarFallback name='Alan Turing' />
|
|
286
|
+
</Avatar>
|
|
287
|
+
<Avatar data-testid='avatar-broken-icon'>
|
|
288
|
+
<AvatarImage src='/does-not-exist.png' />
|
|
289
|
+
<AvatarFallback />
|
|
290
|
+
</Avatar>
|
|
291
|
+
</HStack>
|
|
292
|
+
);
|
|
293
|
+
|
|
294
|
+
/** `icon` replaces the default person glyph whenever `name` gives no initials. */
|
|
295
|
+
export const CustomIcon: StoryFn<AvatarProps> = () => (
|
|
296
|
+
<Avatar data-testid='avatar'>
|
|
297
|
+
<AvatarFallback icon={Activity} />
|
|
298
|
+
</Avatar>
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
/** Inside a Branded frame the empty plate takes the brand tint and stroke, initials and the icon take the brand colour, and a photo is unchanged. */
|
|
302
|
+
export const Branded: StoryFn<AvatarProps> = () => (
|
|
303
|
+
<HStack gap={12} align='center' data-frame-style='branded' data-testid='avatar'>
|
|
304
|
+
<Avatar>
|
|
305
|
+
<AvatarFallback />
|
|
306
|
+
</Avatar>
|
|
307
|
+
<Avatar>
|
|
308
|
+
<AvatarFallback name='Ada Lovelace' />
|
|
309
|
+
</Avatar>
|
|
310
|
+
<Avatar data-testid='avatar-branded-photo'>
|
|
311
|
+
<AvatarImage src={PHOTO} />
|
|
312
|
+
<AvatarFallback />
|
|
313
|
+
</Avatar>
|
|
314
|
+
</HStack>
|
|
315
|
+
);
|
|
316
|
+
|
|
317
|
+
const useAvatarUpload = (initial?: string) => {
|
|
318
|
+
const [stored, setStored] = useState(initial);
|
|
319
|
+
const [files, setFiles] = useState<File[]>([]);
|
|
320
|
+
const preview = useFilePreviewUrl(files[0]);
|
|
321
|
+
const remove = () => {
|
|
322
|
+
setStored(undefined);
|
|
323
|
+
setFiles([]);
|
|
324
|
+
};
|
|
325
|
+
return { src: preview ?? stored, files, setFiles, remove };
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Click the avatar, or focus it and press Enter, to pick a photo — hover and focus show the edit
|
|
330
|
+
* icon, and the pick only previews until your form saves.
|
|
331
|
+
*/
|
|
332
|
+
export const ClickToUpload: StoryFn = () => {
|
|
333
|
+
const { src, files, setFiles } = useAvatarUpload();
|
|
334
|
+
return (
|
|
335
|
+
<FileUpload
|
|
336
|
+
data-testid='avatar-upload'
|
|
337
|
+
accept={ACCEPT}
|
|
338
|
+
maxFileSize={MAX_SIZE}
|
|
339
|
+
value={files}
|
|
340
|
+
onValueChange={setFiles}
|
|
341
|
+
>
|
|
342
|
+
<FileUploadTrigger asChild data-analytics-id='AVATAR_CHANGE'>
|
|
343
|
+
<Avatar as='button' aria-label='Change avatar'>
|
|
344
|
+
<AvatarImage src={src} />
|
|
345
|
+
<AvatarFallback />
|
|
346
|
+
<AvatarOverlay />
|
|
347
|
+
</Avatar>
|
|
348
|
+
</FileUploadTrigger>
|
|
349
|
+
<FileUploadError />
|
|
350
|
+
</FileUpload>
|
|
351
|
+
);
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
/** The settings-row pattern: explicit Remove and Replace buttons beside a plain avatar, with the accepted formats and size spelled out. */
|
|
355
|
+
export const WithActions: StoryFn = () => {
|
|
356
|
+
const { src, files, setFiles, remove } = useAvatarUpload(PHOTO);
|
|
357
|
+
return (
|
|
358
|
+
<FileUpload
|
|
359
|
+
data-testid='avatar-upload'
|
|
360
|
+
accept={ACCEPT}
|
|
361
|
+
maxFileSize={MAX_SIZE}
|
|
362
|
+
value={files}
|
|
363
|
+
onValueChange={setFiles}
|
|
364
|
+
>
|
|
365
|
+
<HStack gap={12} align='center' className='w-[480px] justify-between'>
|
|
366
|
+
<VStack gap={0} align='start'>
|
|
367
|
+
<FieldLabel>Avatar</FieldLabel>
|
|
368
|
+
<FieldDescription>PNG, JPEG, or WebP · up to 512 KB</FieldDescription>
|
|
369
|
+
</VStack>
|
|
370
|
+
<HStack gap={12} align='center'>
|
|
371
|
+
{src && (
|
|
372
|
+
<Button
|
|
373
|
+
variant='ghost'
|
|
374
|
+
color='neutral'
|
|
375
|
+
size='small'
|
|
376
|
+
aria-label='Remove avatar'
|
|
377
|
+
data-testid='avatar-remove'
|
|
378
|
+
onClick={remove}
|
|
379
|
+
>
|
|
380
|
+
<Trash2 />
|
|
381
|
+
</Button>
|
|
382
|
+
)}
|
|
383
|
+
<FileUploadTrigger
|
|
384
|
+
variant='ghost'
|
|
385
|
+
color='neutral'
|
|
386
|
+
size='small'
|
|
387
|
+
aria-label='Replace avatar'
|
|
388
|
+
>
|
|
389
|
+
<RefreshCcw />
|
|
390
|
+
</FileUploadTrigger>
|
|
391
|
+
<Avatar data-testid='avatar'>
|
|
392
|
+
<AvatarImage src={src} />
|
|
393
|
+
<AvatarFallback />
|
|
394
|
+
</Avatar>
|
|
395
|
+
</HStack>
|
|
396
|
+
</HStack>
|
|
397
|
+
<FileUploadError />
|
|
398
|
+
</FileUpload>
|
|
399
|
+
);
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/** While the new photo uploads, disable the trigger and force the overlay with `visible` so it holds a `Loader`. */
|
|
403
|
+
export const Uploading: StoryFn = () => (
|
|
404
|
+
<FileUpload data-testid='avatar-upload' accept={ACCEPT}>
|
|
405
|
+
<FileUploadTrigger asChild disabled>
|
|
406
|
+
<Avatar as='button' aria-label='Change avatar' aria-busy>
|
|
407
|
+
<AvatarImage src={PHOTO} />
|
|
408
|
+
<AvatarFallback />
|
|
409
|
+
<AvatarOverlay visible>
|
|
410
|
+
<Loader size='md' />
|
|
411
|
+
</AvatarOverlay>
|
|
412
|
+
</Avatar>
|
|
413
|
+
</FileUploadTrigger>
|
|
414
|
+
</FileUpload>
|
|
415
|
+
);
|
|
416
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,a){let r,n;/**
|
|
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 l,i,o=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,m=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,p=(e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of d(t))u.call(e,n)||n===a||c(e,n,{get:()=>t[n],enumerable:!(r=s(t,n))||r.enumerable});return e},h={},f={$dispatcherGuard:()=>N,$makeReadOnly:()=>M,$reset:()=>k,$structuralCheck:()=>z,c:()=>$,clearRenderCounterRegistry:()=>x,renderCounterRegistry:()=>D,useRenderCounter:()=>O};for(var y in f)c(h,y,{get:f[y],enumerable:!0});e.exports=p(c({},"__esModule",{value:!0}),h);var v=(n=null!=(r=a("C"))?o(m(r)):{},p(r&&r.__esModule?n:c(n,"default",{value:r,enumerable:!0}),r)),{useRef:g,useEffect:w,isValidElement:b}=v,_=null!=(l=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?l:v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),$="function"==typeof(null==(i=v.__COMPILER_RUNTIME)?void 0:i.c)?v.__COMPILER_RUNTIME.c:function(e){return v.useMemo(()=>{let t=Array(e);for(let a=0;a<e;a++)t[a]=S;return t[S]=!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 E=null;function A(e){return _.ReactCurrentDispatcher.current=e,_.ReactCurrentDispatcher.current}R.useMemoCache=e=>{if(null!=E)return E.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var C=[];function N(e){let t=_.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&(E=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.");A(R)}else if(1===e){let e=C.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===C.length&&(E=null),A(e)}else if(2===e)C.push(t),A(E);else if(3===e){let e=C.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");A(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function k(e){for(let t=0;t<e.length;t++)e[t]=S}function M(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var D=new Map;function x(){for(let e of D.values())e.forEach(e=>{e.count=0})}function O(e){let t=g(null);null!=t.current&&(t.current.count+=1),w(()=>{if(null==t.current){let a,r={count:0};null==(a=D.get(e))&&(a=new Set,D.set(e,a)),a.add(r),t.current=r}return()=>{var a;let r;null!==t.current&&(a=t.current,null!=(r=D.get(e))&&r.delete(a))}})}var W=new Set;function z(e,t,a,r,n,l){function i(e,t,i,o){let c=`${r}:${l} [${n}] ${a}${i} changed from ${e} to ${t} at depth ${o}`;W.has(c)||(W.add(c),console.error(c))}!function e(t,a,r,n){if(!(n>2)){if(t!==a)if(typeof t!=typeof a)i(`type ${typeof t}`,`type ${typeof a}`,r,n);else if("object"==typeof t){let l=Array.isArray(t),o=Array.isArray(a);if(null===t&&null!==a)i("null",`type ${typeof a}`,r,n);else if(null===a)i(`type ${typeof t}`,"null",r,n);else if(t instanceof Map)if(a instanceof Map)if(t.size!==a.size)i(`Map instance with size ${t.size}`,`Map instance with size ${a.size}`,r,n);else for(let[l,o]of t)a.has(l)?e(o,a.get(l),`${r}.get(${l})`,n+1):i(`Map instance with key ${l}`,`Map instance without key ${l}`,r,n);else i("Map instance","other value",r,n);else if(a instanceof Map)i("other value","Map instance",r,n);else if(t instanceof Set)if(a instanceof Set)if(t.size!==a.size)i(`Set instance with size ${t.size}`,`Set instance with size ${a.size}`,r,n);else for(let e of a)t.has(e)||i(`Set instance without element ${e}`,`Set instance with element ${e}`,r,n);else i("Set instance","other value",r,n);else if(a instanceof Set)i("other value","Set instance",r,n);else if(l||o)if(l!==o)i(`type ${l?"array":"object"}`,`type ${o?"array":"object"}`,r,n);else if(t.length!==a.length)i(`array with length ${t.length}`,`array with length ${a.length}`,r,n);else for(let l=0;l<t.length;l++)e(t[l],a[l],`${r}[${l}]`,n+1);else if(b(t)||b(a))b(t)!==b(a)?i(`type ${b(t)?"React element":"object"}`,`type ${b(a)?"React element":"object"}`,r,n):t.type!==a.type?i(`React element of type ${t.type}`,`React element of type ${a.type}`,r,n):e(t.props,a.props,`[props of ${r}]`,n+1);else{for(let e in a)e in t||i(`object without key ${e}`,`object with key ${e}`,r,n);for(let l in t)l in a?e(t[l],a[l],`${r}.${l}`,n+1):i(`object with key ${l}`,`object without key ${l}`,r,n)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(a)?isNaN(t)!==isNaN(a)&&i(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(a)?"NaN":"non-NaN value"}`,r,n):t!==a&&i(t,a,r,n)}}}(e,t,"",0)}},p(e,t,a){let r=new WeakMap,n=new WeakMap;function l(e,t,a){let l=t,i=a;if("object"==typeof l&&null!==l&&"$$typeof"in l&&l.$$typeof===Symbol.for("react.context")&&"Provider"in l&&(l=l.Provider),"function"==typeof l&&null!=i.ref&&!l.prototype?.isReactComponent){let t=l,a=r.get(e);a||(a=new WeakMap,r.set(e,a));let n=a.get(t);n||((n=e.forwardRef((e,a)=>t({...e,ref:a}))).displayName=t.displayName??t.name,a.set(t,n)),l=n}if("string"==typeof l&&"boolean"==typeof i.inert&&((i={...i}).inert?i.inert="":delete i.inert),"string"==typeof l)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in i&&(i={...i,[t]:i[e]},delete i[e]);return"string"==typeof l&&null!=i.ref&&(l=function(e,t){let a=n.get(e);a||(a=new Map,n.set(e,a));let r=a.get(t);if(r)return r;let l=e.forwardRef((a,r)=>{let n=e.useRef(null);if(!n.current||n.current.original!==r){let e;n.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let a=r(t);e="function"==typeof a?a:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...a,ref:n.current.callback})});return l.displayName=`CanvasHost(${t})`,a.set(t,l),l}(e,l)),{type:l,props:i}}function i(e){let t=(t,a,r)=>{let n=l(e,t,a??{});return e.createElement(n.type,void 0===r?n.props:{...n.props,key:r})};return{jsx:t,jsxs:(t,a,r)=>{let n=l(e,t,a??{}),{children:i,...o}=n.props;return e.createElement(n.type,void 0===r?o:{...o,key:r},...Array.isArray(i)?i:[i])},jsxDEV:t,Fragment:e.Fragment}}function o(e){return{...e,createElement:(t,a,...r)=>{let n=l(e,t,a??{});return e.createElement(n.type,n.props,...r)},cloneElement:(t,a,...r)=>{let n=e.cloneElement(t,a??void 0,...r),i=n.ref,o=l(e,n.type,{...n.props,ref:i});return o.type===n.type&&"string"!=typeof n.type?n:e.createElement(o.type,{...o.props,key:n.key})}}}a.d(t,{MA:()=>i,YJ:()=>o})},C(e,t,a){a.r(t);let r=(0,a("p").YJ)(window.React),{Children:n,Component:l,Fragment:i,Profiler:o,PureComponent:c,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m,act:u,cloneElement:p,createContext:h,createElement:f,createFactory:y,createRef:v,forwardRef:g,isValidElement:w,lazy:b,memo:_,startTransition:S,unstable_act:$,useCallback:R,useContext:E,useDebugValue:A,useDeferredValue:C,useEffect:N,useId:k,useImperativeHandle:M,useInsertionEffect:D,useLayoutEffect:x,useMemo:O,useReducer:W,useRef:z,useState:T,useSyncExternalStore:j,useTransition:I,version:P,use:L}=r;a.d(t,{},{Children:n,Component:l,Fragment:i,Profiler:o,PureComponent:c,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m,act:u,cloneElement:p,createContext:h,createElement:f,createFactory:y,createRef:v,default:r,forwardRef:g,isValidElement:w,lazy:b,memo:_,startTransition:S,unstable_act:$,use:L,useCallback:R,useContext:E,useDebugValue:A,useDeferredValue:C,useEffect:N,useId:k,useImperativeHandle:M,useInsertionEffect:D,useLayoutEffect:x,useMemo:O,useReducer:W,useRef:z,useState:T,useSyncExternalStore:j,useTransition:I,version:P})}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,a),l.exports}a.d=(e,t,r)=>{var n=(t,r)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[r]:t[n]})};n(t,"get"),n(r,"value")},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.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:n}=(0,a("p").MA)(window.React);var l=a("vD"),i=a("C");let o=window.WallarmDS.Icons.Activity,c=window.WallarmDS.Icons.RefreshCcw,s=window.WallarmDS.Icons.Trash2,d=window.WallarmDS.Button,m=window.WallarmDS.FieldDescription,u=window.WallarmDS.FieldLabel,p=window.WallarmDS.FileUpload,h=window.WallarmDS.FileUploadError,f=window.WallarmDS.FileUploadTrigger,y=window.WallarmDS.useFilePreviewUrl,v=window.WallarmDS.Loader,g=window.WallarmDS.HStack,w=window.WallarmDS.VStack,b=window.WallarmDS.Avatar,_=window.WallarmDS.AvatarContent,S=window.WallarmDS.AvatarDescription,$=window.WallarmDS.AvatarFallback,R=window.WallarmDS.AvatarImage,E=window.WallarmDS.AvatarName,A=window.WallarmDS.AvatarOverlay,C=`data:image/svg+xml;utf8,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' fill='#8ec5fc'/><circle cx='32' cy='26' r='12' fill='#f6d5b8'/><rect x='14' y='42' width='36' height='22' rx='11' fill='#4b6cb7'/></svg>")}`,N="image/png,image/jpeg,image/webp",k={title:"Data Display/Avatar",component:b,parameters:{layout:"centered",docs:{description:{component:"A person's photo on a rounded plate, falling back to initials or an icon while it loads, when it fails, or when there is none. It is decorative beside a visible name; standing alone, give it `aria-label` so it reads as an image. Add `AvatarContent` with `AvatarName` (and an optional `AvatarDescription`) for the user item: plate and name in one row. To let people change it, make the avatar the `FileUploadTrigger` (`asChild`) and give it `as='button'` — picking only previews, and your form uploads."}}},argTypes:{size:{control:"select",options:["sm","md","lg"]}}},M=["sm","md","lg"],D=e=>{let t,a,r,n=(0,l.c)(5),[o,c]=(0,i.useState)(e);n[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],n[0]=t):t=n[0];let[s,d]=(0,i.useState)(t),m=y(s[0]);n[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{c(void 0),d([])},n[1]=a):a=n[1];let u=a,p=m??o;return n[2]!==s||n[3]!==p?(r={src:p,files:s,setFiles:d,remove:u},n[2]=s,n[3]=p,n[4]=r):r=n[4],r};function x(a){return t(g,{gap:12,align:"center","data-testid":`avatar-${a}`,children:[t(b,{size:a,"data-testid":`avatar-${a}-photo`,children:[e(R,{src:C}),e($,{name:"Ada Lovelace"})]}),e(b,{size:a,"data-testid":`avatar-${a}-initials`,children:e($,{name:"Ada Lovelace"})}),e(b,{size:a,"data-testid":`avatar-${a}-icon`,children:e($,{})}),t(g,{gap:12,align:"center","data-frame-style":"branded",children:[t(b,{size:a,"data-testid":`avatar-${a}-branded-photo`,children:[e(R,{src:C}),e($,{name:"Ada Lovelace"})]}),e(b,{size:a,"data-testid":`avatar-${a}-branded-initials`,children:e($,{name:"Ada Lovelace"})}),e(b,{size:a,"data-testid":`avatar-${a}-branded-icon`,children:e($,{})})]}),e("span",{className:"sb-annotation",children:a})]},a)}function O(a){return t(w,{gap:8,align:"start","data-testid":`avatar-${a}`,children:[t(b,{size:a,"data-testid":`avatar-${a}-photo`,children:[e(R,{src:C}),e($,{name:"Artem Miskevich"}),e(_,{children:e(E,{children:"Artem Miskevich"})})]}),t(b,{size:a,"data-testid":`avatar-${a}-initials`,children:[e($,{name:"Artem Miskevich"}),e(_,{children:e(E,{children:"Artem Miskevich"})})]}),e("div",{"data-frame-style":"branded",children:t(b,{size:a,"data-testid":`avatar-${a}-branded`,children:[e($,{name:"Artem Miskevich"}),e(_,{children:e(E,{children:"Artem Miskevich"})})]})}),e("div",{className:"w-120",children:t(b,{size:a,"data-testid":`avatar-${a}-truncated`,children:[e($,{name:"Maximilian Alexander-Montgomery"}),e(_,{children:e(E,{children:"Maximilian Alexander-Montgomery"})})]})})]},a)}let W=[{name:"Basic",story:a=>{let r,n,i,o=(0,l.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(R,{src:C}),n=e($,{name:"Ada Lovelace"}),o[0]=r,o[1]=n):(r=o[0],n=o[1]),o[2]!==a?(i=t(b,{"data-testid":"avatar",...a,children:[r,n]}),o[2]=a,o[3]=i):i=o[3],i},meta:k},{name:"Sizes",story:()=>{let t,a=(0,l.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(w,{gap:16,align:"start","data-testid":"avatar",children:M.map(x)}),a[0]=t):t=a[0],t},meta:k},{name:"WithName",story:()=>{let t,a,r=(0,l.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=["sm","md"],r[0]=t):t=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(w,{gap:16,align:"start","data-testid":"avatar",children:t.map(O)}),r[1]=a):a=r[1],a},meta:k},{name:"WithDescription",story:()=>{let a,r,n,i,o,c,s,d=(0,l.c)(7);return d[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(R,{src:C}),r=e($,{name:"Artem Miskevich"}),d[0]=a,d[1]=r):(a=d[0],r=d[1]),d[2]===Symbol.for("react.memo_cache_sentinel")?(n=t(b,{"data-testid":"avatar-photo",children:[a,r,t(_,{children:[e(E,{children:"Artem Miskevich"}),e(S,{children:"admin@wallarm.com"})]})]}),d[2]=n):n=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(i=e($,{name:"Artem Miskevich"}),d[3]=i):i=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(o=t(b,{size:"md","data-testid":"avatar-md",children:[i,t(_,{children:[e(E,{children:"Artem Miskevich"}),e(S,{children:"admin@wallarm.com"})]})]}),d[4]=o):o=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(c=e($,{}),d[5]=c):c=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(s=t(w,{gap:16,align:"start","data-testid":"avatar",children:[n,o,e("div",{className:"w-160",children:t(b,{"data-testid":"avatar-truncated",children:[c,t(_,{children:[e(E,{children:"Maximilian Alexander-Montgomery"}),e(S,{children:"maximilian.alexander-montgomery@wallarm.com"})]})]})})]}),d[6]=s):s=d[6],s},meta:k},{name:"Fallback",story:()=>{let a,r,n,i,o=(0,l.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(b,{children:e($,{name:"Grace Hopper"})}),o[0]=a):a=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(r=e(b,{children:e($,{})}),o[1]=r):r=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(n=t(b,{"data-testid":"avatar-broken-initials",children:[e(R,{src:"/does-not-exist.png"}),e($,{name:"Alan Turing"})]}),o[2]=n):n=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(i=t(g,{gap:12,align:"center","data-testid":"avatar",children:[a,r,n,t(b,{"data-testid":"avatar-broken-icon",children:[e(R,{src:"/does-not-exist.png"}),e($,{})]})]}),o[3]=i):i=o[3],i},meta:k},{name:"CustomIcon",story:()=>{let t,a=(0,l.c)(1);return a[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(b,{"data-testid":"avatar",children:e($,{icon:o})}),a[0]=t):t=a[0],t},meta:k},{name:"Branded",story:()=>{let a,r,n,i=(0,l.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(b,{children:e($,{})}),i[0]=a):a=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(r=e(b,{children:e($,{name:"Ada Lovelace"})}),i[1]=r):r=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=t(g,{gap:12,align:"center","data-frame-style":"branded","data-testid":"avatar",children:[a,r,t(b,{"data-testid":"avatar-branded-photo",children:[e(R,{src:C}),e($,{})]})]}),i[2]=n):n=i[2],n},meta:k},{name:"ClickToUpload",story:()=>{let a,r,n,i,o,c,s=(0,l.c)(11),{src:d,files:m,setFiles:u}=D();return s[0]!==d?(a=e(R,{src:d}),s[0]=d,s[1]=a):a=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(r=e($,{}),n=e(A,{}),s[2]=r,s[3]=n):(r=s[2],n=s[3]),s[4]!==a?(i=e(f,{asChild:!0,"data-analytics-id":"AVATAR_CHANGE",children:t(b,{as:"button","aria-label":"Change avatar",children:[a,r,n]})}),s[4]=a,s[5]=i):i=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(o=e(h,{}),s[6]=o):o=s[6],s[7]!==m||s[8]!==u||s[9]!==i?(c=t(p,{"data-testid":"avatar-upload",accept:N,maxFileSize:524288,value:m,onValueChange:u,children:[i,o]}),s[7]=m,s[8]=u,s[9]=i,s[10]=c):c=s[10],c},meta:k},{name:"WithActions",story:()=>{let a,r,n,i,o,y,v,_,S,E=(0,l.c)(18),{src:A,files:k,setFiles:M,remove:x}=D(C);return E[0]===Symbol.for("react.memo_cache_sentinel")?(a=t(w,{gap:0,align:"start",children:[e(u,{children:"Avatar"}),e(m,{children:"PNG, JPEG, or WebP · up to 512 KB"})]}),E[0]=a):a=E[0],E[1]!==x||E[2]!==A?(r=A&&e(d,{variant:"ghost",color:"neutral",size:"small","aria-label":"Remove avatar","data-testid":"avatar-remove",onClick:x,children:e(s,{})}),E[1]=x,E[2]=A,E[3]=r):r=E[3],E[4]===Symbol.for("react.memo_cache_sentinel")?(n=e(f,{variant:"ghost",color:"neutral",size:"small","aria-label":"Replace avatar",children:e(c,{})}),E[4]=n):n=E[4],E[5]!==A?(i=e(R,{src:A}),E[5]=A,E[6]=i):i=E[6],E[7]===Symbol.for("react.memo_cache_sentinel")?(o=e($,{}),E[7]=o):o=E[7],E[8]!==i?(y=t(b,{"data-testid":"avatar",children:[i,o]}),E[8]=i,E[9]=y):y=E[9],E[10]!==r||E[11]!==y?(v=t(g,{gap:12,align:"center",className:"w-[480px] justify-between",children:[a,t(g,{gap:12,align:"center",children:[r,n,y]})]}),E[10]=r,E[11]=y,E[12]=v):v=E[12],E[13]===Symbol.for("react.memo_cache_sentinel")?(_=e(h,{}),E[13]=_):_=E[13],E[14]!==k||E[15]!==M||E[16]!==v?(S=t(p,{"data-testid":"avatar-upload",accept:N,maxFileSize:524288,value:k,onValueChange:M,children:[v,_]}),E[14]=k,E[15]=M,E[16]=v,E[17]=S):S=E[17],S},meta:k},{name:"Uploading",story:()=>{let a,r,n,i=(0,l.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(R,{src:C}),r=e($,{}),i[0]=a,i[1]=r):(a=i[0],r=i[1]),i[2]===Symbol.for("react.memo_cache_sentinel")?(n=e(p,{"data-testid":"avatar-upload",accept:N,children:e(f,{asChild:!0,disabled:!0,children:t(b,{as:"button","aria-label":"Change avatar","aria-busy":!0,children:[a,r,e(A,{visible:!0,children:e(v,{size:"md"})})]})})}),i[2]=n):n=i[2],n},meta:k}];function z({entry:e}){let{story:t,meta:a}=e,r={...a.args,...t.args},n="function"==typeof t||t.$$typeof?t:t.render||a.render||a.component,l=()=>i.default.createElement(n,r),o={args:r,globals:{theme:"light"},parameters:{...a.parameters,...t.parameters},viewMode:"story"};for(let e of[...a.decorators||[],...t.decorators||[]].reverse()){let t=l;l=()=>e(t,o)}return i.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},i.default.createElement("h2",{className:"text-sm mb-12"},e.name),i.default.createElement(l))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(i.default.createElement(window.WallarmDS.Root,null,W.map((e,t)=>i.default.createElement(z,{key:t,entry:e})))),t}}})();
|