@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,492 @@
|
|
|
1
|
+
An inline message bound to one part of the screen, which stays until the state changes or the reader dismisses it — reach for `Banner` when the message would still matter on another page, `Toast` for a transient confirmation, and the field’s own error for a single invalid input. `color` carries the meaning and `AlertIcon` takes its icon from it, so the pair is not yours to mix; `primary` is the neutral default for a notice with no status to encode.
|
|
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
|
+
| `color` | `"primary" \| "destructive" \| "info" \| "warning" \| "success"` | no | `primary` | Color variant of the alert |
|
|
10
|
+
| `min-width` | `number \| undefined` | no | `ALERT_MIN_WIDTH` | Minimum width in pixels (default: 256) |
|
|
11
|
+
| `max-width` | `number \| undefined` | no | `ALERT_MAX_WIDTH` | Maximum width in pixels (default: 980) |
|
|
12
|
+
| `title` | `string \| undefined` | no | — | |
|
|
13
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
14
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
15
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
16
|
+
| `id` | `string \| undefined` | no | — | |
|
|
17
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
18
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
19
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
20
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
21
|
+
|
|
22
|
+
## Sub-components
|
|
23
|
+
|
|
24
|
+
- `WallarmDS.AlertClose` — `AlertCloseProps` in the declaration bundle.
|
|
25
|
+
- `WallarmDS.AlertContent` — `AlertContentProps` in the declaration bundle.
|
|
26
|
+
- `WallarmDS.AlertControls` — `AlertControlsProps` in the declaration bundle.
|
|
27
|
+
- `WallarmDS.AlertDescription` — `AlertDescriptionProps` in the declaration bundle.
|
|
28
|
+
- `WallarmDS.AlertIcon` — `AlertIconProps` in the declaration bundle.
|
|
29
|
+
- `WallarmDS.AlertTitle` — `AlertTitleProps` in the declaration bundle.
|
|
30
|
+
|
|
31
|
+
## Stories
|
|
32
|
+
|
|
33
|
+
### AllColors
|
|
34
|
+
|
|
35
|
+
The five colours with the icon each implies: neutral `primary` for a general notice, then destructive, info, warning and success for real status.
|
|
36
|
+
|
|
37
|
+
Source: Alert/Alert.stories.tsx#AllColors
|
|
38
|
+
|
|
39
|
+
### TitleOnly
|
|
40
|
+
|
|
41
|
+
A title on its own is a complete alert. Add a description only when it says something the title does not.
|
|
42
|
+
|
|
43
|
+
Source: Alert/Alert.stories.tsx#TitleOnly
|
|
44
|
+
|
|
45
|
+
### WithCloseButton
|
|
46
|
+
|
|
47
|
+
`AlertClose` gives the reader a way out — add it where dismissing is reasonable, and leave it off while the condition still holds.
|
|
48
|
+
|
|
49
|
+
Source: Alert/Alert.stories.tsx#WithCloseButton
|
|
50
|
+
|
|
51
|
+
### WithControls
|
|
52
|
+
|
|
53
|
+
`AlertControls` as a direct child of `Alert` puts the actions top-right, which is what a wide alert wants. The buttons are always `secondary` and `small`, neutral or destructive to match the alert, never a solid primary.
|
|
54
|
+
|
|
55
|
+
Source: Alert/Alert.stories.tsx#WithControls
|
|
56
|
+
|
|
57
|
+
### WithBottomActions
|
|
58
|
+
|
|
59
|
+
The same controls nested inside `AlertContent` drop below the text instead, which is what a narrow alert wants. Placement follows the width rather than a rule.
|
|
60
|
+
|
|
61
|
+
Source: Alert/Alert.stories.tsx#WithBottomActions
|
|
62
|
+
|
|
63
|
+
### MinMaxWidth
|
|
64
|
+
|
|
65
|
+
Each row puts the alert in a container that crosses one of its bounds, since
|
|
66
|
+
neither is visible in a container that sits between them. The alert has no width
|
|
67
|
+
of its own: it takes the container's, clamped between 256 and 980px.
|
|
68
|
+
|
|
69
|
+
Source: Alert/Alert.stories.tsx#MinMaxWidth
|
|
70
|
+
|
|
71
|
+
### MaxLines
|
|
72
|
+
|
|
73
|
+
`lineClamp` is opt-in: without it long text wraps freely, and with it the text truncates and the full string moves into a tooltip. Four lines is the usual cap.
|
|
74
|
+
|
|
75
|
+
Source: Alert/Alert.stories.tsx#MaxLines
|
|
76
|
+
|
|
77
|
+
### WithCode
|
|
78
|
+
|
|
79
|
+
An inline `Code` line inside the content, for the error code or the command that failed — the one piece of rich content an alert is built to carry.
|
|
80
|
+
|
|
81
|
+
Source: Alert/Alert.stories.tsx#WithCode
|
|
82
|
+
|
|
83
|
+
## Story sources
|
|
84
|
+
|
|
85
|
+
### Alert/Alert.stories.tsx
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
import { useState } from 'react';
|
|
89
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
90
|
+
import { Button } from '../Button';
|
|
91
|
+
import { Code } from '../Code';
|
|
92
|
+
import { Alert, type AlertProps } from './Alert';
|
|
93
|
+
import { AlertClose } from './AlertClose';
|
|
94
|
+
import { AlertContent } from './AlertContent';
|
|
95
|
+
import { AlertControls } from './AlertControls';
|
|
96
|
+
import { AlertDescription } from './AlertDescription';
|
|
97
|
+
import { AlertIcon } from './AlertIcon';
|
|
98
|
+
import { AlertTitle } from './AlertTitle';
|
|
99
|
+
|
|
100
|
+
const DESCRIPTION = [
|
|
101
|
+
'An inline message bound to one part of the screen, which stays until the state changes or the reader dismisses it — reach for `Banner` when the message would still matter on another page, `Toast` for a transient confirmation, and the field’s own error for a single invalid input.',
|
|
102
|
+
'`color` carries the meaning and `AlertIcon` takes its icon from it, so the pair is not yours to mix; `primary` is the neutral default for a notice with no status to encode.',
|
|
103
|
+
].join(' ');
|
|
104
|
+
|
|
105
|
+
const meta = {
|
|
106
|
+
title: 'Messaging/Alert',
|
|
107
|
+
component: Alert,
|
|
108
|
+
subcomponents: {
|
|
109
|
+
AlertClose,
|
|
110
|
+
AlertContent,
|
|
111
|
+
AlertControls,
|
|
112
|
+
AlertDescription,
|
|
113
|
+
AlertIcon,
|
|
114
|
+
AlertTitle,
|
|
115
|
+
},
|
|
116
|
+
parameters: {
|
|
117
|
+
layout: 'centered',
|
|
118
|
+
docs: {
|
|
119
|
+
description: {
|
|
120
|
+
component: DESCRIPTION,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
argTypes: {
|
|
125
|
+
color: {
|
|
126
|
+
control: { type: 'select' },
|
|
127
|
+
options: ['primary', 'destructive', 'info', 'warning', 'success'],
|
|
128
|
+
description: 'Color variant of the alert',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
} satisfies Meta<typeof Alert>;
|
|
132
|
+
|
|
133
|
+
export default meta;
|
|
134
|
+
|
|
135
|
+
/** The five colours with the icon each implies: neutral `primary` for a general notice, then destructive, info, warning and success for real status. */
|
|
136
|
+
export const AllColors: StoryFn<AlertProps> = () => (
|
|
137
|
+
<div className='flex flex-col gap-16 w-[600px]'>
|
|
138
|
+
<Alert color='primary'>
|
|
139
|
+
<AlertIcon />
|
|
140
|
+
<AlertContent>
|
|
141
|
+
<AlertTitle>Primary Alert</AlertTitle>
|
|
142
|
+
<AlertDescription>This is a neutral alert for general information.</AlertDescription>
|
|
143
|
+
</AlertContent>
|
|
144
|
+
</Alert>
|
|
145
|
+
|
|
146
|
+
<Alert color='destructive'>
|
|
147
|
+
<AlertIcon />
|
|
148
|
+
<AlertContent>
|
|
149
|
+
<AlertTitle>Destructive Alert</AlertTitle>
|
|
150
|
+
<AlertDescription>This alert indicates an error or dangerous action.</AlertDescription>
|
|
151
|
+
</AlertContent>
|
|
152
|
+
</Alert>
|
|
153
|
+
|
|
154
|
+
<Alert color='info'>
|
|
155
|
+
<AlertIcon />
|
|
156
|
+
<AlertContent>
|
|
157
|
+
<AlertTitle>Info Alert</AlertTitle>
|
|
158
|
+
<AlertDescription>This alert provides informational content to the user.</AlertDescription>
|
|
159
|
+
</AlertContent>
|
|
160
|
+
</Alert>
|
|
161
|
+
|
|
162
|
+
<Alert color='warning'>
|
|
163
|
+
<AlertIcon />
|
|
164
|
+
<AlertContent>
|
|
165
|
+
<AlertTitle>Warning Alert</AlertTitle>
|
|
166
|
+
<AlertDescription>This alert warns the user about potential issues.</AlertDescription>
|
|
167
|
+
</AlertContent>
|
|
168
|
+
</Alert>
|
|
169
|
+
|
|
170
|
+
<Alert color='success'>
|
|
171
|
+
<AlertIcon />
|
|
172
|
+
<AlertContent>
|
|
173
|
+
<AlertTitle>Success Alert</AlertTitle>
|
|
174
|
+
<AlertDescription>This alert confirms a successful action or operation.</AlertDescription>
|
|
175
|
+
</AlertContent>
|
|
176
|
+
</Alert>
|
|
177
|
+
</div>
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
/** A title on its own is a complete alert. Add a description only when it says something the title does not. */
|
|
181
|
+
export const TitleOnly: StoryFn<AlertProps> = () => {
|
|
182
|
+
return (
|
|
183
|
+
<div className='flex flex-col gap-16 w-[600px]'>
|
|
184
|
+
<Alert color='primary'>
|
|
185
|
+
<AlertIcon />
|
|
186
|
+
<AlertContent>
|
|
187
|
+
<AlertTitle>Alert with title only</AlertTitle>
|
|
188
|
+
</AlertContent>
|
|
189
|
+
</Alert>
|
|
190
|
+
|
|
191
|
+
<Alert color='info'>
|
|
192
|
+
<AlertIcon />
|
|
193
|
+
<AlertContent>
|
|
194
|
+
<AlertTitle>Information message without description</AlertTitle>
|
|
195
|
+
</AlertContent>
|
|
196
|
+
</Alert>
|
|
197
|
+
</div>
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/** `AlertClose` gives the reader a way out — add it where dismissing is reasonable, and leave it off while the condition still holds. */
|
|
202
|
+
export const WithCloseButton: StoryFn<AlertProps> = () => {
|
|
203
|
+
const [showInfo, setShowInfo] = useState(true);
|
|
204
|
+
const [showWarning, setShowWarning] = useState(true);
|
|
205
|
+
|
|
206
|
+
return (
|
|
207
|
+
<div className='flex flex-col gap-16 w-[600px]'>
|
|
208
|
+
{showInfo && (
|
|
209
|
+
<Alert color='info'>
|
|
210
|
+
<AlertIcon />
|
|
211
|
+
<AlertContent>
|
|
212
|
+
<AlertTitle>Dismissable Alert</AlertTitle>
|
|
213
|
+
<AlertDescription>This alert can be closed by clicking the X button.</AlertDescription>
|
|
214
|
+
</AlertContent>
|
|
215
|
+
<AlertClose onClick={() => setShowInfo(false)} />
|
|
216
|
+
</Alert>
|
|
217
|
+
)}
|
|
218
|
+
|
|
219
|
+
{showWarning && (
|
|
220
|
+
<Alert color='warning'>
|
|
221
|
+
<AlertIcon />
|
|
222
|
+
<AlertContent>
|
|
223
|
+
<AlertTitle>Warning with close</AlertTitle>
|
|
224
|
+
</AlertContent>
|
|
225
|
+
<AlertClose onClick={() => setShowWarning(false)} />
|
|
226
|
+
</Alert>
|
|
227
|
+
)}
|
|
228
|
+
</div>
|
|
229
|
+
);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/** `AlertControls` as a direct child of `Alert` puts the actions top-right, which is what a wide alert wants. The buttons are always `secondary` and `small`, neutral or destructive to match the alert, never a solid primary. */
|
|
233
|
+
export const WithControls: StoryFn<AlertProps> = () => {
|
|
234
|
+
return (
|
|
235
|
+
<div className='flex flex-col gap-16 w-[600px]'>
|
|
236
|
+
<Alert color='info'>
|
|
237
|
+
<AlertIcon />
|
|
238
|
+
<AlertContent>
|
|
239
|
+
<AlertTitle>Alert with Two Action Buttons</AlertTitle>
|
|
240
|
+
<AlertDescription>
|
|
241
|
+
This alert has two action buttons on the right side without a close button.
|
|
242
|
+
</AlertDescription>
|
|
243
|
+
</AlertContent>
|
|
244
|
+
<AlertControls>
|
|
245
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
246
|
+
Learn more
|
|
247
|
+
</Button>
|
|
248
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
249
|
+
Dismiss
|
|
250
|
+
</Button>
|
|
251
|
+
</AlertControls>
|
|
252
|
+
</Alert>
|
|
253
|
+
|
|
254
|
+
<Alert color='info'>
|
|
255
|
+
<AlertIcon />
|
|
256
|
+
<AlertContent>
|
|
257
|
+
<AlertTitle>Alert with Actions and Close</AlertTitle>
|
|
258
|
+
<AlertDescription>This alert has action buttons and a close button.</AlertDescription>
|
|
259
|
+
</AlertContent>
|
|
260
|
+
<AlertControls>
|
|
261
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
262
|
+
Learn more
|
|
263
|
+
</Button>
|
|
264
|
+
</AlertControls>
|
|
265
|
+
<AlertClose />
|
|
266
|
+
</Alert>
|
|
267
|
+
|
|
268
|
+
<Alert color='destructive'>
|
|
269
|
+
<AlertIcon />
|
|
270
|
+
<AlertContent>
|
|
271
|
+
<AlertTitle>Critical Error</AlertTitle>
|
|
272
|
+
<AlertDescription>An error occurred that requires your attention.</AlertDescription>
|
|
273
|
+
</AlertContent>
|
|
274
|
+
<AlertControls>
|
|
275
|
+
<Button variant='secondary' color='destructive' size='small'>
|
|
276
|
+
Fix now
|
|
277
|
+
</Button>
|
|
278
|
+
</AlertControls>
|
|
279
|
+
<AlertClose />
|
|
280
|
+
</Alert>
|
|
281
|
+
</div>
|
|
282
|
+
);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
/** The same controls nested inside `AlertContent` drop below the text instead, which is what a narrow alert wants. Placement follows the width rather than a rule. */
|
|
286
|
+
export const WithBottomActions: StoryFn<AlertProps> = () => {
|
|
287
|
+
return (
|
|
288
|
+
<div className='flex flex-col gap-16 w-[600px]'>
|
|
289
|
+
<Alert color='info'>
|
|
290
|
+
<AlertIcon />
|
|
291
|
+
<AlertContent>
|
|
292
|
+
<AlertTitle>Alert with Bottom Actions</AlertTitle>
|
|
293
|
+
<AlertDescription>
|
|
294
|
+
This alert has action buttons at the bottom of the content area.
|
|
295
|
+
</AlertDescription>
|
|
296
|
+
<AlertControls>
|
|
297
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
298
|
+
Primary Action
|
|
299
|
+
</Button>
|
|
300
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
301
|
+
Secondary
|
|
302
|
+
</Button>
|
|
303
|
+
</AlertControls>
|
|
304
|
+
</AlertContent>
|
|
305
|
+
<AlertClose />
|
|
306
|
+
</Alert>
|
|
307
|
+
|
|
308
|
+
<Alert color='destructive'>
|
|
309
|
+
<AlertIcon />
|
|
310
|
+
<AlertContent>
|
|
311
|
+
<AlertTitle>Destructive Alert with Actions</AlertTitle>
|
|
312
|
+
<AlertDescription>
|
|
313
|
+
This error requires immediate action. Please review and take necessary steps.
|
|
314
|
+
</AlertDescription>
|
|
315
|
+
<AlertControls>
|
|
316
|
+
<Button variant='secondary' color='destructive' size='small'>
|
|
317
|
+
Delete
|
|
318
|
+
</Button>
|
|
319
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
320
|
+
Cancel
|
|
321
|
+
</Button>
|
|
322
|
+
</AlertControls>
|
|
323
|
+
</AlertContent>
|
|
324
|
+
</Alert>
|
|
325
|
+
</div>
|
|
326
|
+
);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Each row puts the alert in a container that crosses one of its bounds, since
|
|
331
|
+
* neither is visible in a container that sits between them. The alert has no width
|
|
332
|
+
* of its own: it takes the container's, clamped between 256 and 980px.
|
|
333
|
+
*/
|
|
334
|
+
export const MinMaxWidth: StoryFn<AlertProps> = () => {
|
|
335
|
+
const edge = 'border border-dashed border-border-primary';
|
|
336
|
+
|
|
337
|
+
return (
|
|
338
|
+
<div className='flex flex-col gap-24'>
|
|
339
|
+
<div>
|
|
340
|
+
<p className='sb-annotation mb-8'>
|
|
341
|
+
200px container — holds its 256px minimum and overflows
|
|
342
|
+
</p>
|
|
343
|
+
<div className={`w-[200px] ${edge}`}>
|
|
344
|
+
<Alert color='info'>
|
|
345
|
+
<AlertIcon />
|
|
346
|
+
<AlertContent>
|
|
347
|
+
<AlertTitle>Short</AlertTitle>
|
|
348
|
+
</AlertContent>
|
|
349
|
+
</Alert>
|
|
350
|
+
</div>
|
|
351
|
+
</div>
|
|
352
|
+
|
|
353
|
+
<div>
|
|
354
|
+
<p className='sb-annotation mb-8'>600px container — fills it</p>
|
|
355
|
+
<div className={`w-[600px] ${edge}`}>
|
|
356
|
+
<Alert color='warning'>
|
|
357
|
+
<AlertIcon />
|
|
358
|
+
<AlertContent>
|
|
359
|
+
<AlertTitle>
|
|
360
|
+
This is a very long alert title that demonstrates the maximum width behavior of the
|
|
361
|
+
component
|
|
362
|
+
</AlertTitle>
|
|
363
|
+
<AlertDescription>
|
|
364
|
+
This is an extended description that shows how the alert handles longer content, and
|
|
365
|
+
wraps within whatever width the container gives it.
|
|
366
|
+
</AlertDescription>
|
|
367
|
+
</AlertContent>
|
|
368
|
+
<AlertClose />
|
|
369
|
+
</Alert>
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
<div className='overflow-x-auto'>
|
|
374
|
+
<p className='sb-annotation mb-8'>1100px container — stops at the 980px ceiling</p>
|
|
375
|
+
<div className={`w-[1100px] ${edge}`}>
|
|
376
|
+
<Alert color='primary'>
|
|
377
|
+
<AlertIcon />
|
|
378
|
+
<AlertContent>
|
|
379
|
+
<AlertTitle>
|
|
380
|
+
Past 980px the alert stops widening and leaves the rest of the container empty
|
|
381
|
+
</AlertTitle>
|
|
382
|
+
<AlertDescription>
|
|
383
|
+
A line of text long enough to reach the ceiling, so the gap on the right is the
|
|
384
|
+
ceiling rather than the content running out.
|
|
385
|
+
</AlertDescription>
|
|
386
|
+
</AlertContent>
|
|
387
|
+
<AlertClose />
|
|
388
|
+
</Alert>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
|
|
392
|
+
<div>
|
|
393
|
+
<p className='sb-annotation mb-8'>600px container — maxWidth 500 brings the ceiling down</p>
|
|
394
|
+
<div className={`w-[600px] ${edge}`}>
|
|
395
|
+
<Alert color='success' maxWidth={500}>
|
|
396
|
+
<AlertIcon />
|
|
397
|
+
<AlertContent>
|
|
398
|
+
<AlertTitle>
|
|
399
|
+
This is a very long alert title that demonstrates the custom maximum width behavior
|
|
400
|
+
</AlertTitle>
|
|
401
|
+
<AlertDescription>
|
|
402
|
+
This alert has a custom maxWidth of 500px set via prop.
|
|
403
|
+
</AlertDescription>
|
|
404
|
+
</AlertContent>
|
|
405
|
+
<AlertClose />
|
|
406
|
+
</Alert>
|
|
407
|
+
</div>
|
|
408
|
+
</div>
|
|
409
|
+
</div>
|
|
410
|
+
);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
MinMaxWidth.parameters = { layout: 'padded' };
|
|
414
|
+
|
|
415
|
+
/** `lineClamp` is opt-in: without it long text wraps freely, and with it the text truncates and the full string moves into a tooltip. Four lines is the usual cap. */
|
|
416
|
+
export const MaxLines: StoryFn<AlertProps> = () => {
|
|
417
|
+
const longTitle =
|
|
418
|
+
'This is a very long title that should be truncated after a certain number of lines. It keeps going and going to demonstrate the line clamp functionality. We need even more text to ensure it exceeds the maximum number of lines allowed.';
|
|
419
|
+
const longDescription =
|
|
420
|
+
'This is a very long description that demonstrates the text truncation feature. The description can be quite lengthy and should be limited to a maximum of 4 lines by default. When the text exceeds this limit, it will be truncated with an ellipsis. This behavior ensures that the alert remains compact and does not take up too much vertical space on the page. Additional text is added here to make sure the truncation is visible.';
|
|
421
|
+
|
|
422
|
+
return (
|
|
423
|
+
<div className='flex flex-col gap-16 w-600'>
|
|
424
|
+
<div>
|
|
425
|
+
<p className='sb-annotation mb-8'>lineClamp 4</p>
|
|
426
|
+
<Alert color='info'>
|
|
427
|
+
<AlertIcon />
|
|
428
|
+
<AlertContent>
|
|
429
|
+
<AlertTitle lineClamp={4}>{longTitle}</AlertTitle>
|
|
430
|
+
<AlertDescription lineClamp={4}>{longDescription}</AlertDescription>
|
|
431
|
+
</AlertContent>
|
|
432
|
+
</Alert>
|
|
433
|
+
</div>
|
|
434
|
+
|
|
435
|
+
<div>
|
|
436
|
+
<p className='sb-annotation mb-8'>lineClamp 2</p>
|
|
437
|
+
<Alert color='warning'>
|
|
438
|
+
<AlertIcon />
|
|
439
|
+
<AlertContent>
|
|
440
|
+
<AlertTitle lineClamp={2}>{longTitle}</AlertTitle>
|
|
441
|
+
<AlertDescription lineClamp={2}>{longDescription}</AlertDescription>
|
|
442
|
+
</AlertContent>
|
|
443
|
+
</Alert>
|
|
444
|
+
</div>
|
|
445
|
+
|
|
446
|
+
<div>
|
|
447
|
+
<p className='sb-annotation mb-8'>no clamp</p>
|
|
448
|
+
<Alert color='success'>
|
|
449
|
+
<AlertIcon />
|
|
450
|
+
<AlertContent>
|
|
451
|
+
<AlertTitle>{longTitle}</AlertTitle>
|
|
452
|
+
<AlertDescription>{longDescription}</AlertDescription>
|
|
453
|
+
</AlertContent>
|
|
454
|
+
</Alert>
|
|
455
|
+
</div>
|
|
456
|
+
</div>
|
|
457
|
+
);
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
/** An inline `Code` line inside the content, for the error code or the command that failed — the one piece of rich content an alert is built to carry. */
|
|
461
|
+
export const WithCode: StoryFn<AlertProps> = () => (
|
|
462
|
+
<div className='flex flex-col gap-16 w-700'>
|
|
463
|
+
<Alert color='destructive'>
|
|
464
|
+
<AlertIcon />
|
|
465
|
+
<AlertContent>
|
|
466
|
+
<AlertTitle>Message goes here</AlertTitle>
|
|
467
|
+
<AlertDescription>Description goes here</AlertDescription>
|
|
468
|
+
<div className='pt-8'>
|
|
469
|
+
<Code size='s' color='destructive'>
|
|
470
|
+
Optional code output
|
|
471
|
+
</Code>
|
|
472
|
+
</div>
|
|
473
|
+
</AlertContent>
|
|
474
|
+
</Alert>
|
|
475
|
+
|
|
476
|
+
<Alert color='destructive'>
|
|
477
|
+
<AlertIcon />
|
|
478
|
+
<AlertContent>
|
|
479
|
+
<AlertTitle>Syntax Error in Configuration</AlertTitle>
|
|
480
|
+
<AlertDescription>An error occurred while parsing the configuration file.</AlertDescription>
|
|
481
|
+
|
|
482
|
+
<div className='pt-8'>
|
|
483
|
+
<Code size='s' color='destructive'>
|
|
484
|
+
Error: Unexpected token at line 42, column 15
|
|
485
|
+
</Code>
|
|
486
|
+
</div>
|
|
487
|
+
</AlertContent>
|
|
488
|
+
<AlertClose />
|
|
489
|
+
</Alert>
|
|
490
|
+
</div>
|
|
491
|
+
);
|
|
492
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,r){let n,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,m=Object.getOwnPropertyNames,h=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of m(t))d.call(e,o)||o===r||c(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},f={},p={$dispatcherGuard:()=>$,$makeReadOnly:()=>T,$reset:()=>A,$structuralCheck:()=>W,c:()=>x,clearRenderCounterRegistry:()=>M,renderCounterRegistry:()=>k,useRenderCounter:()=>D};for(var y in p)c(f,y,{get:p[y],enumerable:!0});e.exports=u(c({},"__esModule",{value:!0}),f);var b=(o=null!=(n=r("C"))?i(h(n)):{},u(n&&n.__esModule?o:c(o,"default",{value:n,enumerable:!0}),n)),{useRef:_,useEffect:g,isValidElement:v}=b,w=null!=(l=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?l:b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),x="function"==typeof(null==(a=b.__COMPILER_RUNTIME)?void 0:a.c)?b.__COMPILER_RUNTIME.c:function(e){return b.useMemo(()=>{let t=Array(e);for(let r=0;r<e;r++)t[r]=S;return t[S]=!0,t},[])},N={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{N[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var E=null;function C(e){return w.ReactCurrentDispatcher.current=e,w.ReactCurrentDispatcher.current}N.useMemoCache=e=>{if(null!=E)return E.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var R=[];function $(e){let t=w.ReactCurrentDispatcher.current;if(0===e){if(R.push(t),1===R.length&&(E=t),t===N)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");C(N)}else if(1===e){let e=R.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===R.length&&(E=null),C(e)}else if(2===e)R.push(t),C(E);else if(3===e){let e=R.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");C(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function A(e){for(let t=0;t<e.length;t++)e[t]=S}function T(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var k=new Map;function M(){for(let e of k.values())e.forEach(e=>{e.count=0})}function D(e){let t=_(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let r,n={count:0};null==(r=k.get(e))&&(r=new Set,k.set(e,r)),r.add(n),t.current=n}return()=>{var r;let n;null!==t.current&&(r=t.current,null!=(n=k.get(e))&&n.delete(r))}})}var O=new Set;function W(e,t,r,n,o,l){function a(e,t,a,i){let c=`${n}:${l} [${o}] ${r}${a} changed from ${e} to ${t} at depth ${i}`;O.has(c)||(O.add(c),console.error(c))}!function e(t,r,n,o){if(!(o>2)){if(t!==r)if(typeof t!=typeof r)a(`type ${typeof t}`,`type ${typeof r}`,n,o);else if("object"==typeof t){let l=Array.isArray(t),i=Array.isArray(r);if(null===t&&null!==r)a("null",`type ${typeof r}`,n,o);else if(null===r)a(`type ${typeof t}`,"null",n,o);else if(t instanceof Map)if(r instanceof Map)if(t.size!==r.size)a(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,o);else for(let[l,i]of t)r.has(l)?e(i,r.get(l),`${n}.get(${l})`,o+1):a(`Map instance with key ${l}`,`Map instance without key ${l}`,n,o);else a("Map instance","other value",n,o);else if(r instanceof Map)a("other value","Map instance",n,o);else if(t instanceof Set)if(r instanceof Set)if(t.size!==r.size)a(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,o);else for(let e of r)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,n,o);else a("Set instance","other value",n,o);else if(r instanceof Set)a("other value","Set instance",n,o);else if(l||i)if(l!==i)a(`type ${l?"array":"object"}`,`type ${i?"array":"object"}`,n,o);else if(t.length!==r.length)a(`array with length ${t.length}`,`array with length ${r.length}`,n,o);else for(let l=0;l<t.length;l++)e(t[l],r[l],`${n}[${l}]`,o+1);else if(v(t)||v(r))v(t)!==v(r)?a(`type ${v(t)?"React element":"object"}`,`type ${v(r)?"React element":"object"}`,n,o):t.type!==r.type?a(`React element of type ${t.type}`,`React element of type ${r.type}`,n,o):e(t.props,r.props,`[props of ${n}]`,o+1);else{for(let e in r)e in t||a(`object without key ${e}`,`object with key ${e}`,n,o);for(let l in t)l in r?e(t[l],r[l],`${n}.${l}`,o+1):a(`object with key ${l}`,`object without key ${l}`,n,o)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,o):t!==r&&a(t,r,n,o)}}}(e,t,"",0)}},p(e,t,r){let n=new WeakMap,o=new WeakMap;function l(e,t,r){let l=t,a=r;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,r=n.get(e);r||(r=new WeakMap,n.set(e,r));let o=r.get(t);o||((o=e.forwardRef((e,r)=>t({...e,ref:r}))).displayName=t.displayName??t.name,r.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 r=o.get(e);r||(r=new Map,o.set(e,r));let n=r.get(t);if(n)return n;let l=e.forwardRef((r,n)=>{let o=e.useRef(null);if(!o.current||o.current.original!==n){let e;o.current={original:n,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof n){let r=n(t);e="function"==typeof r?r:void 0}else n&&(n.current=t)}}}return e.createElement(t,{...r,ref:o.current.callback})});return l.displayName=`CanvasHost(${t})`,r.set(t,l),l}(e,l)),{type:l,props:a}}function a(e){let t=(t,r,n)=>{let o=l(e,t,r??{});return e.createElement(o.type,void 0===n?o.props:{...o.props,key:n})};return{jsx:t,jsxs:(t,r,n)=>{let o=l(e,t,r??{}),{children:a,...i}=o.props;return e.createElement(o.type,void 0===n?i:{...i,key:n},...Array.isArray(a)?a:[a])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,r,...n)=>{let o=l(e,t,r??{});return e.createElement(o.type,o.props,...n)},cloneElement:(t,r,...n)=>{let o=e.cloneElement(t,r??void 0,...n),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})}}}r.d(t,{MA:()=>a,YJ:()=>i})},C(e,t,r){r.r(t);let n=(0,r("p").YJ)(window.React),{Children:o,Component:l,Fragment:a,Profiler:i,PureComponent:c,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:h,act:d,cloneElement:u,createContext:f,createElement:p,createFactory:y,createRef:b,forwardRef:_,isValidElement:g,lazy:v,memo:w,startTransition:S,unstable_act:x,useCallback:N,useContext:E,useDebugValue:C,useDeferredValue:R,useEffect:$,useId:A,useImperativeHandle:T,useInsertionEffect:k,useLayoutEffect:M,useMemo:D,useReducer:O,useRef:W,useState:I,useSyncExternalStore:j,useTransition:z,version:P,use:L}=n;r.d(t,{},{Children:o,Component:l,Fragment:a,Profiler:i,PureComponent:c,StrictMode:s,Suspense:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:h,act:d,cloneElement:u,createContext:f,createElement:p,createFactory:y,createRef:b,default:n,forwardRef:_,isValidElement:g,lazy:v,memo:w,startTransition:S,unstable_act:x,use:L,useCallback:N,useContext:E,useDebugValue:C,useDeferredValue:R,useEffect:$,useId:A,useImperativeHandle:T,useInsertionEffect:k,useLayoutEffect:M,useMemo:D,useReducer:O,useRef:W,useState:I,useSyncExternalStore:j,useTransition:z,version:P})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}r.d=(e,t,n)=>{var o=(t,n)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,[n]:t[o]})};o(t,"get"),o(n,"value")},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.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:n,Fragment:o}=(0,r("p").MA)(window.React);var l=r("vD"),a=r("C");let i=window.WallarmDS.Button,c=window.WallarmDS.Code,s=window.WallarmDS.Alert,m=window.WallarmDS.AlertClose,h=window.WallarmDS.AlertContent,d=window.WallarmDS.AlertControls,u=window.WallarmDS.AlertDescription,f=window.WallarmDS.AlertIcon,p=window.WallarmDS.AlertTitle,y={title:"Messaging/Alert",component:s,subcomponents:{AlertClose:m,AlertContent:h,AlertControls:d,AlertDescription:u,AlertIcon:f,AlertTitle:p},parameters:{layout:"centered",docs:{description:{component:"An inline message bound to one part of the screen, which stays until the state changes or the reader dismisses it — reach for `Banner` when the message would still matter on another page, `Toast` for a transient confirmation, and the field’s own error for a single invalid input. `color` carries the meaning and `AlertIcon` takes its icon from it, so the pair is not yours to mix; `primary` is the neutral default for a notice with no status to encode."}}},argTypes:{color:{control:{type:"select"},options:["primary","destructive","info","warning","success"],description:"Color variant of the alert"}}},b=()=>{let r,n,o,a,i,c,d,y,b,_,g,v,w=(0,l.c)(12);return w[0]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation mb-8",children:"200px container — holds its 256px minimum and overflows"}),w[0]=r):r=w[0],w[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(f,{}),w[1]=n):n=w[1],w[2]===Symbol.for("react.memo_cache_sentinel")?(o=t("div",{children:[r,e("div",{className:"w-[200px] border border-dashed border-border-primary",children:t(s,{color:"info",children:[n,e(h,{children:e(p,{children:"Short"})})]})})]}),a=e("p",{className:"sb-annotation mb-8",children:"600px container — fills it"}),w[2]=o,w[3]=a):(o=w[2],a=w[3]),w[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(f,{}),w[4]=i):i=w[4],w[5]===Symbol.for("react.memo_cache_sentinel")?(c=t("div",{children:[a,e("div",{className:"w-[600px] border border-dashed border-border-primary",children:t(s,{color:"warning",children:[i,t(h,{children:[e(p,{children:"This is a very long alert title that demonstrates the maximum width behavior of the component"}),e(u,{children:"This is an extended description that shows how the alert handles longer content, and wraps within whatever width the container gives it."})]}),e(m,{})]})})]}),w[5]=c):c=w[5],w[6]===Symbol.for("react.memo_cache_sentinel")?(d=e("p",{className:"sb-annotation mb-8",children:"1100px container — stops at the 980px ceiling"}),w[6]=d):d=w[6],w[7]===Symbol.for("react.memo_cache_sentinel")?(y=e(f,{}),w[7]=y):y=w[7],w[8]===Symbol.for("react.memo_cache_sentinel")?(b=t("div",{className:"overflow-x-auto",children:[d,e("div",{className:"w-[1100px] border border-dashed border-border-primary",children:t(s,{color:"primary",children:[y,t(h,{children:[e(p,{children:"Past 980px the alert stops widening and leaves the rest of the container empty"}),e(u,{children:"A line of text long enough to reach the ceiling, so the gap on the right is the ceiling rather than the content running out."})]}),e(m,{})]})})]}),_=e("p",{className:"sb-annotation mb-8",children:"600px container — maxWidth 500 brings the ceiling down"}),w[8]=b,w[9]=_):(b=w[8],_=w[9]),w[10]===Symbol.for("react.memo_cache_sentinel")?(g=e(f,{}),w[10]=g):g=w[10],w[11]===Symbol.for("react.memo_cache_sentinel")?(v=t("div",{className:"flex flex-col gap-24",children:[o,c,b,t("div",{children:[_,e("div",{className:"w-[600px] border border-dashed border-border-primary",children:t(s,{color:"success",maxWidth:500,children:[g,t(h,{children:[e(p,{children:"This is a very long alert title that demonstrates the custom maximum width behavior"}),e(u,{children:"This alert has a custom maxWidth of 500px set via prop."})]}),e(m,{})]})})]})]}),w[11]=v):v=w[11],v};b.parameters={layout:"padded"};let _=[{name:"AllColors",story:()=>{let r,n,o,a,i,c,m,d,y,b,_=(0,l.c)(10);return _[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(f,{}),_[0]=r):r=_[0],_[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(s,{color:"primary",children:[r,t(h,{children:[e(p,{children:"Primary Alert"}),e(u,{children:"This is a neutral alert for general information."})]})]}),_[1]=n):n=_[1],_[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(f,{}),_[2]=o):o=_[2],_[3]===Symbol.for("react.memo_cache_sentinel")?(a=t(s,{color:"destructive",children:[o,t(h,{children:[e(p,{children:"Destructive Alert"}),e(u,{children:"This alert indicates an error or dangerous action."})]})]}),_[3]=a):a=_[3],_[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(f,{}),_[4]=i):i=_[4],_[5]===Symbol.for("react.memo_cache_sentinel")?(c=t(s,{color:"info",children:[i,t(h,{children:[e(p,{children:"Info Alert"}),e(u,{children:"This alert provides informational content to the user."})]})]}),_[5]=c):c=_[5],_[6]===Symbol.for("react.memo_cache_sentinel")?(m=e(f,{}),_[6]=m):m=_[6],_[7]===Symbol.for("react.memo_cache_sentinel")?(d=t(s,{color:"warning",children:[m,t(h,{children:[e(p,{children:"Warning Alert"}),e(u,{children:"This alert warns the user about potential issues."})]})]}),_[7]=d):d=_[7],_[8]===Symbol.for("react.memo_cache_sentinel")?(y=e(f,{}),_[8]=y):y=_[8],_[9]===Symbol.for("react.memo_cache_sentinel")?(b=t("div",{className:"flex flex-col gap-16 w-[600px]",children:[n,a,c,d,t(s,{color:"success",children:[y,t(h,{children:[e(p,{children:"Success Alert"}),e(u,{children:"This alert confirms a successful action or operation."})]})]})]}),_[9]=b):b=_[9],b},meta:y},{name:"TitleOnly",story:()=>{let r,n,o,a,i=(0,l.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(f,{}),i[0]=r):r=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(s,{color:"primary",children:[r,e(h,{children:e(p,{children:"Alert with title only"})})]}),i[1]=n):n=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(f,{}),i[2]=o):o=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(a=t("div",{className:"flex flex-col gap-16 w-[600px]",children:[n,t(s,{color:"info",children:[o,e(h,{children:e(p,{children:"Information message without description"})})]})]}),i[3]=a):a=i[3],a},meta:y},{name:"WithCloseButton",story:()=>{let r,n,o,i=(0,l.c)(7),[c,d]=(0,a.useState)(!0),[y,b]=(0,a.useState)(!0);return i[0]!==c?(r=c&&t(s,{color:"info",children:[e(f,{}),t(h,{children:[e(p,{children:"Dismissable Alert"}),e(u,{children:"This alert can be closed by clicking the X button."})]}),e(m,{onClick:()=>d(!1)})]}),i[0]=c,i[1]=r):r=i[1],i[2]!==y?(n=y&&t(s,{color:"warning",children:[e(f,{}),e(h,{children:e(p,{children:"Warning with close"})}),e(m,{onClick:()=>b(!1)})]}),i[2]=y,i[3]=n):n=i[3],i[4]!==r||i[5]!==n?(o=t("div",{className:"flex flex-col gap-16 w-[600px]",children:[r,n]}),i[4]=r,i[5]=n,i[6]=o):o=i[6],o},meta:y},{name:"WithControls",story:()=>{let r,n,o,a,c,y,b,_,g,v=(0,l.c)(9);return v[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(f,{}),v[0]=r):r=v[0],v[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(h,{children:[e(p,{children:"Alert with Two Action Buttons"}),e(u,{children:"This alert has two action buttons on the right side without a close button."})]}),v[1]=n):n=v[1],v[2]===Symbol.for("react.memo_cache_sentinel")?(o=t(s,{color:"info",children:[r,n,t(d,{children:[e(i,{variant:"secondary",color:"neutral",size:"small",children:"Learn more"}),e(i,{variant:"secondary",color:"neutral",size:"small",children:"Dismiss"})]})]}),v[2]=o):o=v[2],v[3]===Symbol.for("react.memo_cache_sentinel")?(a=e(f,{}),v[3]=a):a=v[3],v[4]===Symbol.for("react.memo_cache_sentinel")?(c=t(h,{children:[e(p,{children:"Alert with Actions and Close"}),e(u,{children:"This alert has action buttons and a close button."})]}),v[4]=c):c=v[4],v[5]===Symbol.for("react.memo_cache_sentinel")?(y=t(s,{color:"info",children:[a,c,e(d,{children:e(i,{variant:"secondary",color:"neutral",size:"small",children:"Learn more"})}),e(m,{})]}),v[5]=y):y=v[5],v[6]===Symbol.for("react.memo_cache_sentinel")?(b=e(f,{}),v[6]=b):b=v[6],v[7]===Symbol.for("react.memo_cache_sentinel")?(_=t(h,{children:[e(p,{children:"Critical Error"}),e(u,{children:"An error occurred that requires your attention."})]}),v[7]=_):_=v[7],v[8]===Symbol.for("react.memo_cache_sentinel")?(g=t("div",{className:"flex flex-col gap-16 w-[600px]",children:[o,y,t(s,{color:"destructive",children:[b,_,e(d,{children:e(i,{variant:"secondary",color:"destructive",size:"small",children:"Fix now"})}),e(m,{})]})]}),v[8]=g):g=v[8],g},meta:y},{name:"WithBottomActions",story:()=>{let r,n,o,a,c,y,b,_,g=(0,l.c)(8);return g[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(f,{}),g[0]=r):r=g[0],g[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(p,{children:"Alert with Bottom Actions"}),o=e(u,{children:"This alert has action buttons at the bottom of the content area."}),g[1]=n,g[2]=o):(n=g[1],o=g[2]),g[3]===Symbol.for("react.memo_cache_sentinel")?(a=t(s,{color:"info",children:[r,t(h,{children:[n,o,t(d,{children:[e(i,{variant:"secondary",color:"neutral",size:"small",children:"Primary Action"}),e(i,{variant:"secondary",color:"neutral",size:"small",children:"Secondary"})]})]}),e(m,{})]}),g[3]=a):a=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(c=e(f,{}),g[4]=c):c=g[4],g[5]===Symbol.for("react.memo_cache_sentinel")?(y=e(p,{children:"Destructive Alert with Actions"}),b=e(u,{children:"This error requires immediate action. Please review and take necessary steps."}),g[5]=y,g[6]=b):(y=g[5],b=g[6]),g[7]===Symbol.for("react.memo_cache_sentinel")?(_=t("div",{className:"flex flex-col gap-16 w-[600px]",children:[a,t(s,{color:"destructive",children:[c,t(h,{children:[y,b,t(d,{children:[e(i,{variant:"secondary",color:"destructive",size:"small",children:"Delete"}),e(i,{variant:"secondary",color:"neutral",size:"small",children:"Cancel"})]})]})]})]}),g[7]=_):_=g[7],_},meta:y},{name:"MinMaxWidth",story:b,meta:y},{name:"MaxLines",story:()=>{let r,n,o,a,i,c,m,d,y,b=(0,l.c)(9);return b[0]===Symbol.for("react.memo_cache_sentinel")?(r=e("p",{className:"sb-annotation mb-8",children:"lineClamp 4"}),b[0]=r):r=b[0],b[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(f,{}),b[1]=n):n=b[1],b[2]===Symbol.for("react.memo_cache_sentinel")?(o=t("div",{children:[r,t(s,{color:"info",children:[n,t(h,{children:[e(p,{lineClamp:4,children:"This is a very long title that should be truncated after a certain number of lines. It keeps going and going to demonstrate the line clamp functionality. We need even more text to ensure it exceeds the maximum number of lines allowed."}),e(u,{lineClamp:4,children:"This is a very long description that demonstrates the text truncation feature. The description can be quite lengthy and should be limited to a maximum of 4 lines by default. When the text exceeds this limit, it will be truncated with an ellipsis. This behavior ensures that the alert remains compact and does not take up too much vertical space on the page. Additional text is added here to make sure the truncation is visible."})]})]})]}),a=e("p",{className:"sb-annotation mb-8",children:"lineClamp 2"}),b[2]=o,b[3]=a):(o=b[2],a=b[3]),b[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(f,{}),b[4]=i):i=b[4],b[5]===Symbol.for("react.memo_cache_sentinel")?(c=t("div",{children:[a,t(s,{color:"warning",children:[i,t(h,{children:[e(p,{lineClamp:2,children:"This is a very long title that should be truncated after a certain number of lines. It keeps going and going to demonstrate the line clamp functionality. We need even more text to ensure it exceeds the maximum number of lines allowed."}),e(u,{lineClamp:2,children:"This is a very long description that demonstrates the text truncation feature. The description can be quite lengthy and should be limited to a maximum of 4 lines by default. When the text exceeds this limit, it will be truncated with an ellipsis. This behavior ensures that the alert remains compact and does not take up too much vertical space on the page. Additional text is added here to make sure the truncation is visible."})]})]})]}),m=e("p",{className:"sb-annotation mb-8",children:"no clamp"}),b[5]=c,b[6]=m):(c=b[5],m=b[6]),b[7]===Symbol.for("react.memo_cache_sentinel")?(d=e(f,{}),b[7]=d):d=b[7],b[8]===Symbol.for("react.memo_cache_sentinel")?(y=t("div",{className:"flex flex-col gap-16 w-600",children:[o,c,t("div",{children:[m,t(s,{color:"success",children:[d,t(h,{children:[e(p,{children:"This is a very long title that should be truncated after a certain number of lines. It keeps going and going to demonstrate the line clamp functionality. We need even more text to ensure it exceeds the maximum number of lines allowed."}),e(u,{children:"This is a very long description that demonstrates the text truncation feature. The description can be quite lengthy and should be limited to a maximum of 4 lines by default. When the text exceeds this limit, it will be truncated with an ellipsis. This behavior ensures that the alert remains compact and does not take up too much vertical space on the page. Additional text is added here to make sure the truncation is visible."})]})]})]})]}),b[8]=y):y=b[8],y},meta:y},{name:"WithCode",story:()=>{let r,n,o,a,i,d,y,b,_=(0,l.c)(8);return _[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(f,{}),_[0]=r):r=_[0],_[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(p,{children:"Message goes here"}),o=e(u,{children:"Description goes here"}),_[1]=n,_[2]=o):(n=_[1],o=_[2]),_[3]===Symbol.for("react.memo_cache_sentinel")?(a=t(s,{color:"destructive",children:[r,t(h,{children:[n,o,e("div",{className:"pt-8",children:e(c,{size:"s",color:"destructive",children:"Optional code output"})})]})]}),_[3]=a):a=_[3],_[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(f,{}),_[4]=i):i=_[4],_[5]===Symbol.for("react.memo_cache_sentinel")?(d=e(p,{children:"Syntax Error in Configuration"}),y=e(u,{children:"An error occurred while parsing the configuration file."}),_[5]=d,_[6]=y):(d=_[5],y=_[6]),_[7]===Symbol.for("react.memo_cache_sentinel")?(b=t("div",{className:"flex flex-col gap-16 w-700",children:[a,t(s,{color:"destructive",children:[i,t(h,{children:[d,y,e("div",{className:"pt-8",children:e(c,{size:"s",color:"destructive",children:"Error: Unexpected token at line 42, column 15"})})]}),e(m,{})]})]}),_[7]=b):b=_[7],b},meta:y}];function g({entry:e}){let{story:t,meta:r}=e,n={...r.args,...t.args},o="function"==typeof t||t.$$typeof?t:t.render||r.render||r.component,l=()=>a.default.createElement(o,n),i={args:n,globals:{theme:"light"},parameters:{...r.parameters,...t.parameters},viewMode:"story"};for(let e of[...r.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,_.map((e,t)=>a.default.createElement(g,{key:t,entry:e})))),t}}})();
|