@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 a,r;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var o,l,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,u=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,p=(e,t,n,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of d(t))m.call(e,r)||r===n||c(e,r,{get:()=>t[r],enumerable:!(a=s(t,r))||a.enumerable});return e},h={},f={$dispatcherGuard:()=>R,$makeReadOnly:()=>$,$reset:()=>T,$structuralCheck:()=>M,c:()=>C,clearRenderCounterRegistry:()=>O,renderCounterRegistry:()=>x,useRenderCounter:()=>A};for(var y in f)c(h,y,{get:f[y],enumerable:!0});e.exports=p(c({},"__esModule",{value:!0}),h);var w=(r=null!=(a=n("C"))?i(u(a)):{},p(a&&a.__esModule?r:c(r,"default",{value:a,enumerable:!0}),a)),{useRef:g,useEffect:v,isValidElement:b}=w,_=null!=(o=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?o:w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),C="function"==typeof(null==(l=w.__COMPILER_RUNTIME)?void 0:l.c)?w.__COMPILER_RUNTIME.c:function(e){return w.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=S;return t[S]=!0,t},[])},k={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{k[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 N(e){return _.ReactCurrentDispatcher.current=e,_.ReactCurrentDispatcher.current}k.useMemoCache=e=>{if(null!=E)return E.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var D=[];function R(e){let t=_.ReactCurrentDispatcher.current;if(0===e){if(D.push(t),1===D.length&&(E=t),t===k)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");N(k)}else if(1===e){let e=D.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===D.length&&(E=null),N(e)}else if(2===e)D.push(t),N(E);else if(3===e){let e=D.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");N(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function T(e){for(let t=0;t<e.length;t++)e[t]=S}function $(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var x=new Map;function O(){for(let e of x.values())e.forEach(e=>{e.count=0})}function A(e){let t=g(null);null!=t.current&&(t.current.count+=1),v(()=>{if(null==t.current){let n,a={count:0};null==(n=x.get(e))&&(n=new Set,x.set(e,n)),n.add(a),t.current=a}return()=>{var n;let a;null!==t.current&&(n=t.current,null!=(a=x.get(e))&&a.delete(n))}})}var W=new Set;function M(e,t,n,a,r,o){function l(e,t,l,i){let c=`${a}:${o} [${r}] ${n}${l} changed from ${e} to ${t} at depth ${i}`;W.has(c)||(W.add(c),console.error(c))}!function e(t,n,a,r){if(!(r>2)){if(t!==n)if(typeof t!=typeof n)l(`type ${typeof t}`,`type ${typeof n}`,a,r);else if("object"==typeof t){let o=Array.isArray(t),i=Array.isArray(n);if(null===t&&null!==n)l("null",`type ${typeof n}`,a,r);else if(null===n)l(`type ${typeof t}`,"null",a,r);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)l(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,a,r);else for(let[o,i]of t)n.has(o)?e(i,n.get(o),`${a}.get(${o})`,r+1):l(`Map instance with key ${o}`,`Map instance without key ${o}`,a,r);else l("Map instance","other value",a,r);else if(n instanceof Map)l("other value","Map instance",a,r);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)l(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,a,r);else for(let e of n)t.has(e)||l(`Set instance without element ${e}`,`Set instance with element ${e}`,a,r);else l("Set instance","other value",a,r);else if(n instanceof Set)l("other value","Set instance",a,r);else if(o||i)if(o!==i)l(`type ${o?"array":"object"}`,`type ${i?"array":"object"}`,a,r);else if(t.length!==n.length)l(`array with length ${t.length}`,`array with length ${n.length}`,a,r);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${a}[${o}]`,r+1);else if(b(t)||b(n))b(t)!==b(n)?l(`type ${b(t)?"React element":"object"}`,`type ${b(n)?"React element":"object"}`,a,r):t.type!==n.type?l(`React element of type ${t.type}`,`React element of type ${n.type}`,a,r):e(t.props,n.props,`[props of ${a}]`,r+1);else{for(let e in n)e in t||l(`object without key ${e}`,`object with key ${e}`,a,r);for(let o in t)o in n?e(t[o],n[o],`${a}.${o}`,r+1):l(`object with key ${o}`,`object without key ${o}`,a,r)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&l(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,a,r):t!==n&&l(t,n,a,r)}}}(e,t,"",0)}},p(e,t,n){let a=new WeakMap,r=new WeakMap;function o(e,t,n){let o=t,l=n;if("object"==typeof o&&null!==o&&"$$typeof"in o&&o.$$typeof===Symbol.for("react.context")&&"Provider"in o&&(o=o.Provider),"function"==typeof o&&null!=l.ref&&!o.prototype?.isReactComponent){let t=o,n=a.get(e);n||(n=new WeakMap,a.set(e,n));let r=n.get(t);r||((r=e.forwardRef((e,n)=>t({...e,ref:n}))).displayName=t.displayName??t.name,n.set(t,r)),o=r}if("string"==typeof o&&"boolean"==typeof l.inert&&((l={...l}).inert?l.inert="":delete l.inert),"string"==typeof o)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in l&&(l={...l,[t]:l[e]},delete l[e]);return"string"==typeof o&&null!=l.ref&&(o=function(e,t){let n=r.get(e);n||(n=new Map,r.set(e,n));let a=n.get(t);if(a)return a;let o=e.forwardRef((n,a)=>{let r=e.useRef(null);if(!r.current||r.current.original!==a){let e;r.current={original:a,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof a){let n=a(t);e="function"==typeof n?n:void 0}else a&&(a.current=t)}}}return e.createElement(t,{...n,ref:r.current.callback})});return o.displayName=`CanvasHost(${t})`,n.set(t,o),o}(e,o)),{type:o,props:l}}function l(e){let t=(t,n,a)=>{let r=o(e,t,n??{});return e.createElement(r.type,void 0===a?r.props:{...r.props,key:a})};return{jsx:t,jsxs:(t,n,a)=>{let r=o(e,t,n??{}),{children:l,...i}=r.props;return e.createElement(r.type,void 0===a?i:{...i,key:a},...Array.isArray(l)?l:[l])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,n,...a)=>{let r=o(e,t,n??{});return e.createElement(r.type,r.props,...a)},cloneElement:(t,n,...a)=>{let r=e.cloneElement(t,n??void 0,...a),l=r.ref,i=o(e,r.type,{...r.props,ref:l});return i.type===r.type&&"string"!=typeof r.type?r:e.createElement(i.type,{...i.props,key:r.key})}}}n.d(t,{MA:()=>l,YJ:()=>i})},C(e,t,n){n.r(t);let a=(0,n("p").YJ)(window.React),{Children:r,Component:o,Fragment:l,Profiler:i,PureComponent:c,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u,act:m,cloneElement:p,createContext:h,createElement:f,createFactory:y,createRef:w,forwardRef:g,isValidElement:v,lazy:b,memo:_,startTransition:S,unstable_act:C,useCallback:k,useContext:E,useDebugValue:N,useDeferredValue:D,useEffect:R,useId:T,useImperativeHandle:$,useInsertionEffect:x,useLayoutEffect:O,useMemo:A,useReducer:W,useRef:M,useState:I,useSyncExternalStore:j,useTransition:L,version:P,use:z}=a;n.d(t,{},{Children:r,Component:o,Fragment:l,Profiler:i,PureComponent:c,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u,act:m,cloneElement:p,createContext:h,createElement:f,createFactory:y,createRef:w,default:a,forwardRef:g,isValidElement:v,lazy:b,memo:_,startTransition:S,unstable_act:C,use:z,useCallback:k,useContext:E,useDebugValue:N,useDeferredValue:D,useEffect:R,useId:T,useImperativeHandle:$,useInsertionEffect:x,useLayoutEffect:O,useMemo:A,useReducer:W,useRef:M,useState:I,useSyncExternalStore:j,useTransition:L,version:P})}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.d=(e,t,a)=>{var r=(t,a)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[a]:t[r]})};r(t,"get"),r(a,"value")},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:a,Fragment:r}=(0,n("p").MA)(window.React);var o=n("vD"),l=n("C");let i=window.WallarmDS.Icons.Activity,c=window.WallarmDS.Icons.CircleCheck,s=window.WallarmDS.Icons.Info,d=window.WallarmDS.Icons.LoaderCircle,u=window.WallarmDS.Icons.OctagonAlert,m=window.WallarmDS.Icons.TriangleAlert,p=window.WallarmDS.Button,h=window.WallarmDS.Dialog,f=window.WallarmDS.DialogBody,y=window.WallarmDS.DialogContent,w=window.WallarmDS.DialogHeader,g=window.WallarmDS.DialogTitle,v=window.WallarmDS.DialogTrigger,b=window.WallarmDS.Drawer,_=window.WallarmDS.DrawerBody,S=window.WallarmDS.DrawerContent,C=window.WallarmDS.DrawerHeader,k=window.WallarmDS.DrawerTitle,E=window.WallarmDS.DrawerTrigger,N=window.WallarmDS.HStack,D=window.WallarmDS.VStack,R=window.WallarmDS.ToastActions,T=window.WallarmDS.Toaster,$=window.WallarmDS.useToast,x=(function(e=()=>{}){let t=(...t)=>e(...t);for(let n of["mockName","mockReturnValue","mockResolvedValue","mockImplementation"])t[n]=a=>("mockImplementation"===n?e=a:"mockReturnValue"===n?e=()=>a:"mockResolvedValue"===n&&(e=()=>Promise.resolve(a)),t);return t})().mockName("onToastAction"),O={title:"Messaging/Toast",component:T,parameters:{layout:"centered",docs:{description:{component:"A transient notification fired from `useToast()` — you never place one in the tree, and a single `Toaster` at the app root owns placement, stacking and the timer. Because it disappears, nothing may live only here: reach for a `Dialog` when the reader has to decide, `Banner` for standing account state, and `Alert` for a message that belongs to a region. Actions on a toast stay optional for the same reason."}}}},A=Number.MAX_SAFE_INTEGER,W=()=>{let n,a,r,l,i,h,f,y,w,g,v,b,_,S,C,k,E=(0,o.c)(20),R=$();E[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(c,{}),E[0]=n):n=E[0],E[1]===Symbol.for("react.memo_cache_sentinel")?(a={label:"Success",icon:n,type:"success",title:"Success!",description:"Your changes have been saved successfully."},E[1]=a):a=E[1],E[2]===Symbol.for("react.memo_cache_sentinel")?(r=e(u,{}),E[2]=r):r=E[2],E[3]===Symbol.for("react.memo_cache_sentinel")?(l={label:"Error",icon:r,type:"error",title:"Error occurred",description:"Something went wrong. Please try again."},E[3]=l):l=E[3],E[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(m,{}),E[4]=i):i=E[4],E[5]===Symbol.for("react.memo_cache_sentinel")?(h={label:"Warning",icon:i,type:"warning",title:"Warning",description:"This action cannot be undone."},E[5]=h):h=E[5],E[6]===Symbol.for("react.memo_cache_sentinel")?(f=e(s,{}),E[6]=f):f=E[6],E[7]===Symbol.for("react.memo_cache_sentinel")?(y={label:"Info",icon:f,type:"info",title:"New update available",description:"Version 2.1.0 is now available for download."},E[7]=y):y=E[7],E[8]===Symbol.for("react.memo_cache_sentinel")?(w=e(d,{}),E[8]=w):w=E[8],E[9]===Symbol.for("react.memo_cache_sentinel")?(g={label:"Loading",icon:w,type:"loading",title:"Loading...",description:"Please wait while we process your request."},E[9]=g):g=E[9],E[10]===Symbol.for("react.memo_cache_sentinel")?(v=[a,l,h,y,g,{label:"Default",icon:null,type:"default",title:"Default toast",description:"This is a default toast without an icon."}],E[10]=v):v=E[10];let T=v;return E[11]===Symbol.for("react.memo_cache_sentinel")?(b=e("p",{className:"sb-annotation",children:"timed"}),E[11]=b):b=E[11],E[12]!==R?(_=t(D,{gap:4,align:"start",children:[b,e(N,{gap:8,wrap:"wrap",children:T.map(e=>{let{label:n,icon:a,type:r,title:o,description:l}=e;return t(p,{variant:"outline",color:"neutral",onClick:()=>R.create({title:o,variant:"extended",description:l,type:r}),children:[a,n]},n)})})]}),E[12]=R,E[13]=_):_=E[13],E[14]===Symbol.for("react.memo_cache_sentinel")?(S=e("p",{className:"sb-annotation",children:"static — no timer"}),E[14]=S):S=E[14],E[15]!==R?(C=t(D,{gap:4,align:"start",children:[S,e(N,{gap:8,wrap:"wrap",children:T.map(e=>{let{label:n,icon:a,type:r,title:o,description:l}=e;return t(p,{variant:"secondary",color:"neutral",onClick:()=>R.create({title:o,variant:"extended",description:l,type:r,duration:A}),children:[a,n]},n)})})]}),E[15]=R,E[16]=C):C=E[16],E[17]!==_||E[18]!==C?(k=t(D,{gap:16,align:"start",children:[_,C]}),E[17]=_,E[18]=C,E[19]=k):k=E[19],k},M=[{name:"Basic",story:()=>{let t,n=(0,o.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(W,{}),n[0]=t):t=n[0],t},meta:O},{name:"WithNestedOverlays",story:()=>{let n,a,r,l,i,c,s,d,u=(0,o.c)(13),m=$();u[0]!==m?(n=()=>m.create({title:"Saved",description:"This toast must render above every open overlay.",type:"success",duration:A}),u[0]=m,u[1]=n):n=u[1];let N=n;return u[2]===Symbol.for("react.memo_cache_sentinel")?(a=e(E,{asChild:!0,children:e(p,{variant:"outline",color:"neutral",children:"Open drawer"})}),u[2]=a):a=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(r=e(C,{children:e(k,{children:"[Level 1] Drawer"})}),u[3]=r):r=u[3],u[4]!==N?(l=e(p,{variant:"outline",color:"neutral",onClick:N,children:"Show toast from drawer"}),u[4]=N,u[5]=l):l=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(i=e(v,{asChild:!0,children:e(p,{variant:"ghost",color:"neutral",children:"Open nested dialog"})}),u[6]=i):i=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(c=e(w,{children:e(g,{children:"[Level 2] Dialog"})}),u[7]=c):c=u[7],u[8]!==N?(s=t(h,{children:[i,t(y,{children:[c,e(f,{children:e(p,{variant:"outline",color:"neutral",onClick:N,children:"Show toast from nested dialog"})})]})]}),u[8]=N,u[9]=s):s=u[9],u[10]!==l||u[11]!==s?(d=t(b,{"data-testid":"overlay-drawer",children:[a,t(S,{children:[r,e(_,{children:t(D,{gap:12,align:"start",children:[l,s]})})]})]}),u[10]=l,u[11]=s,u[12]=d):d=u[12],d},meta:O},{name:"UpdateLoadingToSuccess",story:()=>{let n,a,r,i,c,s,d,u,m,h,f,y=(0,o.c)(23),w=$(),g=(0,l.useRef)(void 0);y[0]!==w?(n=e=>{g.current=w.create({title:"Loading",description:"Loading ...",type:"loading",variant:"extended",duration:e})},y[0]=w,y[1]=n):n=y[1];let v=n;y[2]!==w?(a=e=>{g.current&&w.update({id:g.current,title:"Success",description:"Success!",type:"success",variant:"extended",duration:e})},y[2]=w,y[3]=a):a=y[3];let b=a;return y[4]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation",children:"timed"}),y[4]=r):r=y[4],y[5]!==v?(i=e(p,{variant:"outline",color:"neutral",onClick:()=>v(),children:"Create loading toast"}),y[5]=v,y[6]=i):i=y[6],y[7]!==b?(c=e(p,{variant:"outline",color:"neutral",onClick:()=>b(),children:"Update to success"}),y[7]=b,y[8]=c):c=y[8],y[9]!==i||y[10]!==c?(s=t(D,{gap:4,align:"start",children:[r,t(N,{gap:8,wrap:"wrap",children:[i,c]})]}),y[9]=i,y[10]=c,y[11]=s):s=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(d=e("p",{className:"sb-annotation",children:"static — no timer"}),y[12]=d):d=y[12],y[13]!==v?(u=e(p,{variant:"secondary",color:"neutral",onClick:()=>v(A),children:"Create loading toast"}),y[13]=v,y[14]=u):u=y[14],y[15]!==b?(m=e(p,{variant:"secondary",color:"neutral",onClick:()=>b(A),children:"Update to success"}),y[15]=b,y[16]=m):m=y[16],y[17]!==u||y[18]!==m?(h=t(D,{gap:4,align:"start",children:[d,t(N,{gap:8,wrap:"wrap",children:[u,m]})]}),y[17]=u,y[18]=m,y[19]=h):h=y[19],y[20]!==s||y[21]!==h?(f=t(D,{gap:16,align:"start",children:[s,h]}),y[20]=s,y[21]=h,y[22]=f):f=y[22],f},meta:O},{name:"DescriptionKeepsExtended",story:()=>{let n,a,r,l,i,c,s,d,u,m,h,f=(0,o.c)(23),y=$();f[0]!==y?(n=e=>y.create({title:"Failed to mark as True Positive",description:"resolved vector count must not exceed 500000",type:"error",variant:"simple",duration:e}),f[0]=y,f[1]=n):n=f[1];let w=n;f[2]!==y?(a=e=>y.create({title:"Marked 2 attacks",type:"success",variant:"simple",duration:e}),f[2]=y,f[3]=a):a=f[3];let g=a;return f[4]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation",children:"timed"}),f[4]=r):r=f[4],f[5]!==w?(l=e(p,{variant:"outline",color:"neutral",onClick:()=>w(),children:"Simple with description"}),f[5]=w,f[6]=l):l=f[6],f[7]!==g?(i=e(p,{variant:"outline",color:"neutral",onClick:()=>g(),children:"Simple without description"}),f[7]=g,f[8]=i):i=f[8],f[9]!==l||f[10]!==i?(c=t(D,{gap:4,align:"start",children:[r,t(N,{gap:8,wrap:"wrap",children:[l,i]})]}),f[9]=l,f[10]=i,f[11]=c):c=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(s=e("p",{className:"sb-annotation",children:"static — no timer"}),f[12]=s):s=f[12],f[13]!==w?(d=e(p,{variant:"secondary",color:"neutral",onClick:()=>w(A),children:"Simple with description"}),f[13]=w,f[14]=d):d=f[14],f[15]!==g?(u=e(p,{variant:"secondary",color:"neutral",onClick:()=>g(A),children:"Simple without description"}),f[15]=g,f[16]=u):u=f[16],f[17]!==d||f[18]!==u?(m=t(D,{gap:4,align:"start",children:[s,t(N,{gap:8,wrap:"wrap",children:[d,u]})]}),f[17]=d,f[18]=u,f[19]=m):m=f[19],f[20]!==c||f[21]!==m?(h=t(D,{gap:16,align:"start",children:[c,m]}),f[20]=c,f[21]=m,f[22]=h):h=f[22],h},meta:O},{name:"SimpleWithActions",story:()=>{let n,a,r,l,i,c,s,d,u,m,h,f=(0,o.c)(23),y=$();f[0]!==y?(n=t=>y.create({title:"Message sent",type:"success",variant:"simple",duration:t,actions:e(R,{children:e(p,{variant:"secondary",size:"small",color:"neutral-alt",onClick:x,children:"Undo"})})}),f[0]=y,f[1]=n):n=f[1];let w=n;f[2]!==y?(a=n=>y.create({title:"Connection restored",type:"info",variant:"simple",duration:n,actions:t(R,{children:[e(p,{variant:"secondary",size:"small",color:"neutral-alt",onClick:x,children:"View"}),e(p,{variant:"secondary",size:"small",color:"neutral-alt",onClick:x,children:"Dismiss"})]})}),f[2]=y,f[3]=a):a=f[3];let g=a;return f[4]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation",children:"timed"}),f[4]=r):r=f[4],f[5]!==w?(l=e(p,{variant:"outline",color:"neutral",onClick:()=>w(),children:"Simple Toast with Action"}),f[5]=w,f[6]=l):l=f[6],f[7]!==g?(i=e(p,{variant:"outline",color:"neutral",onClick:()=>g(),children:"Simple Toast with Two Actions"}),f[7]=g,f[8]=i):i=f[8],f[9]!==l||f[10]!==i?(c=t(D,{gap:4,align:"start",children:[r,t(N,{gap:8,wrap:"wrap",children:[l,i]})]}),f[9]=l,f[10]=i,f[11]=c):c=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(s=e("p",{className:"sb-annotation",children:"static — no timer"}),f[12]=s):s=f[12],f[13]!==w?(d=e(p,{variant:"secondary",color:"neutral",onClick:()=>w(A),children:"Simple Toast with Action"}),f[13]=w,f[14]=d):d=f[14],f[15]!==g?(u=e(p,{variant:"secondary",color:"neutral",onClick:()=>g(A),children:"Simple Toast with Two Actions"}),f[15]=g,f[16]=u):u=f[16],f[17]!==d||f[18]!==u?(m=t(D,{gap:4,align:"start",children:[s,t(N,{gap:8,wrap:"wrap",children:[d,u]})]}),f[17]=d,f[18]=u,f[19]=m):m=f[19],f[20]!==c||f[21]!==m?(h=t(D,{gap:16,align:"start",children:[c,m]}),f[20]=c,f[21]=m,f[22]=h):h=f[22],h},meta:O},{name:"ExtendedWithActions",story:()=>{let n,a,r,l,i,c,s,d,u,m,h,f=(0,o.c)(23),y=$();f[0]!==y?(n=t=>y.create({title:"Extended Toast",description:"This is an extended toast with default layout.",type:"success",variant:"extended",duration:t,actions:e(R,{children:e(p,{variant:"secondary",size:"small",color:"neutral-alt",onClick:x,children:"Action"})})}),f[0]=y,f[1]=n):n=f[1];let w=n;f[2]!==y?(a=n=>y.create({title:"File processed",description:"Your file has been processed successfully.",type:"info",variant:"extended",duration:n,actions:t(R,{children:[e(p,{variant:"secondary",size:"small",color:"neutral-alt",onClick:x,children:"View"}),e(p,{variant:"secondary",size:"small",color:"neutral-alt",onClick:x,children:"Download"})]})}),f[2]=y,f[3]=a):a=f[3];let g=a;return f[4]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation",children:"timed"}),f[4]=r):r=f[4],f[5]!==w?(l=e(p,{variant:"outline",color:"neutral",onClick:()=>w(),children:"Extended Toast with Action"}),f[5]=w,f[6]=l):l=f[6],f[7]!==g?(i=e(p,{variant:"outline",color:"neutral",onClick:()=>g(),children:"Extended Toast with Two Actions"}),f[7]=g,f[8]=i):i=f[8],f[9]!==l||f[10]!==i?(c=t(D,{gap:4,align:"start",children:[r,t(N,{gap:8,wrap:"wrap",children:[l,i]})]}),f[9]=l,f[10]=i,f[11]=c):c=f[11],f[12]===Symbol.for("react.memo_cache_sentinel")?(s=e("p",{className:"sb-annotation",children:"static — no timer"}),f[12]=s):s=f[12],f[13]!==w?(d=e(p,{variant:"secondary",color:"neutral",onClick:()=>w(A),children:"Extended Toast with Action"}),f[13]=w,f[14]=d):d=f[14],f[15]!==g?(u=e(p,{variant:"secondary",color:"neutral",onClick:()=>g(A),children:"Extended Toast with Two Actions"}),f[15]=g,f[16]=u):u=f[16],f[17]!==d||f[18]!==u?(m=t(D,{gap:4,align:"start",children:[s,t(N,{gap:8,wrap:"wrap",children:[d,u]})]}),f[17]=d,f[18]=u,f[19]=m):m=f[19],f[20]!==c||f[21]!==m?(h=t(D,{gap:16,align:"start",children:[c,m]}),f[20]=c,f[21]=m,f[22]=h):h=f[22],h},meta:O},{name:"LongText",story:()=>{let n,a,r,l,i,c,s,d,u,m,h,f,y=(0,o.c)(24),w=$();y[0]===Symbol.for("react.memo_cache_sentinel")?(n="This is a very very very long title that will be truncated after a certain number of lines".repeat(4),y[0]=n):n=y[0];let g=n,v="This is a very long description that will be truncated after a certain number of lines. Hover over the description to see the full text in a tooltip. "+"This allows for better space management while still providing access to all the information.".repeat(2);y[1]!==w?(a=e=>w.create({title:"This is a very very very long title that will be truncated after a certain number of lines",variant:"simple",type:"info",duration:e}),y[1]=w,y[2]=a):a=y[2];let b=a;y[3]!==w?(r=e=>w.create({title:g,variant:"extended",description:v,type:"info",duration:e}),y[3]=w,y[4]=r):r=y[4];let _=r;return y[5]===Symbol.for("react.memo_cache_sentinel")?(l=e("p",{className:"sb-annotation",children:"timed"}),y[5]=l):l=y[5],y[6]!==b?(i=e(p,{variant:"outline",color:"neutral",onClick:()=>b(),children:"Simple with long title"}),y[6]=b,y[7]=i):i=y[7],y[8]!==_?(c=e(p,{variant:"outline",color:"neutral",onClick:()=>_(),children:"Extended with long text"}),y[8]=_,y[9]=c):c=y[9],y[10]!==i||y[11]!==c?(s=t(D,{gap:4,align:"start",children:[l,t(N,{gap:8,wrap:"wrap",children:[i,c]})]}),y[10]=i,y[11]=c,y[12]=s):s=y[12],y[13]===Symbol.for("react.memo_cache_sentinel")?(d=e("p",{className:"sb-annotation",children:"static — no timer"}),y[13]=d):d=y[13],y[14]!==b?(u=e(p,{variant:"secondary",color:"neutral",onClick:()=>b(A),children:"Simple with long title"}),y[14]=b,y[15]=u):u=y[15],y[16]!==_?(m=e(p,{variant:"secondary",color:"neutral",onClick:()=>_(A),children:"Extended with long text"}),y[16]=_,y[17]=m):m=y[17],y[18]!==u||y[19]!==m?(h=t(D,{gap:4,align:"start",children:[d,t(N,{gap:8,wrap:"wrap",children:[u,m]})]}),y[18]=u,y[19]=m,y[20]=h):h=y[20],y[21]!==h||y[22]!==s?(f=t(D,{gap:16,align:"start",children:[s,h]}),y[21]=h,y[22]=s,y[23]=f):f=y[23],f},meta:O},{name:"WithoutCloseButton",story:()=>{let n,a,r,l,i,c,s=(0,o.c)(11),d=$();s[0]!==d?(n=e=>d.create({title:"Non-closable toast",variant:"extended",description:"This toast cannot be closed manually.",type:"info",closable:!1,duration:e}),s[0]=d,s[1]=n):n=s[1];let u=n;return s[2]===Symbol.for("react.memo_cache_sentinel")?(a=e("p",{className:"sb-annotation",children:"timed"}),s[2]=a):a=s[2],s[3]!==u?(r=t(D,{gap:4,align:"start",children:[a,e(N,{gap:8,wrap:"wrap",children:e(p,{variant:"outline",color:"neutral",onClick:()=>u(),children:"Non-closable Toast"})})]}),s[3]=u,s[4]=r):r=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(l=e("p",{className:"sb-annotation",children:"static — no timer"}),s[5]=l):l=s[5],s[6]!==u?(i=t(D,{gap:4,align:"start",children:[l,e(N,{gap:8,wrap:"wrap",children:e(p,{variant:"secondary",color:"neutral",onClick:()=>u(A),children:"Non-closable Toast"})})]}),s[6]=u,s[7]=i):i=s[7],s[8]!==r||s[9]!==i?(c=t(D,{gap:16,align:"start",children:[r,i]}),s[8]=r,s[9]=i,s[10]=c):c=s[10],c},meta:O},{name:"CustomIcon",story:()=>{let n,a,r,l,c,s,d,u,m,h,f,y=(0,o.c)(23),w=$();y[0]!==w?(n=t=>w.create({title:"Custom icon toast",variant:"extended",description:"This toast uses a custom icon that overrides the type-based icon.",type:"success",icon:e(i,{size:"lg",className:"text-purple-500"}),duration:t}),y[0]=w,y[1]=n):n=y[1];let g=n;y[2]!==w?(a=t=>w.create({title:"Custom icon with action",variant:"extended",description:"You can use any icon component as a custom icon.",type:"info",icon:e(i,{}),duration:t}),y[2]=w,y[3]=a):a=y[3];let v=a;return y[4]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation",children:"timed"}),y[4]=r):r=y[4],y[5]!==g?(l=e(p,{variant:"outline",color:"neutral",onClick:()=>g(),children:"Custom Icon with own color"}),y[5]=g,y[6]=l):l=y[6],y[7]!==v?(c=e(p,{variant:"outline",color:"neutral",onClick:()=>v(),children:"Custom Icon without color"}),y[7]=v,y[8]=c):c=y[8],y[9]!==l||y[10]!==c?(s=t(D,{gap:4,align:"start",children:[r,t(N,{gap:8,wrap:"wrap",children:[l,c]})]}),y[9]=l,y[10]=c,y[11]=s):s=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(d=e("p",{className:"sb-annotation",children:"static — no timer"}),y[12]=d):d=y[12],y[13]!==g?(u=e(p,{variant:"secondary",color:"neutral",onClick:()=>g(A),children:"Custom Icon with own color"}),y[13]=g,y[14]=u):u=y[14],y[15]!==v?(m=e(p,{variant:"secondary",color:"neutral",onClick:()=>v(A),children:"Custom Icon without color"}),y[15]=v,y[16]=m):m=y[16],y[17]!==u||y[18]!==m?(h=t(D,{gap:4,align:"start",children:[d,t(N,{gap:8,wrap:"wrap",children:[u,m]})]}),y[17]=u,y[18]=m,y[19]=h):h=y[19],y[20]!==s||y[21]!==h?(f=t(D,{gap:16,align:"start",children:[s,h]}),y[20]=s,y[21]=h,y[22]=f):f=y[22],f},meta:O},{name:"CustomIconColors",story:()=>{let t,n,a,r,l,c=(0,o.c)(6),s=$();c[0]===Symbol.for("react.memo_cache_sentinel")?(t={name:"default",label:"Default",type:"default"},c[0]=t):t=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(n={name:"loading",label:"Loading",type:"loading"},c[1]=n):n=c[1],c[2]===Symbol.for("react.memo_cache_sentinel")?(a={name:"info",label:"Info",type:"info"},c[2]=a):a=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(r=[t,n,a,{name:"own-color",label:"Own color",type:"success"}],c[3]=r):r=c[3];let d=r;return c[4]!==s?(l=e(N,{gap:8,wrap:"wrap",children:d.map(t=>{let{name:n,label:a,type:r}=t;return e(p,{variant:"outline",color:"neutral","data-testid":`custom-icon-trigger-${n}`,onClick:()=>s.create({id:`custom-icon-${n}`,title:`${a} custom icon`,type:r,duration:A,icon:e(i,{"data-testid":`custom-icon-${n}-svg`,className:"own-color"===n?"text-purple-500":void 0})}),children:a},n)})}),c[4]=s,c[5]=l):l=c[5],l},meta:O}];function I({entry:e}){let{story:t,meta:n}=e,a={...n.args,...t.args},r="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,o=()=>l.default.createElement(r,a),i={args:a,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=o;o=()=>e(t,i)}return l.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},l.default.createElement("h2",{className:"text-sm mb-12"},e.name),l.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(l.default.createElement(window.WallarmDS.Root,null,M.map((e,t)=>l.default.createElement(I,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
A button that stays pressed — for something the reader flips in place and can see the result of, like pinning a panel or holding a filter on. Reach for `Switch` when it belongs in a settings form, and `SegmentedControl` when one of several options has to win.
|
|
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
|
+
| `title` | `string \| undefined` | no | — | |
|
|
10
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | `false` | |
|
|
12
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `id` | `string \| undefined` | no | — | |
|
|
14
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
15
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
16
|
+
| `color` | `"brand" \| "neutral"` | no | `brand` | |
|
|
17
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
18
|
+
| `type` | `"button" \| "submit" \| "reset" \| undefined` | no | — | |
|
|
19
|
+
| `disabled` | `boolean \| undefined` | no | `false` | |
|
|
20
|
+
| `name` | `string \| undefined` | no | — | |
|
|
21
|
+
| `value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
22
|
+
| `as-child` | `boolean \| undefined` | no | `false` | |
|
|
23
|
+
| `size` | `"small" \| "medium" \| "large" \| "inline-edit"` | no | `large` | |
|
|
24
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
25
|
+
| `loading` | `boolean` | no | `false` | |
|
|
26
|
+
| `as` | `C \| undefined` | no | — | |
|
|
27
|
+
| `full-width` | `boolean` | no | — | |
|
|
28
|
+
| `variant` | `"outline" \| "ghost"` | no | `outline` | |
|
|
29
|
+
| `active` | `boolean` | no | — | |
|
|
30
|
+
| `on-toggle` | `((active: boolean, event: MouseEvent<HTMLButtonElement, MouseEvent>) => void) \| undefined` | no | — | |
|
|
31
|
+
|
|
32
|
+
## Stories
|
|
33
|
+
|
|
34
|
+
### Basic
|
|
35
|
+
|
|
36
|
+
Uncontrolled: the button tracks its own pressed state from `defaultValue`, and `onToggle`
|
|
37
|
+
hands you the next value.
|
|
38
|
+
|
|
39
|
+
Source: ToggleButton/ToggleButton.stories.tsx#Basic
|
|
40
|
+
|
|
41
|
+
### VariantsAndColors
|
|
42
|
+
|
|
43
|
+
`outline` reads as a control that is always there; `ghost` disappears until needed, for
|
|
44
|
+
toolbars. `brand` tints the pressed state, `neutral` keeps it grey for when several toggles sit
|
|
45
|
+
together and colour would shout.
|
|
46
|
+
|
|
47
|
+
Source: ToggleButton/ToggleButton.stories.tsx#VariantsAndColors
|
|
48
|
+
|
|
49
|
+
### Sizes
|
|
50
|
+
|
|
51
|
+
Three heights matching `Button`, so a toggle can sit in a row of them without breaking
|
|
52
|
+
the line.
|
|
53
|
+
|
|
54
|
+
Source: ToggleButton/ToggleButton.stories.tsx#Sizes
|
|
55
|
+
|
|
56
|
+
### Disabled
|
|
57
|
+
|
|
58
|
+
Both states while disabled. A disabled toggle still shows whether it is on, which is the
|
|
59
|
+
point — say elsewhere why it cannot be changed.
|
|
60
|
+
|
|
61
|
+
Source: ToggleButton/ToggleButton.stories.tsx#Disabled
|
|
62
|
+
|
|
63
|
+
### Loading
|
|
64
|
+
|
|
65
|
+
For a toggle whose effect is a request. It keeps the label's footprint and disables itself,
|
|
66
|
+
so the pressed state does not flicker while the answer is in flight.
|
|
67
|
+
|
|
68
|
+
Source: ToggleButton/ToggleButton.stories.tsx#Loading
|
|
69
|
+
|
|
70
|
+
### Icons
|
|
71
|
+
|
|
72
|
+
An icon before or after the label. Pressed state is carried by the whole button, not the
|
|
73
|
+
icon, so don't swap the icon to signal it.
|
|
74
|
+
|
|
75
|
+
Source: ToggleButton/ToggleButton.stories.tsx#Icons
|
|
76
|
+
|
|
77
|
+
### IconOnly
|
|
78
|
+
|
|
79
|
+
The toolbar case: an icon alone squares the button off. `aria-label` is doing all the
|
|
80
|
+
naming here, so it is not optional.
|
|
81
|
+
|
|
82
|
+
Source: ToggleButton/ToggleButton.stories.tsx#IconOnly
|
|
83
|
+
|
|
84
|
+
### Controlled
|
|
85
|
+
|
|
86
|
+
Pass `active` and own the state when something else has to move with it — a panel opening,
|
|
87
|
+
a filter applying. Once `active` is set the button stops tracking itself.
|
|
88
|
+
|
|
89
|
+
Source: ToggleButton/ToggleButton.stories.tsx#Controlled
|
|
90
|
+
|
|
91
|
+
## Story sources
|
|
92
|
+
|
|
93
|
+
### ToggleButton/ToggleButton.stories.tsx
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
import { useState } from 'react';
|
|
97
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
98
|
+
import { ChevronLeft, ChevronRight } from '../../icons';
|
|
99
|
+
import { HStack, VStack } from '../Stack';
|
|
100
|
+
import { ToggleButton } from './ToggleButton';
|
|
101
|
+
|
|
102
|
+
const DESCRIPTION = [
|
|
103
|
+
'A button that stays pressed — for something the reader flips in place and can see the result of, like pinning a panel or holding a filter on.',
|
|
104
|
+
'Reach for `Switch` when it belongs in a settings form, and `SegmentedControl` when one of several options has to win.',
|
|
105
|
+
].join(' ');
|
|
106
|
+
|
|
107
|
+
const meta = {
|
|
108
|
+
title: 'Actions/ToggleButton',
|
|
109
|
+
component: ToggleButton,
|
|
110
|
+
parameters: {
|
|
111
|
+
layout: 'centered',
|
|
112
|
+
docs: {
|
|
113
|
+
description: {
|
|
114
|
+
component: DESCRIPTION,
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
argTypes: {
|
|
120
|
+
variant: {
|
|
121
|
+
control: 'select',
|
|
122
|
+
options: ['outline', 'ghost'],
|
|
123
|
+
},
|
|
124
|
+
color: {
|
|
125
|
+
control: 'select',
|
|
126
|
+
options: ['brand', 'neutral'],
|
|
127
|
+
},
|
|
128
|
+
size: {
|
|
129
|
+
control: 'select',
|
|
130
|
+
options: ['small', 'medium', 'large'],
|
|
131
|
+
},
|
|
132
|
+
active: {
|
|
133
|
+
control: 'boolean',
|
|
134
|
+
},
|
|
135
|
+
loading: {
|
|
136
|
+
control: 'boolean',
|
|
137
|
+
},
|
|
138
|
+
disabled: {
|
|
139
|
+
control: 'boolean',
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
} satisfies Meta<typeof ToggleButton>;
|
|
143
|
+
|
|
144
|
+
export default meta;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Uncontrolled: the button tracks its own pressed state from `defaultValue`, and `onToggle`
|
|
148
|
+
* hands you the next value.
|
|
149
|
+
*/
|
|
150
|
+
export const Basic: StoryFn<typeof meta> = ({ ...args }) => (
|
|
151
|
+
<ToggleButton {...args} data-testid='toggle-button'>
|
|
152
|
+
Toggle Me
|
|
153
|
+
</ToggleButton>
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* `outline` reads as a control that is always there; `ghost` disappears until needed, for
|
|
158
|
+
* toolbars. `brand` tints the pressed state, `neutral` keeps it grey for when several toggles sit
|
|
159
|
+
* together and colour would shout.
|
|
160
|
+
*/
|
|
161
|
+
export const VariantsAndColors: StoryFn<typeof meta> = ({ ...args }) => (
|
|
162
|
+
<VStack>
|
|
163
|
+
<span className='sb-annotation'>Brand</span>
|
|
164
|
+
<HStack>
|
|
165
|
+
<ToggleButton {...args} variant='outline' color='brand'>
|
|
166
|
+
Outline
|
|
167
|
+
</ToggleButton>
|
|
168
|
+
<ToggleButton {...args} variant='ghost' color='brand'>
|
|
169
|
+
Ghost
|
|
170
|
+
</ToggleButton>
|
|
171
|
+
</HStack>
|
|
172
|
+
|
|
173
|
+
<span className='sb-annotation'>Neutral</span>
|
|
174
|
+
<HStack>
|
|
175
|
+
<ToggleButton variant='outline' color='neutral'>
|
|
176
|
+
Outline
|
|
177
|
+
</ToggleButton>
|
|
178
|
+
<ToggleButton variant='ghost' color='neutral'>
|
|
179
|
+
Ghost
|
|
180
|
+
</ToggleButton>
|
|
181
|
+
</HStack>
|
|
182
|
+
</VStack>
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Three heights matching `Button`, so a toggle can sit in a row of them without breaking
|
|
187
|
+
* the line.
|
|
188
|
+
*/
|
|
189
|
+
export const Sizes: StoryFn<typeof meta> = ({ ...args }) => (
|
|
190
|
+
<HStack align='center'>
|
|
191
|
+
<ToggleButton {...args} size='small'>
|
|
192
|
+
Small
|
|
193
|
+
</ToggleButton>
|
|
194
|
+
<ToggleButton {...args} size='medium'>
|
|
195
|
+
Medium
|
|
196
|
+
</ToggleButton>
|
|
197
|
+
<ToggleButton {...args} size='large'>
|
|
198
|
+
Large
|
|
199
|
+
</ToggleButton>
|
|
200
|
+
</HStack>
|
|
201
|
+
);
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Both states while disabled. A disabled toggle still shows whether it is on, which is the
|
|
205
|
+
* point — say elsewhere why it cannot be changed.
|
|
206
|
+
*/
|
|
207
|
+
export const Disabled: StoryFn<typeof meta> = ({ ...args }) => (
|
|
208
|
+
<HStack>
|
|
209
|
+
<ToggleButton {...args} disabled>
|
|
210
|
+
Disabled
|
|
211
|
+
</ToggleButton>
|
|
212
|
+
<ToggleButton {...args} disabled active>
|
|
213
|
+
Disabled Active
|
|
214
|
+
</ToggleButton>
|
|
215
|
+
<ToggleButton {...args} disabled variant='ghost'>
|
|
216
|
+
Ghost Disabled
|
|
217
|
+
</ToggleButton>
|
|
218
|
+
</HStack>
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* For a toggle whose effect is a request. It keeps the label's footprint and disables itself,
|
|
223
|
+
* so the pressed state does not flicker while the answer is in flight.
|
|
224
|
+
*/
|
|
225
|
+
export const Loading: StoryFn<typeof meta> = ({ ...args }) => (
|
|
226
|
+
<HStack>
|
|
227
|
+
<ToggleButton {...args} loading>
|
|
228
|
+
Loading
|
|
229
|
+
</ToggleButton>
|
|
230
|
+
<ToggleButton {...args} loading active>
|
|
231
|
+
Loading Active
|
|
232
|
+
</ToggleButton>
|
|
233
|
+
<ToggleButton {...args} loading variant='ghost'>
|
|
234
|
+
Ghost Loading
|
|
235
|
+
</ToggleButton>
|
|
236
|
+
</HStack>
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* An icon before or after the label. Pressed state is carried by the whole button, not the
|
|
241
|
+
* icon, so don't swap the icon to signal it.
|
|
242
|
+
*/
|
|
243
|
+
export const Icons: StoryFn<typeof meta> = ({ ...args }) => (
|
|
244
|
+
<HStack>
|
|
245
|
+
<ToggleButton {...args}>
|
|
246
|
+
<ChevronLeft />
|
|
247
|
+
Left icon
|
|
248
|
+
</ToggleButton>
|
|
249
|
+
<ToggleButton {...args}>
|
|
250
|
+
Right icon
|
|
251
|
+
<ChevronRight />
|
|
252
|
+
</ToggleButton>
|
|
253
|
+
<ToggleButton {...args}>
|
|
254
|
+
<ChevronLeft />
|
|
255
|
+
Both icons
|
|
256
|
+
<ChevronRight />
|
|
257
|
+
</ToggleButton>
|
|
258
|
+
</HStack>
|
|
259
|
+
);
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The toolbar case: an icon alone squares the button off. `aria-label` is doing all the
|
|
263
|
+
* naming here, so it is not optional.
|
|
264
|
+
*/
|
|
265
|
+
export const IconOnly: StoryFn<typeof meta> = ({ ...args }) => (
|
|
266
|
+
<HStack>
|
|
267
|
+
<ToggleButton {...args} aria-label='Toggle option 1'>
|
|
268
|
+
<ChevronRight />
|
|
269
|
+
</ToggleButton>
|
|
270
|
+
<ToggleButton {...args} loading aria-label='Toggle option 2'>
|
|
271
|
+
<ChevronRight />
|
|
272
|
+
</ToggleButton>
|
|
273
|
+
<ToggleButton {...args} disabled aria-label='Toggle option 3'>
|
|
274
|
+
<ChevronRight />
|
|
275
|
+
</ToggleButton>
|
|
276
|
+
</HStack>
|
|
277
|
+
);
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Pass `active` and own the state when something else has to move with it — a panel opening,
|
|
281
|
+
* a filter applying. Once `active` is set the button stops tracking itself.
|
|
282
|
+
*/
|
|
283
|
+
export const Controlled: StoryFn<typeof meta> = ({ ...args }) => {
|
|
284
|
+
const [active, setActive] = useState<boolean>(false);
|
|
285
|
+
|
|
286
|
+
return (
|
|
287
|
+
<ToggleButton {...args} aria-label='Toggle option 1' active={active} onToggle={setActive}>
|
|
288
|
+
Controlled
|
|
289
|
+
</ToggleButton>
|
|
290
|
+
);
|
|
291
|
+
};
|
|
292
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,n){let r,o;/**
|
|
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,a,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,p=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of u(t))d.call(e,o)||o===n||c(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e},m={},h={$dispatcherGuard:()=>O,$makeReadOnly:()=>k,$reset:()=>M,$structuralCheck:()=>I,c:()=>R,clearRenderCounterRegistry:()=>T,renderCounterRegistry:()=>D,useRenderCounter:()=>j};for(var y in h)c(m,y,{get:h[y],enumerable:!0});e.exports=p(c({},"__esModule",{value:!0}),m);var g=(o=null!=(r=n("C"))?i(f(r)):{},p(r&&r.__esModule?o:c(o,"default",{value:r,enumerable:!0}),r)),{useRef:b,useEffect:_,isValidElement:v}=g,w=null!=(l=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?l:g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),R="function"==typeof(null==(a=g.__COMPILER_RUNTIME)?void 0:a.c)?g.__COMPILER_RUNTIME.c:function(e){return g.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=S;return t[S]=!0,t},[])},E={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{E[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 $=null;function N(e){return w.ReactCurrentDispatcher.current=e,w.ReactCurrentDispatcher.current}E.useMemoCache=e=>{if(null!=$)return $.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var C=[];function O(e){let t=w.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&($=t),t===E)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");N(E)}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&&($=null),N(e)}else if(2===e)C.push(t),N($);else if(3===e){let e=C.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");N(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function M(e){for(let t=0;t<e.length;t++)e[t]=S}function k(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var D=new Map;function T(){for(let e of D.values())e.forEach(e=>{e.count=0})}function j(e){let t=b(null);null!=t.current&&(t.current.count+=1),_(()=>{if(null==t.current){let n,r={count:0};null==(n=D.get(e))&&(n=new Set,D.set(e,n)),n.add(r),t.current=r}return()=>{var n;let r;null!==t.current&&(n=t.current,null!=(r=D.get(e))&&r.delete(n))}})}var A=new Set;function I(e,t,n,r,o,l){function a(e,t,a,i){let c=`${r}:${l} [${o}] ${n}${a} changed from ${e} to ${t} at depth ${i}`;A.has(c)||(A.add(c),console.error(c))}!function e(t,n,r,o){if(!(o>2)){if(t!==n)if(typeof t!=typeof n)a(`type ${typeof t}`,`type ${typeof n}`,r,o);else if("object"==typeof t){let l=Array.isArray(t),i=Array.isArray(n);if(null===t&&null!==n)a("null",`type ${typeof n}`,r,o);else if(null===n)a(`type ${typeof t}`,"null",r,o);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,o);else for(let[l,i]of t)n.has(l)?e(i,n.get(l),`${r}.get(${l})`,o+1):a(`Map instance with key ${l}`,`Map instance without key ${l}`,r,o);else a("Map instance","other value",r,o);else if(n instanceof Map)a("other value","Map instance",r,o);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,o);else for(let e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,o);else a("Set instance","other value",r,o);else if(n instanceof Set)a("other value","Set instance",r,o);else if(l||i)if(l!==i)a(`type ${l?"array":"object"}`,`type ${i?"array":"object"}`,r,o);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,o);else for(let l=0;l<t.length;l++)e(t[l],n[l],`${r}[${l}]`,o+1);else if(v(t)||v(n))v(t)!==v(n)?a(`type ${v(t)?"React element":"object"}`,`type ${v(n)?"React element":"object"}`,r,o):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,r,o):e(t.props,n.props,`[props of ${r}]`,o+1);else{for(let e in n)e in t||a(`object without key ${e}`,`object with key ${e}`,r,o);for(let l in t)l in n?e(t[l],n[l],`${r}.${l}`,o+1):a(`object with key ${l}`,`object without key ${l}`,r,o)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,o):t!==n&&a(t,n,r,o)}}}(e,t,"",0)}},p(e,t,n){let r=new WeakMap,o=new WeakMap;function l(e,t,n){let l=t,a=n;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!=a.ref&&!l.prototype?.isReactComponent){let t=l,n=r.get(e);n||(n=new WeakMap,r.set(e,n));let o=n.get(t);o||((o=e.forwardRef((e,n)=>t({...e,ref:n}))).displayName=t.displayName??t.name,n.set(t,o)),l=o}if("string"==typeof l&&"boolean"==typeof a.inert&&((a={...a}).inert?a.inert="":delete a.inert),"string"==typeof l)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in a&&(a={...a,[t]:a[e]},delete a[e]);return"string"==typeof l&&null!=a.ref&&(l=function(e,t){let n=o.get(e);n||(n=new Map,o.set(e,n));let r=n.get(t);if(r)return r;let l=e.forwardRef((n,r)=>{let o=e.useRef(null);if(!o.current||o.current.original!==r){let e;o.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:o.current.callback})});return l.displayName=`CanvasHost(${t})`,n.set(t,l),l}(e,l)),{type:l,props:a}}function a(e){let t=(t,n,r)=>{let o=l(e,t,n??{});return e.createElement(o.type,void 0===r?o.props:{...o.props,key:r})};return{jsx:t,jsxs:(t,n,r)=>{let o=l(e,t,n??{}),{children:a,...i}=o.props;return e.createElement(o.type,void 0===r?i:{...i,key:r},...Array.isArray(a)?a:[a])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,n,...r)=>{let o=l(e,t,n??{});return e.createElement(o.type,o.props,...r)},cloneElement:(t,n,...r)=>{let o=e.cloneElement(t,n??void 0,...r),a=o.ref,i=l(e,o.type,{...o.props,ref:a});return i.type===o.type&&"string"!=typeof o.type?o:e.createElement(i.type,{...i.props,key:o.key})}}}n.d(t,{MA:()=>a,YJ:()=>i})},C(e,t,n){n.r(t);let r=(0,n("p").YJ)(window.React),{Children:o,Component:l,Fragment:a,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:f,act:d,cloneElement:p,createContext:m,createElement:h,createFactory:y,createRef:g,forwardRef:b,isValidElement:_,lazy:v,memo:w,startTransition:S,unstable_act:R,useCallback:E,useContext:$,useDebugValue:N,useDeferredValue:C,useEffect:O,useId:M,useImperativeHandle:k,useInsertionEffect:D,useLayoutEffect:T,useMemo:j,useReducer:A,useRef:I,useState:x,useSyncExternalStore:L,useTransition:z,version:P,use:W}=r;n.d(t,{},{Children:o,Component:l,Fragment:a,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:f,act:d,cloneElement:p,createContext:m,createElement:h,createFactory:y,createRef:g,default:r,forwardRef:b,isValidElement:_,lazy:v,memo:w,startTransition:S,unstable_act:R,use:W,useCallback:E,useContext:$,useDebugValue:N,useDeferredValue:C,useEffect:O,useId:M,useImperativeHandle:k,useInsertionEffect:D,useLayoutEffect:T,useMemo:j,useReducer:A,useRef:I,useState:x,useSyncExternalStore:L,useTransition:z,version:P})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,n),l.exports}n.d=(e,t,r)=>{var o=(t,r)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,[r]:t[o]})};o(t,"get"),o(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:o}=(0,n("p").MA)(window.React);var l=n("vD"),a=n("C");let i=window.WallarmDS.Icons.ChevronLeft,c=window.WallarmDS.Icons.ChevronRight,s=window.WallarmDS.HStack,u=window.WallarmDS.VStack,f=window.WallarmDS.ToggleButton,d={title:"Actions/ToggleButton",component:f,parameters:{layout:"centered",docs:{description:{component:"A button that stays pressed — for something the reader flips in place and can see the result of, like pinning a panel or holding a filter on. Reach for `Switch` when it belongs in a settings form, and `SegmentedControl` when one of several options has to win."}}},argTypes:{variant:{control:"select",options:["outline","ghost"]},color:{control:"select",options:["brand","neutral"]},size:{control:"select",options:["small","medium","large"]},active:{control:"boolean"},loading:{control:"boolean"},disabled:{control:"boolean"}}},p=[{name:"Basic",story:t=>{let n,r,o=(0,l.c)(4);return o[0]!==t?({...n}=t,o[0]=t,o[1]=n):n=o[1],o[2]!==n?(r=e(f,{...n,"data-testid":"toggle-button",children:"Toggle Me"}),o[2]=n,o[3]=r):r=o[3],r},meta:d},{name:"VariantsAndColors",story:n=>{let r,o,a,i,c,d,p=(0,l.c)(9);return p[0]!==n?({...r}=n,p[0]=n,p[1]=r):r=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(o=e("span",{className:"sb-annotation",children:"Brand"}),p[2]=o):o=p[2],p[3]!==r?(a=t(s,{children:[e(f,{...r,variant:"outline",color:"brand",children:"Outline"}),e(f,{...r,variant:"ghost",color:"brand",children:"Ghost"})]}),p[3]=r,p[4]=a):a=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(i=e("span",{className:"sb-annotation",children:"Neutral"}),p[5]=i):i=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(c=t(s,{children:[e(f,{variant:"outline",color:"neutral",children:"Outline"}),e(f,{variant:"ghost",color:"neutral",children:"Ghost"})]}),p[6]=c):c=p[6],p[7]!==a?(d=t(u,{children:[o,a,i,c]}),p[7]=a,p[8]=d):d=p[8],d},meta:d},{name:"Sizes",story:n=>{let r,o,a=(0,l.c)(4);return a[0]!==n?({...r}=n,a[0]=n,a[1]=r):r=a[1],a[2]!==r?(o=t(s,{align:"center",children:[e(f,{...r,size:"small",children:"Small"}),e(f,{...r,size:"medium",children:"Medium"}),e(f,{...r,size:"large",children:"Large"})]}),a[2]=r,a[3]=o):o=a[3],o},meta:d},{name:"Disabled",story:n=>{let r,o,a=(0,l.c)(4);return a[0]!==n?({...r}=n,a[0]=n,a[1]=r):r=a[1],a[2]!==r?(o=t(s,{children:[e(f,{...r,disabled:!0,children:"Disabled"}),e(f,{...r,disabled:!0,active:!0,children:"Disabled Active"}),e(f,{...r,disabled:!0,variant:"ghost",children:"Ghost Disabled"})]}),a[2]=r,a[3]=o):o=a[3],o},meta:d},{name:"Loading",story:n=>{let r,o,a=(0,l.c)(4);return a[0]!==n?({...r}=n,a[0]=n,a[1]=r):r=a[1],a[2]!==r?(o=t(s,{children:[e(f,{...r,loading:!0,children:"Loading"}),e(f,{...r,loading:!0,active:!0,children:"Loading Active"}),e(f,{...r,loading:!0,variant:"ghost",children:"Ghost Loading"})]}),a[2]=r,a[3]=o):o=a[3],o},meta:d},{name:"Icons",story:n=>{let r,o,a,u,d,p,m,h,y,g=(0,l.c)(16);return g[0]!==n?({...r}=n,g[0]=n,g[1]=r):r=g[1],g[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(i,{}),g[2]=o):o=g[2],g[3]!==r?(a=t(f,{...r,children:[o,"Left icon"]}),g[3]=r,g[4]=a):a=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(u=e(c,{}),g[5]=u):u=g[5],g[6]!==r?(d=t(f,{...r,children:["Right icon",u]}),g[6]=r,g[7]=d):d=g[7],g[8]===Symbol.for("react.memo_cache_sentinel")?(p=e(i,{}),g[8]=p):p=g[8],g[9]===Symbol.for("react.memo_cache_sentinel")?(m=e(c,{}),g[9]=m):m=g[9],g[10]!==r?(h=t(f,{...r,children:[p,"Both icons",m]}),g[10]=r,g[11]=h):h=g[11],g[12]!==a||g[13]!==d||g[14]!==h?(y=t(s,{children:[a,d,h]}),g[12]=a,g[13]=d,g[14]=h,g[15]=y):y=g[15],y},meta:d},{name:"IconOnly",story:n=>{let r,o,a,i,u,d,p,m,h=(0,l.c)(15);return h[0]!==n?({...r}=n,h[0]=n,h[1]=r):r=h[1],h[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(c,{}),h[2]=o):o=h[2],h[3]!==r?(a=e(f,{...r,"aria-label":"Toggle option 1",children:o}),h[3]=r,h[4]=a):a=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(i=e(c,{}),h[5]=i):i=h[5],h[6]!==r?(u=e(f,{...r,loading:!0,"aria-label":"Toggle option 2",children:i}),h[6]=r,h[7]=u):u=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(d=e(c,{}),h[8]=d):d=h[8],h[9]!==r?(p=e(f,{...r,disabled:!0,"aria-label":"Toggle option 3",children:d}),h[9]=r,h[10]=p):p=h[10],h[11]!==a||h[12]!==u||h[13]!==p?(m=t(s,{children:[a,u,p]}),h[11]=a,h[12]=u,h[13]=p,h[14]=m):m=h[14],m},meta:d},{name:"Controlled",story:t=>{let n,r,o=(0,l.c)(5);o[0]!==t?({...n}=t,o[0]=t,o[1]=n):n=o[1];let[i,c]=(0,a.useState)(!1);return o[2]!==i||o[3]!==n?(r=e(f,{...n,"aria-label":"Toggle option 1",active:i,onToggle:c,children:"Controlled"}),o[2]=i,o[3]=n,o[4]=r):r=o[4],r},meta:d}];function m({entry:e}){let{story:t,meta:n}=e,r={...n.args,...t.args},o="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,l=()=>a.default.createElement(o,r),i={args:r,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=l;l=()=>e(t,i)}return a.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},a.default.createElement("h2",{className:"text-sm mb-12"},e.name),a.default.createElement(l))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(a.default.createElement(window.WallarmDS.Root,null,p.map((e,t)=>a.default.createElement(m,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
A short label on hover or focus, for naming something the interface cannot afford to spell out — an icon button, a truncated value. It holds no interactive content and cannot be reached by keyboard beyond its trigger, so anything the reader needs to click belongs in a `Popover`.
|
|
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
|
+
| `open` | `boolean \| undefined` | no | — | |
|
|
10
|
+
| `default-open` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `on-open-change` | `((open: boolean) => void) \| undefined` | no | — | |
|
|
12
|
+
| `open-delay` | `number \| undefined` | no | — | |
|
|
13
|
+
| `close-delay` | `number \| undefined` | no | — | |
|
|
14
|
+
| `close-on-pointer-down` | `boolean \| undefined` | no | — | |
|
|
15
|
+
| `close-on-escape` | `boolean \| undefined` | no | — | |
|
|
16
|
+
| `close-on-scroll` | `boolean \| undefined` | no | — | |
|
|
17
|
+
| `interactive` | `boolean \| undefined` | no | — | |
|
|
18
|
+
| `disabled` | `boolean \| undefined` | no | — | |
|
|
19
|
+
| `positioning` | `PositioningOptions \| undefined` | no | — | |
|
|
20
|
+
| `ids` | `ElementIds \| undefined` | no | — | Override the trigger element's id. Pass the same id to another compound component's `ids.trigger` (e.g. `Popover`, `DropdownMenu`) to compose their triggers on one element via nested `asChild` without an extra wrapper node — otherwise the outer trigger's id wins and this tooltip can't find its anchor, mispositioning at the viewport origin. |
|
|
21
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
22
|
+
|
|
23
|
+
## Sub-components
|
|
24
|
+
|
|
25
|
+
- `WallarmDS.TooltipContent` — `TooltipContentProps` in the declaration bundle.
|
|
26
|
+
- `WallarmDS.TooltipTrigger` — `TooltipTriggerProps` in the declaration bundle.
|
|
27
|
+
|
|
28
|
+
## Stories
|
|
29
|
+
|
|
30
|
+
### Basic
|
|
31
|
+
|
|
32
|
+
Trigger and content. Keep it to a few words: a tooltip that needs reading is a tooltip nobody
|
|
33
|
+
reads.
|
|
34
|
+
|
|
35
|
+
Source: Tooltip/Tooltip.stories.tsx#Basic
|
|
36
|
+
|
|
37
|
+
### WithDescription
|
|
38
|
+
|
|
39
|
+
A second line for a consequence rather than a name. This is the ceiling — past it, the
|
|
40
|
+
content wants a `Popover`.
|
|
41
|
+
|
|
42
|
+
Source: Tooltip/Tooltip.stories.tsx#WithDescription
|
|
43
|
+
|
|
44
|
+
### WithNestedDialog
|
|
45
|
+
|
|
46
|
+
A tooltip on a trigger that also opens a dialog, checking the tooltip dismisses rather than
|
|
47
|
+
hanging over the panel.
|
|
48
|
+
|
|
49
|
+
Source: Tooltip/Tooltip.stories.tsx#WithNestedDialog
|
|
50
|
+
|
|
51
|
+
### WithKbd
|
|
52
|
+
|
|
53
|
+
A `Kbd` inside the tooltip, which is the convention for naming a control and its shortcut in
|
|
54
|
+
one breath.
|
|
55
|
+
|
|
56
|
+
Source: Tooltip/Tooltip.stories.tsx#WithKbd
|
|
57
|
+
|
|
58
|
+
## Story sources
|
|
59
|
+
|
|
60
|
+
### Tooltip/Tooltip.stories.tsx
|
|
61
|
+
|
|
62
|
+
```tsx
|
|
63
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
64
|
+
import { ChevronRight } from '../../icons';
|
|
65
|
+
import { Button } from '../Button';
|
|
66
|
+
import {
|
|
67
|
+
Dialog,
|
|
68
|
+
DialogBody,
|
|
69
|
+
DialogContent,
|
|
70
|
+
DialogHeader,
|
|
71
|
+
DialogTitle,
|
|
72
|
+
DialogTrigger,
|
|
73
|
+
} from '../Dialog';
|
|
74
|
+
import { Kbd } from '../Kbd';
|
|
75
|
+
import { Text } from '../Text';
|
|
76
|
+
import { Tooltip } from './Tooltip';
|
|
77
|
+
import { TooltipContent } from './TooltipContent';
|
|
78
|
+
import { TooltipTrigger } from './TooltipTrigger';
|
|
79
|
+
|
|
80
|
+
const DESCRIPTION = [
|
|
81
|
+
'A short label on hover or focus, for naming something the interface cannot afford to spell out — an icon button, a truncated value.',
|
|
82
|
+
'It holds no interactive content and cannot be reached by keyboard beyond its trigger, so anything the reader needs to click belongs in a `Popover`.',
|
|
83
|
+
].join(' ');
|
|
84
|
+
|
|
85
|
+
const meta = {
|
|
86
|
+
title: 'Overlay/Tooltip',
|
|
87
|
+
component: Tooltip,
|
|
88
|
+
subcomponents: { TooltipContent, TooltipTrigger },
|
|
89
|
+
parameters: {
|
|
90
|
+
layout: 'centered',
|
|
91
|
+
docs: {
|
|
92
|
+
description: {
|
|
93
|
+
component: DESCRIPTION,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
} satisfies Meta<typeof Tooltip>;
|
|
98
|
+
|
|
99
|
+
export default meta;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Trigger and content. Keep it to a few words: a tooltip that needs reading is a tooltip nobody
|
|
103
|
+
* reads.
|
|
104
|
+
*/
|
|
105
|
+
export const Basic: StoryFn<typeof meta> = () => (
|
|
106
|
+
<Tooltip data-testid='tooltip'>
|
|
107
|
+
<TooltipTrigger asChild>
|
|
108
|
+
<Button variant='outline' color='neutral'>
|
|
109
|
+
<ChevronRight />
|
|
110
|
+
</Button>
|
|
111
|
+
</TooltipTrigger>
|
|
112
|
+
<TooltipContent>Right</TooltipContent>
|
|
113
|
+
</Tooltip>
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A second line for a consequence rather than a name. This is the ceiling — past it, the
|
|
118
|
+
* content wants a `Popover`.
|
|
119
|
+
*/
|
|
120
|
+
export const WithDescription: StoryFn<typeof meta> = () => (
|
|
121
|
+
<Tooltip>
|
|
122
|
+
<TooltipTrigger asChild>
|
|
123
|
+
<Button variant='outline' color='neutral'>
|
|
124
|
+
<ChevronRight />
|
|
125
|
+
</Button>
|
|
126
|
+
</TooltipTrigger>
|
|
127
|
+
<TooltipContent>
|
|
128
|
+
<Text size='xs' weight='medium'>
|
|
129
|
+
Title
|
|
130
|
+
</Text>
|
|
131
|
+
<Text size='xs'>Description</Text>
|
|
132
|
+
</TooltipContent>
|
|
133
|
+
</Tooltip>
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A tooltip on a trigger that also opens a dialog, checking the tooltip dismisses rather than
|
|
138
|
+
* hanging over the panel.
|
|
139
|
+
*/
|
|
140
|
+
export const WithNestedDialog: StoryFn<typeof meta> = () => (
|
|
141
|
+
<Dialog>
|
|
142
|
+
<DialogTrigger asChild>
|
|
143
|
+
<Button variant='outline' color='neutral'>
|
|
144
|
+
Open dialog with nested tooltip
|
|
145
|
+
</Button>
|
|
146
|
+
</DialogTrigger>
|
|
147
|
+
|
|
148
|
+
<DialogContent>
|
|
149
|
+
<DialogHeader>
|
|
150
|
+
<DialogTitle>[Level 1] Main Dialog</DialogTitle>
|
|
151
|
+
</DialogHeader>
|
|
152
|
+
|
|
153
|
+
<DialogBody>
|
|
154
|
+
<Dialog>
|
|
155
|
+
<DialogTrigger asChild>
|
|
156
|
+
<Button variant='ghost' color='neutral' size='small'>
|
|
157
|
+
Open nested dialog
|
|
158
|
+
</Button>
|
|
159
|
+
</DialogTrigger>
|
|
160
|
+
|
|
161
|
+
<DialogContent>
|
|
162
|
+
<DialogHeader>
|
|
163
|
+
<DialogTitle>[Level 2] With Tooltip</DialogTitle>
|
|
164
|
+
</DialogHeader>
|
|
165
|
+
|
|
166
|
+
<DialogBody>
|
|
167
|
+
<Tooltip data-testid='nested-tooltip' interactive>
|
|
168
|
+
<TooltipTrigger asChild>
|
|
169
|
+
<Button variant='outline' color='neutral'>
|
|
170
|
+
Hover me
|
|
171
|
+
</Button>
|
|
172
|
+
</TooltipTrigger>
|
|
173
|
+
<TooltipContent>Tooltip above the dialog</TooltipContent>
|
|
174
|
+
</Tooltip>
|
|
175
|
+
</DialogBody>
|
|
176
|
+
</DialogContent>
|
|
177
|
+
</Dialog>
|
|
178
|
+
</DialogBody>
|
|
179
|
+
</DialogContent>
|
|
180
|
+
</Dialog>
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* A `Kbd` inside the tooltip, which is the convention for naming a control and its shortcut in
|
|
185
|
+
* one breath.
|
|
186
|
+
*/
|
|
187
|
+
export const WithKbd: StoryFn<typeof meta> = () => (
|
|
188
|
+
<Tooltip>
|
|
189
|
+
<TooltipTrigger asChild>
|
|
190
|
+
<Button variant='outline' color='neutral'>
|
|
191
|
+
<ChevronRight />
|
|
192
|
+
</Button>
|
|
193
|
+
</TooltipTrigger>
|
|
194
|
+
<TooltipContent>
|
|
195
|
+
Add instance <Kbd>⌘</Kbd>
|
|
196
|
+
</TooltipContent>
|
|
197
|
+
</Tooltip>
|
|
198
|
+
);
|
|
199
|
+
```
|