@wallarm-org/claude-design 0.0.0-stage → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -2
- package/bin/claude-design.js +347 -0
- package/dist/SETUP.md +130 -0
- package/dist/UPDATE.md +84 -0
- package/dist/assets/Icons/activity.svg +1 -0
- package/dist/assets/Icons/alt.svg +1 -0
- package/dist/assets/Icons/android-neutral.svg +1 -0
- package/dist/assets/Icons/android.svg +1 -0
- package/dist/assets/Icons/api.svg +1 -0
- package/dist/assets/Icons/apple-music-neutral.svg +1 -0
- package/dist/assets/Icons/apple-music.svg +1 -0
- package/dist/assets/Icons/apple-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts.svg +1 -0
- package/dist/assets/Icons/apple.svg +1 -0
- package/dist/assets/Icons/archive.svg +1 -0
- package/dist/assets/Icons/arrow-big-up-dash.svg +1 -0
- package/dist/assets/Icons/arrow-big-up.svg +1 -0
- package/dist/assets/Icons/arrow-down-left.svg +1 -0
- package/dist/assets/Icons/arrow-down-right.svg +1 -0
- package/dist/assets/Icons/arrow-down.svg +1 -0
- package/dist/assets/Icons/arrow-left.svg +1 -0
- package/dist/assets/Icons/arrow-right-alt.svg +1 -0
- package/dist/assets/Icons/arrow-right.svg +1 -0
- package/dist/assets/Icons/arrow-up-down.svg +1 -0
- package/dist/assets/Icons/arrow-up-left.svg +1 -0
- package/dist/assets/Icons/arrow-up-right.svg +1 -0
- package/dist/assets/Icons/arrow-up.svg +1 -0
- package/dist/assets/Icons/artstation-neutral.svg +1 -0
- package/dist/assets/Icons/artstation.svg +1 -0
- package/dist/assets/Icons/asterisk.svg +1 -0
- package/dist/assets/Icons/audio-waveform.svg +1 -0
- package/dist/assets/Icons/aws-neutral.svg +1 -0
- package/dist/assets/Icons/aws.svg +1 -0
- package/dist/assets/Icons/badge-check.svg +1 -0
- package/dist/assets/Icons/baidu-neutral.svg +1 -0
- package/dist/assets/Icons/baidu.svg +1 -0
- package/dist/assets/Icons/bandage.svg +1 -0
- package/dist/assets/Icons/behance-neutral.svg +1 -0
- package/dist/assets/Icons/behance.svg +1 -0
- package/dist/assets/Icons/bell-cog.svg +1 -0
- package/dist/assets/Icons/bell.svg +1 -0
- package/dist/assets/Icons/binary.svg +1 -0
- package/dist/assets/Icons/book-open.svg +1 -0
- package/dist/assets/Icons/book.svg +1 -0
- package/dist/assets/Icons/boosty-neutral.svg +1 -0
- package/dist/assets/Icons/boosty.svg +1 -0
- package/dist/assets/Icons/bot.svg +1 -0
- package/dist/assets/Icons/brain.svg +1 -0
- package/dist/assets/Icons/braze-neutral.svg +1 -0
- package/dist/assets/Icons/braze.svg +1 -0
- package/dist/assets/Icons/brevo-neutral.svg +1 -0
- package/dist/assets/Icons/brevo.svg +1 -0
- package/dist/assets/Icons/bug-off.svg +1 -0
- package/dist/assets/Icons/bug-play.svg +1 -0
- package/dist/assets/Icons/bug.svg +1 -0
- package/dist/assets/Icons/building.svg +1 -0
- package/dist/assets/Icons/building2.svg +1 -0
- package/dist/assets/Icons/calendar-check.svg +1 -0
- package/dist/assets/Icons/calendar-check2.svg +1 -0
- package/dist/assets/Icons/calendar-clock.svg +1 -0
- package/dist/assets/Icons/calendar-cog.svg +1 -0
- package/dist/assets/Icons/calendar-days.svg +1 -0
- package/dist/assets/Icons/calendar-fold.svg +1 -0
- package/dist/assets/Icons/calendar-heart.svg +1 -0
- package/dist/assets/Icons/calendar-minus.svg +1 -0
- package/dist/assets/Icons/calendar-minus2.svg +1 -0
- package/dist/assets/Icons/calendar-off.svg +1 -0
- package/dist/assets/Icons/calendar-plus.svg +1 -0
- package/dist/assets/Icons/calendar-plus2.svg +1 -0
- package/dist/assets/Icons/calendar-range.svg +1 -0
- package/dist/assets/Icons/calendar-search.svg +1 -0
- package/dist/assets/Icons/calendar-x.svg +1 -0
- package/dist/assets/Icons/calendar-x2.svg +1 -0
- package/dist/assets/Icons/calendar.svg +1 -0
- package/dist/assets/Icons/chart-area.svg +1 -0
- package/dist/assets/Icons/chart-bar.svg +1 -0
- package/dist/assets/Icons/chart-column.svg +1 -0
- package/dist/assets/Icons/chart-no-axes-column.svg +1 -0
- package/dist/assets/Icons/check-check.svg +1 -0
- package/dist/assets/Icons/check.svg +1 -0
- package/dist/assets/Icons/checkbox-indeterminate.svg +1 -0
- package/dist/assets/Icons/chevron-down.svg +1 -0
- package/dist/assets/Icons/chevron-first.svg +1 -0
- package/dist/assets/Icons/chevron-last.svg +1 -0
- package/dist/assets/Icons/chevron-left.svg +1 -0
- package/dist/assets/Icons/chevron-right.svg +1 -0
- package/dist/assets/Icons/chevron-up-down.svg +1 -0
- package/dist/assets/Icons/chevron-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down.svg +1 -0
- package/dist/assets/Icons/chevrons-left-right.svg +1 -0
- package/dist/assets/Icons/chevrons-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right.svg +1 -0
- package/dist/assets/Icons/chevrons-up-down.svg +1 -0
- package/dist/assets/Icons/chevrons-up.svg +1 -0
- package/dist/assets/Icons/circle-arrow-down.svg +1 -0
- package/dist/assets/Icons/circle-arrow-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-up.svg +1 -0
- package/dist/assets/Icons/circle-check-big.svg +1 -0
- package/dist/assets/Icons/circle-check.svg +1 -0
- package/dist/assets/Icons/circle-chevron-down.svg +1 -0
- package/dist/assets/Icons/circle-chevron-left.svg +1 -0
- package/dist/assets/Icons/circle-chevron-right.svg +1 -0
- package/dist/assets/Icons/circle-chevron-up.svg +1 -0
- package/dist/assets/Icons/circle-dashed.svg +1 -0
- package/dist/assets/Icons/circle-dot-dashed.svg +1 -0
- package/dist/assets/Icons/circle-ellipsis.svg +1 -0
- package/dist/assets/Icons/circle-gauge.svg +1 -0
- package/dist/assets/Icons/circle-help.svg +1 -0
- package/dist/assets/Icons/circle-minus.svg +1 -0
- package/dist/assets/Icons/circle-plus.svg +1 -0
- package/dist/assets/Icons/circle-slash.svg +1 -0
- package/dist/assets/Icons/circle-slash2.svg +1 -0
- package/dist/assets/Icons/circle-stop.svg +1 -0
- package/dist/assets/Icons/circle.svg +1 -0
- package/dist/assets/Icons/clipboard-check.svg +1 -0
- package/dist/assets/Icons/clipboard-x.svg +1 -0
- package/dist/assets/Icons/clipboard.svg +1 -0
- package/dist/assets/Icons/clock-fading.svg +1 -0
- package/dist/assets/Icons/clock.svg +1 -0
- package/dist/assets/Icons/cloud-off.svg +1 -0
- package/dist/assets/Icons/cloud-sync.svg +1 -0
- package/dist/assets/Icons/cloud.svg +1 -0
- package/dist/assets/Icons/code.svg +1 -0
- package/dist/assets/Icons/collapse.svg +1 -0
- package/dist/assets/Icons/columns3-cog.svg +1 -0
- package/dist/assets/Icons/command.svg +1 -0
- package/dist/assets/Icons/compass.svg +1 -0
- package/dist/assets/Icons/copy-slash.svg +1 -0
- package/dist/assets/Icons/copy.svg +1 -0
- package/dist/assets/Icons/corner-down-left.svg +1 -0
- package/dist/assets/Icons/corner-down-right.svg +1 -0
- package/dist/assets/Icons/corner-left-down.svg +1 -0
- package/dist/assets/Icons/corner-left-up.svg +1 -0
- package/dist/assets/Icons/corner-right-down.svg +1 -0
- package/dist/assets/Icons/corner-right-up.svg +1 -0
- package/dist/assets/Icons/corner-up-left.svg +1 -0
- package/dist/assets/Icons/corner-up-right.svg +1 -0
- package/dist/assets/Icons/cpu.svg +1 -0
- package/dist/assets/Icons/credit-card.svg +1 -0
- package/dist/assets/Icons/crosshair.svg +1 -0
- package/dist/assets/Icons/ctrl.svg +1 -0
- package/dist/assets/Icons/database.svg +1 -0
- package/dist/assets/Icons/devianart-neutral.svg +1 -0
- package/dist/assets/Icons/devianart.svg +1 -0
- package/dist/assets/Icons/discord-neutral.svg +1 -0
- package/dist/assets/Icons/discord.svg +1 -0
- package/dist/assets/Icons/dollar-sign.svg +1 -0
- package/dist/assets/Icons/dot.svg +1 -0
- package/dist/assets/Icons/download.svg +1 -0
- package/dist/assets/Icons/dprofile-neutral.svg +1 -0
- package/dist/assets/Icons/dprofile.svg +1 -0
- package/dist/assets/Icons/dribbble-neutral.svg +1 -0
- package/dist/assets/Icons/dribbble.svg +1 -0
- package/dist/assets/Icons/droplet.svg +1 -0
- package/dist/assets/Icons/duplicate.svg +1 -0
- package/dist/assets/Icons/dzen-neutral.svg +1 -0
- package/dist/assets/Icons/dzen.svg +1 -0
- package/dist/assets/Icons/earth-lock.svg +1 -0
- package/dist/assets/Icons/earth.svg +1 -0
- package/dist/assets/Icons/ellipsis.svg +1 -0
- package/dist/assets/Icons/expand.svg +1 -0
- package/dist/assets/Icons/external-link.svg +1 -0
- package/dist/assets/Icons/eye-off.svg +1 -0
- package/dist/assets/Icons/eye.svg +1 -0
- package/dist/assets/Icons/facebook-neutral.svg +1 -0
- package/dist/assets/Icons/facebook.svg +1 -0
- package/dist/assets/Icons/fast-forward.svg +1 -0
- package/dist/assets/Icons/figma-neutral.svg +1 -0
- package/dist/assets/Icons/figma.svg +1 -0
- package/dist/assets/Icons/file-down.svg +1 -0
- package/dist/assets/Icons/file-plus.svg +1 -0
- package/dist/assets/Icons/file-text.svg +1 -0
- package/dist/assets/Icons/file.svg +1 -0
- package/dist/assets/Icons/film.svg +1 -0
- package/dist/assets/Icons/filter-x.svg +1 -0
- package/dist/assets/Icons/filter.svg +1 -0
- package/dist/assets/Icons/fingerprint-pattern.svg +1 -0
- package/dist/assets/Icons/flag.svg +1 -0
- package/dist/assets/Icons/flask-conical.svg +1 -0
- package/dist/assets/Icons/folder.svg +1 -0
- package/dist/assets/Icons/funnel-plus.svg +1 -0
- package/dist/assets/Icons/ghost.svg +1 -0
- package/dist/assets/Icons/git-branch.svg +1 -0
- package/dist/assets/Icons/git-commit-horizontal.svg +1 -0
- package/dist/assets/Icons/git-commit-vertical.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows-alt.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows.svg +1 -0
- package/dist/assets/Icons/git-compare.svg +1 -0
- package/dist/assets/Icons/git-fork.svg +1 -0
- package/dist/assets/Icons/git-graph.svg +1 -0
- package/dist/assets/Icons/git-merge.svg +1 -0
- package/dist/assets/Icons/git-pull-request-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-closed.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create.svg +1 -0
- package/dist/assets/Icons/git-pull-request-draft.svg +1 -0
- package/dist/assets/Icons/git-pull-request.svg +1 -0
- package/dist/assets/Icons/github-neutral.svg +1 -0
- package/dist/assets/Icons/github.svg +1 -0
- package/dist/assets/Icons/globe-lock.svg +1 -0
- package/dist/assets/Icons/globe.svg +1 -0
- package/dist/assets/Icons/gmail-neutral.svg +1 -0
- package/dist/assets/Icons/gmail.svg +1 -0
- package/dist/assets/Icons/google-meet-neutral.svg +1 -0
- package/dist/assets/Icons/google-meet.svg +1 -0
- package/dist/assets/Icons/google-neutral.svg +1 -0
- package/dist/assets/Icons/google-play-neutral.svg +1 -0
- package/dist/assets/Icons/google-play.svg +1 -0
- package/dist/assets/Icons/google-podcast-neutral.svg +1 -0
- package/dist/assets/Icons/google-podcast.svg +1 -0
- package/dist/assets/Icons/google.svg +1 -0
- package/dist/assets/Icons/grip-horizontal.svg +1 -0
- package/dist/assets/Icons/grip-vertical.svg +1 -0
- package/dist/assets/Icons/hammer.svg +1 -0
- package/dist/assets/Icons/heart-pulse.svg +1 -0
- package/dist/assets/Icons/history.svg +1 -0
- package/dist/assets/Icons/home.svg +1 -0
- package/dist/assets/Icons/imo-neutral.svg +1 -0
- package/dist/assets/Icons/imo.svg +1 -0
- package/dist/assets/Icons/infinity.svg +1 -0
- package/dist/assets/Icons/info.svg +1 -0
- package/dist/assets/Icons/infobip-neutral.svg +1 -0
- package/dist/assets/Icons/infobip.svg +1 -0
- package/dist/assets/Icons/instagram-neutral.svg +1 -0
- package/dist/assets/Icons/instagram.svg +1 -0
- package/dist/assets/Icons/key-round.svg +1 -0
- package/dist/assets/Icons/key-square.svg +1 -0
- package/dist/assets/Icons/keyboard.svg +1 -0
- package/dist/assets/Icons/kickstarter-neutral.svg +1 -0
- package/dist/assets/Icons/kickstarter.svg +1 -0
- package/dist/assets/Icons/laptop.svg +1 -0
- package/dist/assets/Icons/layers.svg +1 -0
- package/dist/assets/Icons/layers2.svg +1 -0
- package/dist/assets/Icons/layers3.svg +1 -0
- package/dist/assets/Icons/layout-dashboard.svg +1 -0
- package/dist/assets/Icons/layout-grid.svg +1 -0
- package/dist/assets/Icons/layout-list.svg +1 -0
- package/dist/assets/Icons/layout-panel-left.svg +1 -0
- package/dist/assets/Icons/layout-panel-top.svg +1 -0
- package/dist/assets/Icons/layout-template.svg +1 -0
- package/dist/assets/Icons/library-big.svg +1 -0
- package/dist/assets/Icons/life-buoy.svg +1 -0
- package/dist/assets/Icons/lightbulb-off.svg +1 -0
- package/dist/assets/Icons/lightbulb.svg +1 -0
- package/dist/assets/Icons/line-neutral.svg +1 -0
- package/dist/assets/Icons/line.svg +1 -0
- package/dist/assets/Icons/link.svg +1 -0
- package/dist/assets/Icons/link2-off.svg +1 -0
- package/dist/assets/Icons/link2.svg +1 -0
- package/dist/assets/Icons/linkedin-neutral.svg +1 -0
- package/dist/assets/Icons/linkedin.svg +1 -0
- package/dist/assets/Icons/list-checks.svg +1 -0
- package/dist/assets/Icons/list-collapse.svg +1 -0
- package/dist/assets/Icons/list-filter.svg +1 -0
- package/dist/assets/Icons/list-minus.svg +1 -0
- package/dist/assets/Icons/list-ordered.svg +1 -0
- package/dist/assets/Icons/list-plus.svg +1 -0
- package/dist/assets/Icons/list-restart.svg +1 -0
- package/dist/assets/Icons/list-start.svg +1 -0
- package/dist/assets/Icons/list-todo.svg +1 -0
- package/dist/assets/Icons/list-tree.svg +1 -0
- package/dist/assets/Icons/list-video.svg +1 -0
- package/dist/assets/Icons/list-x.svg +1 -0
- package/dist/assets/Icons/list.svg +1 -0
- package/dist/assets/Icons/loader-circle.svg +1 -0
- package/dist/assets/Icons/loader.svg +1 -0
- package/dist/assets/Icons/lock-open.svg +1 -0
- package/dist/assets/Icons/lock.svg +1 -0
- package/dist/assets/Icons/log-in.svg +1 -0
- package/dist/assets/Icons/log-out.svg +1 -0
- package/dist/assets/Icons/mail-check.svg +1 -0
- package/dist/assets/Icons/mail-minus.svg +1 -0
- package/dist/assets/Icons/mail-open.svg +1 -0
- package/dist/assets/Icons/mail-plus.svg +1 -0
- package/dist/assets/Icons/mail-question.svg +1 -0
- package/dist/assets/Icons/mail-search.svg +1 -0
- package/dist/assets/Icons/mail-warning.svg +1 -0
- package/dist/assets/Icons/mail-x.svg +1 -0
- package/dist/assets/Icons/mail.svg +1 -0
- package/dist/assets/Icons/mailbox.svg +1 -0
- package/dist/assets/Icons/mailersend-neutral.svg +1 -0
- package/dist/assets/Icons/mailersend.svg +1 -0
- package/dist/assets/Icons/mailgun-neutral.svg +1 -0
- package/dist/assets/Icons/mailgun.svg +1 -0
- package/dist/assets/Icons/mailjet-neutral.svg +1 -0
- package/dist/assets/Icons/mailjet.svg +1 -0
- package/dist/assets/Icons/mails.svg +1 -0
- package/dist/assets/Icons/mailtrap-neutral.svg +1 -0
- package/dist/assets/Icons/mailtrap.svg +1 -0
- package/dist/assets/Icons/mandrill-neutral.svg +1 -0
- package/dist/assets/Icons/mandrill.svg +1 -0
- package/dist/assets/Icons/map-pin.svg +1 -0
- package/dist/assets/Icons/maqsam-neutral.svg +1 -0
- package/dist/assets/Icons/maqsam.svg +1 -0
- package/dist/assets/Icons/mattermost-neutral.svg +1 -0
- package/dist/assets/Icons/mattermost.svg +1 -0
- package/dist/assets/Icons/maximize.svg +1 -0
- package/dist/assets/Icons/maximize2.svg +1 -0
- package/dist/assets/Icons/medium-neutral.svg +1 -0
- package/dist/assets/Icons/medium.svg +1 -0
- package/dist/assets/Icons/megaphone-off.svg +1 -0
- package/dist/assets/Icons/megaphone.svg +1 -0
- package/dist/assets/Icons/menu.svg +1 -0
- package/dist/assets/Icons/merge.svg +1 -0
- package/dist/assets/Icons/message-square-code.svg +1 -0
- package/dist/assets/Icons/message-square-dashed.svg +1 -0
- package/dist/assets/Icons/message-square-diff.svg +1 -0
- package/dist/assets/Icons/message-square-dot.svg +1 -0
- package/dist/assets/Icons/message-square-heart.svg +1 -0
- package/dist/assets/Icons/message-square-off.svg +1 -0
- package/dist/assets/Icons/message-square-plus.svg +1 -0
- package/dist/assets/Icons/message-square-quote.svg +1 -0
- package/dist/assets/Icons/message-square-reply.svg +1 -0
- package/dist/assets/Icons/message-square-share.svg +1 -0
- package/dist/assets/Icons/message-square-text.svg +1 -0
- package/dist/assets/Icons/message-square-warning.svg +1 -0
- package/dist/assets/Icons/message-square-x.svg +1 -0
- package/dist/assets/Icons/message-square.svg +1 -0
- package/dist/assets/Icons/messages-square.svg +1 -0
- package/dist/assets/Icons/messenger-neutral.svg +1 -0
- package/dist/assets/Icons/messenger.svg +1 -0
- package/dist/assets/Icons/microsoft-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams.svg +1 -0
- package/dist/assets/Icons/microsoft.svg +1 -0
- package/dist/assets/Icons/minimize.svg +1 -0
- package/dist/assets/Icons/minimize2.svg +1 -0
- package/dist/assets/Icons/minus.svg +1 -0
- package/dist/assets/Icons/moon.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-ban.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-click.svg +1 -0
- package/dist/assets/Icons/mouse-pointer.svg +1 -0
- package/dist/assets/Icons/mouse-pointer2.svg +1 -0
- package/dist/assets/Icons/mouse.svg +1 -0
- package/dist/assets/Icons/move-diagonal.svg +1 -0
- package/dist/assets/Icons/move-diagonal2.svg +1 -0
- package/dist/assets/Icons/move-down-left.svg +1 -0
- package/dist/assets/Icons/move-down-right.svg +1 -0
- package/dist/assets/Icons/move-down.svg +1 -0
- package/dist/assets/Icons/move-horizontal.svg +1 -0
- package/dist/assets/Icons/move-left.svg +1 -0
- package/dist/assets/Icons/move-right.svg +1 -0
- package/dist/assets/Icons/move-up-left.svg +1 -0
- package/dist/assets/Icons/move-up-right.svg +1 -0
- package/dist/assets/Icons/move-up.svg +1 -0
- package/dist/assets/Icons/move-vertical.svg +1 -0
- package/dist/assets/Icons/move3-d.svg +1 -0
- package/dist/assets/Icons/netcore-neutral.svg +1 -0
- package/dist/assets/Icons/netcore.svg +1 -0
- package/dist/assets/Icons/notebook-pen.svg +1 -0
- package/dist/assets/Icons/notebook-tabs.svg +1 -0
- package/dist/assets/Icons/notebook-text.svg +1 -0
- package/dist/assets/Icons/notebook.svg +1 -0
- package/dist/assets/Icons/notepad-text-dashed.svg +1 -0
- package/dist/assets/Icons/notepad-text.svg +1 -0
- package/dist/assets/Icons/notion-neutral.svg +1 -0
- package/dist/assets/Icons/notion.svg +1 -0
- package/dist/assets/Icons/octagon-alert.svg +1 -0
- package/dist/assets/Icons/octagon-pause.svg +1 -0
- package/dist/assets/Icons/octagon-x.svg +1 -0
- package/dist/assets/Icons/octagon.svg +1 -0
- package/dist/assets/Icons/ok-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign.svg +1 -0
- package/dist/assets/Icons/ok.svg +1 -0
- package/dist/assets/Icons/onlyfans-neutral.svg +1 -0
- package/dist/assets/Icons/onlyfans.svg +1 -0
- package/dist/assets/Icons/option.svg +1 -0
- package/dist/assets/Icons/outlook365-neutral.svg +1 -0
- package/dist/assets/Icons/outlook365.svg +1 -0
- package/dist/assets/Icons/paintbrush.svg +1 -0
- package/dist/assets/Icons/panel-bottom-open.svg +1 -0
- package/dist/assets/Icons/panel-bottom.svg +1 -0
- package/dist/assets/Icons/panel-left-close.svg +1 -0
- package/dist/assets/Icons/panel-left-dashed.svg +1 -0
- package/dist/assets/Icons/panel-left-open.svg +1 -0
- package/dist/assets/Icons/panel-left.svg +1 -0
- package/dist/assets/Icons/panel-right-animated.svg +1 -0
- package/dist/assets/Icons/panel-right-close.svg +1 -0
- package/dist/assets/Icons/panel-right-dashed.svg +1 -0
- package/dist/assets/Icons/panel-right-open.svg +1 -0
- package/dist/assets/Icons/panel-right.svg +1 -0
- package/dist/assets/Icons/panel-top-bottom-dashed.svg +1 -0
- package/dist/assets/Icons/panel-top-close.svg +1 -0
- package/dist/assets/Icons/panel-top-open.svg +1 -0
- package/dist/assets/Icons/panel-top.svg +1 -0
- package/dist/assets/Icons/panels-left-bottom.svg +1 -0
- package/dist/assets/Icons/panels-right-bottom.svg +1 -0
- package/dist/assets/Icons/panels-top-left.svg +1 -0
- package/dist/assets/Icons/paperclip.svg +1 -0
- package/dist/assets/Icons/patreon-neutral.svg +1 -0
- package/dist/assets/Icons/patreon.svg +1 -0
- package/dist/assets/Icons/paypal-neutral.svg +1 -0
- package/dist/assets/Icons/paypal.svg +1 -0
- package/dist/assets/Icons/pen-line.svg +1 -0
- package/dist/assets/Icons/pen-off.svg +1 -0
- package/dist/assets/Icons/pen-tool.svg +1 -0
- package/dist/assets/Icons/pen.svg +1 -0
- package/dist/assets/Icons/pencil-line.svg +1 -0
- package/dist/assets/Icons/pencil-off.svg +1 -0
- package/dist/assets/Icons/pencil-ruler.svg +1 -0
- package/dist/assets/Icons/pencil.svg +1 -0
- package/dist/assets/Icons/pentagon.svg +1 -0
- package/dist/assets/Icons/percentage.svg +1 -0
- package/dist/assets/Icons/phone.svg +1 -0
- package/dist/assets/Icons/pin-off.svg +1 -0
- package/dist/assets/Icons/pin.svg +1 -0
- package/dist/assets/Icons/pinterest-neutral.svg +1 -0
- package/dist/assets/Icons/pinterest.svg +1 -0
- package/dist/assets/Icons/play.svg +1 -0
- package/dist/assets/Icons/plug.svg +1 -0
- package/dist/assets/Icons/plunk-neutral.svg +1 -0
- package/dist/assets/Icons/plunk.svg +1 -0
- package/dist/assets/Icons/plus.svg +1 -0
- package/dist/assets/Icons/postmark-neutral.svg +1 -0
- package/dist/assets/Icons/postmark.svg +1 -0
- package/dist/assets/Icons/product-hunt-neutral.svg +1 -0
- package/dist/assets/Icons/product-hunt.svg +1 -0
- package/dist/assets/Icons/quora-neutral.svg +1 -0
- package/dist/assets/Icons/quora.svg +1 -0
- package/dist/assets/Icons/quote.svg +1 -0
- package/dist/assets/Icons/radar.svg +1 -0
- package/dist/assets/Icons/reddit-neutral.svg +1 -0
- package/dist/assets/Icons/reddit.svg +1 -0
- package/dist/assets/Icons/redo-dot.svg +1 -0
- package/dist/assets/Icons/redo.svg +1 -0
- package/dist/assets/Icons/redo2.svg +1 -0
- package/dist/assets/Icons/refresh-ccw.svg +1 -0
- package/dist/assets/Icons/refresh-cw-off.svg +1 -0
- package/dist/assets/Icons/resend-neutral.svg +1 -0
- package/dist/assets/Icons/resend.svg +1 -0
- package/dist/assets/Icons/rss.svg +1 -0
- package/dist/assets/Icons/rules.svg +1 -0
- package/dist/assets/Icons/scan-line.svg +1 -0
- package/dist/assets/Icons/scroll-text.svg +1 -0
- package/dist/assets/Icons/search-hint.svg +1 -0
- package/dist/assets/Icons/search-x.svg +1 -0
- package/dist/assets/Icons/search.svg +1 -0
- package/dist/assets/Icons/sendgrid-neutral.svg +1 -0
- package/dist/assets/Icons/sendgrid.svg +1 -0
- package/dist/assets/Icons/server.svg +1 -0
- package/dist/assets/Icons/ses-neutral.svg +1 -0
- package/dist/assets/Icons/ses.svg +1 -0
- package/dist/assets/Icons/settings.svg +1 -0
- package/dist/assets/Icons/settings2.svg +1 -0
- package/dist/assets/Icons/shapes.svg +1 -0
- package/dist/assets/Icons/share.svg +1 -0
- package/dist/assets/Icons/sheet.svg +1 -0
- package/dist/assets/Icons/shield-alert.svg +1 -0
- package/dist/assets/Icons/shield-ban.svg +1 -0
- package/dist/assets/Icons/shield-check.svg +1 -0
- package/dist/assets/Icons/shield-ellipsis.svg +1 -0
- package/dist/assets/Icons/shield-half.svg +1 -0
- package/dist/assets/Icons/shield-minus.svg +1 -0
- package/dist/assets/Icons/shield-off.svg +1 -0
- package/dist/assets/Icons/shield-plus.svg +1 -0
- package/dist/assets/Icons/shield-question.svg +1 -0
- package/dist/assets/Icons/shield-user.svg +1 -0
- package/dist/assets/Icons/shield-x.svg +1 -0
- package/dist/assets/Icons/shield.svg +1 -0
- package/dist/assets/Icons/shift.svg +1 -0
- package/dist/assets/Icons/signal-neutral.svg +1 -0
- package/dist/assets/Icons/signal.svg +1 -0
- package/dist/assets/Icons/signpost.svg +1 -0
- package/dist/assets/Icons/sina-weibo-neutral.svg +1 -0
- package/dist/assets/Icons/sina-weibo.svg +1 -0
- package/dist/assets/Icons/skull.svg +1 -0
- package/dist/assets/Icons/skype-neutral.svg +1 -0
- package/dist/assets/Icons/skype.svg +1 -0
- package/dist/assets/Icons/slack-neutral.svg +1 -0
- package/dist/assets/Icons/slack.svg +1 -0
- package/dist/assets/Icons/sliders-horizontal.svg +1 -0
- package/dist/assets/Icons/sliders-vertical.svg +1 -0
- package/dist/assets/Icons/smtp-neutral.svg +1 -0
- package/dist/assets/Icons/smtp.svg +1 -0
- package/dist/assets/Icons/snapchat-neutral.svg +1 -0
- package/dist/assets/Icons/snapchat.svg +1 -0
- package/dist/assets/Icons/soundcloud-neutral.svg +1 -0
- package/dist/assets/Icons/soundcloud.svg +1 -0
- package/dist/assets/Icons/space.svg +1 -0
- package/dist/assets/Icons/sparkpost-neutral.svg +1 -0
- package/dist/assets/Icons/sparkpost.svg +1 -0
- package/dist/assets/Icons/speed.svg +1 -0
- package/dist/assets/Icons/split.svg +1 -0
- package/dist/assets/Icons/spotify-neutral.svg +1 -0
- package/dist/assets/Icons/spotify.svg +1 -0
- package/dist/assets/Icons/square-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/square-minus.svg +1 -0
- package/dist/assets/Icons/square-pen.svg +1 -0
- package/dist/assets/Icons/square-plus.svg +1 -0
- package/dist/assets/Icons/square-user-round.svg +1 -0
- package/dist/assets/Icons/stack-overflow-neutral.svg +1 -0
- package/dist/assets/Icons/stack-overflow.svg +1 -0
- package/dist/assets/Icons/star.svg +1 -0
- package/dist/assets/Icons/sun.svg +1 -0
- package/dist/assets/Icons/syringe.svg +1 -0
- package/dist/assets/Icons/tag.svg +1 -0
- package/dist/assets/Icons/target.svg +1 -0
- package/dist/assets/Icons/teams-neutral.svg +1 -0
- package/dist/assets/Icons/teams.svg +1 -0
- package/dist/assets/Icons/telegram-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign.svg +1 -0
- package/dist/assets/Icons/telegram.svg +1 -0
- package/dist/assets/Icons/terminal.svg +1 -0
- package/dist/assets/Icons/test-policies.svg +1 -0
- package/dist/assets/Icons/threads-neutral.svg +1 -0
- package/dist/assets/Icons/threads.svg +1 -0
- package/dist/assets/Icons/thumbs-down.svg +1 -0
- package/dist/assets/Icons/thumbs-up.svg +1 -0
- package/dist/assets/Icons/tiktok-neutral.svg +1 -0
- package/dist/assets/Icons/tiktok.svg +1 -0
- package/dist/assets/Icons/tinder-neutral.svg +1 -0
- package/dist/assets/Icons/tinder.svg +1 -0
- package/dist/assets/Icons/trash.svg +1 -0
- package/dist/assets/Icons/trash2.svg +1 -0
- package/dist/assets/Icons/triangle-alert.svg +1 -0
- package/dist/assets/Icons/tumblr-neutral.svg +1 -0
- package/dist/assets/Icons/tumblr.svg +1 -0
- package/dist/assets/Icons/twitch-neutral.svg +1 -0
- package/dist/assets/Icons/twitch.svg +1 -0
- package/dist/assets/Icons/undo-dot.svg +1 -0
- package/dist/assets/Icons/undo.svg +1 -0
- package/dist/assets/Icons/undo2.svg +1 -0
- package/dist/assets/Icons/unplug.svg +1 -0
- package/dist/assets/Icons/user-check.svg +1 -0
- package/dist/assets/Icons/user-minus.svg +1 -0
- package/dist/assets/Icons/user-plus.svg +1 -0
- package/dist/assets/Icons/user-round-x.svg +1 -0
- package/dist/assets/Icons/user-round.svg +1 -0
- package/dist/assets/Icons/user.svg +1 -0
- package/dist/assets/Icons/username.svg +1 -0
- package/dist/assets/Icons/users-round.svg +1 -0
- package/dist/assets/Icons/users.svg +1 -0
- package/dist/assets/Icons/viber-neutral.svg +1 -0
- package/dist/assets/Icons/viber.svg +1 -0
- package/dist/assets/Icons/video.svg +1 -0
- package/dist/assets/Icons/vimeo-neutral.svg +1 -0
- package/dist/assets/Icons/vimeo.svg +1 -0
- package/dist/assets/Icons/vk-music-neutral.svg +1 -0
- package/dist/assets/Icons/vk-music.svg +1 -0
- package/dist/assets/Icons/vk-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign.svg +1 -0
- package/dist/assets/Icons/vk.svg +1 -0
- package/dist/assets/Icons/webhook-neutral.svg +1 -0
- package/dist/assets/Icons/webhook.svg +1 -0
- package/dist/assets/Icons/wechat-neutral.svg +1 -0
- package/dist/assets/Icons/wechat.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge.svg +1 -0
- package/dist/assets/Icons/whatsapp-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp.svg +1 -0
- package/dist/assets/Icons/workflow.svg +1 -0
- package/dist/assets/Icons/wrap-text.svg +1 -0
- package/dist/assets/Icons/wrench.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter-neutral.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter.svg +1 -0
- package/dist/assets/Icons/x.svg +1 -0
- package/dist/assets/Icons/xing-neutral.svg +1 -0
- package/dist/assets/Icons/xing.svg +1 -0
- package/dist/assets/Icons/yandex-music-neutral.svg +1 -0
- package/dist/assets/Icons/yandex-music.svg +1 -0
- package/dist/assets/Icons/yelp-neutral.svg +1 -0
- package/dist/assets/Icons/yelp.svg +1 -0
- package/dist/assets/Icons/youtube-music-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-music.svg +1 -0
- package/dist/assets/Icons/youtube-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts.svg +1 -0
- package/dist/assets/Icons/youtube.svg +1 -0
- package/dist/assets/Icons/zap.svg +1 -0
- package/dist/assets/Icons/zoom-in.svg +1 -0
- package/dist/assets/Icons/zoom-neutral.svg +1 -0
- package/dist/assets/Icons/zoom-out.svg +1 -0
- package/dist/assets/Icons/zoom.svg +1 -0
- package/dist/assets/Icons/zulip-neutral.svg +1 -0
- package/dist/assets/Icons/zulip.svg +1 -0
- package/dist/assets/Logos/wallarm.svg +1 -0
- package/dist/assets.json +4666 -0
- package/dist/project/README.md +265 -0
- package/dist/project/components/Accordion/README.md +354 -0
- package/dist/project/components/Accordion/preview.html +2 -0
- package/dist/project/components/Accordion/stories.js +12 -0
- package/dist/project/components/AgentAvatar/README.md +127 -0
- package/dist/project/components/AgentAvatar/preview.html +2 -0
- package/dist/project/components/AgentAvatar/stories.js +12 -0
- package/dist/project/components/AgentAvatar/stories.md +1805 -0
- package/dist/project/components/AgentGlyph/README.md +1182 -0
- package/dist/project/components/AgentGlyph/preview.html +2 -0
- package/dist/project/components/AgentGlyph/stories.js +12 -0
- package/dist/project/components/AgentLookBuilder/README.md +269 -0
- package/dist/project/components/AgentLookBuilder/preview.html +2 -0
- package/dist/project/components/AgentLookBuilder/stories.js +12 -0
- package/dist/project/components/Alert/README.md +492 -0
- package/dist/project/components/Alert/preview.html +2 -0
- package/dist/project/components/Alert/stories.js +12 -0
- package/dist/project/components/AnimatedBackground/README.md +124 -0
- package/dist/project/components/AnimatedBackground/preview.html +2 -0
- package/dist/project/components/AnimatedBackground/stories.js +12 -0
- package/dist/project/components/AppShell/README.md +75 -0
- package/dist/project/components/AppShell/preview.html +2 -0
- package/dist/project/components/AppShell/stories.js +28 -0
- package/dist/project/components/AppShell/stories.md +2878 -0
- package/dist/project/components/ApprovalCard/README.md +353 -0
- package/dist/project/components/ApprovalCard/preview.html +2 -0
- package/dist/project/components/ApprovalCard/stories.js +12 -0
- package/dist/project/components/AreaChart/README.md +673 -0
- package/dist/project/components/AreaChart/preview.html +2 -0
- package/dist/project/components/AreaChart/stories.js +12 -0
- package/dist/project/components/AssistantMessage/README.md +724 -0
- package/dist/project/components/AssistantMessage/preview.html +2 -0
- package/dist/project/components/AssistantMessage/stories.js +55 -0
- package/dist/project/components/Attribute/README.md +1174 -0
- package/dist/project/components/Attribute/preview.html +2 -0
- package/dist/project/components/Attribute/stories.js +12 -0
- package/dist/project/components/Avatar/README.md +416 -0
- package/dist/project/components/Avatar/preview.html +2 -0
- package/dist/project/components/Avatar/stories.js +12 -0
- package/dist/project/components/Badge/README.md +853 -0
- package/dist/project/components/Badge/preview.html +2 -0
- package/dist/project/components/Badge/stories.js +12 -0
- package/dist/project/components/Banner/README.md +341 -0
- package/dist/project/components/Banner/preview.html +2 -0
- package/dist/project/components/Banner/stories.js +12 -0
- package/dist/project/components/BarList/README.md +757 -0
- package/dist/project/components/BarList/preview.html +2 -0
- package/dist/project/components/BarList/stories.js +12 -0
- package/dist/project/components/Breadcrumbs/README.md +274 -0
- package/dist/project/components/Breadcrumbs/preview.html +2 -0
- package/dist/project/components/Breadcrumbs/stories.js +12 -0
- package/dist/project/components/BulkBar/README.md +19 -0
- package/dist/project/components/Button/README.md +467 -0
- package/dist/project/components/Button/preview.html +2 -0
- package/dist/project/components/Button/stories.js +12 -0
- package/dist/project/components/Calendar/README.md +654 -0
- package/dist/project/components/Calendar/preview.html +2 -0
- package/dist/project/components/Calendar/stories.js +12 -0
- package/dist/project/components/Card/README.md +367 -0
- package/dist/project/components/Card/preview.html +2 -0
- package/dist/project/components/Card/stories.js +12 -0
- package/dist/project/components/ChainOfThought/README.md +412 -0
- package/dist/project/components/ChainOfThought/preview.html +2 -0
- package/dist/project/components/ChainOfThought/stories.js +12 -0
- package/dist/project/components/Chart/README.md +224 -0
- package/dist/project/components/Chart/preview.html +2 -0
- package/dist/project/components/Chart/stories.js +12 -0
- package/dist/project/components/Chat/README.md +1244 -0
- package/dist/project/components/Chat/preview.html +2 -0
- package/dist/project/components/Chat/stories.js +12 -0
- package/dist/project/components/ChatInput/README.md +378 -0
- package/dist/project/components/ChatInput/preview.html +2 -0
- package/dist/project/components/ChatInput/stories.js +12 -0
- package/dist/project/components/ChatPermissions/README.md +218 -0
- package/dist/project/components/ChatPermissions/preview.html +2 -0
- package/dist/project/components/ChatPermissions/stories.js +12 -0
- package/dist/project/components/Checkbox/README.md +367 -0
- package/dist/project/components/Checkbox/preview.html +2 -0
- package/dist/project/components/Checkbox/stories.js +12 -0
- package/dist/project/components/Code/README.md +243 -0
- package/dist/project/components/Code/preview.html +2 -0
- package/dist/project/components/Code/stories.js +12 -0
- package/dist/project/components/CodeEditor/README.md +280 -0
- package/dist/project/components/CodeEditor/preview.html +2 -0
- package/dist/project/components/CodeEditor/stories.js +162 -0
- package/dist/project/components/CodeEditor/stories.md +1533 -0
- package/dist/project/components/CodeSnippet/README.md +1352 -0
- package/dist/project/components/CodeSnippet/preview.html +2 -0
- package/dist/project/components/CodeSnippet/stories.js +156 -0
- package/dist/project/components/ColumnChart/README.md +521 -0
- package/dist/project/components/ColumnChart/preview.html +2 -0
- package/dist/project/components/ColumnChart/stories.js +12 -0
- package/dist/project/components/Conversation/README.md +314 -0
- package/dist/project/components/Conversation/preview.html +2 -0
- package/dist/project/components/Conversation/stories.js +12 -0
- package/dist/project/components/Copyable/README.md +406 -0
- package/dist/project/components/Copyable/preview.html +2 -0
- package/dist/project/components/Copyable/stories.js +12 -0
- package/dist/project/components/Country/README.md +226 -0
- package/dist/project/components/Country/preview.html +2 -0
- package/dist/project/components/Country/stories.js +12 -0
- package/dist/project/components/Cover/preview.html +43 -0
- package/dist/project/components/DateInput/README.md +458 -0
- package/dist/project/components/DateInput/preview.html +2 -0
- package/dist/project/components/DateInput/stories.js +12 -0
- package/dist/project/components/DateRangeInput/README.md +412 -0
- package/dist/project/components/DateRangeInput/preview.html +2 -0
- package/dist/project/components/DateRangeInput/stories.js +12 -0
- package/dist/project/components/Dialog/README.md +1140 -0
- package/dist/project/components/Dialog/preview.html +2 -0
- package/dist/project/components/Dialog/stories.js +12 -0
- package/dist/project/components/Drawer/README.md +1163 -0
- package/dist/project/components/Drawer/preview.html +2 -0
- package/dist/project/components/Drawer/stories.js +12 -0
- package/dist/project/components/DropdownMenu/README.md +678 -0
- package/dist/project/components/DropdownMenu/preview.html +2 -0
- package/dist/project/components/DropdownMenu/stories.js +12 -0
- package/dist/project/components/EmptyState/README.md +276 -0
- package/dist/project/components/EmptyState/preview.html +2 -0
- package/dist/project/components/EmptyState/stories.js +12 -0
- package/dist/project/components/FeedbackPulse/README.md +125 -0
- package/dist/project/components/FeedbackPulse/preview.html +2 -0
- package/dist/project/components/FeedbackPulse/stories.js +12 -0
- package/dist/project/components/Field/README.md +676 -0
- package/dist/project/components/Field/preview.html +2 -0
- package/dist/project/components/Field/stories.js +12 -0
- package/dist/project/components/FileUpload/README.md +544 -0
- package/dist/project/components/FileUpload/preview.html +2 -0
- package/dist/project/components/FileUpload/stories.js +12 -0
- package/dist/project/components/FilterCascade/README.md +348 -0
- package/dist/project/components/FilterCascade/preview.html +2 -0
- package/dist/project/components/FilterCascade/stories.js +12 -0
- package/dist/project/components/FilterDropdown/README.md +542 -0
- package/dist/project/components/FilterDropdown/preview.html +2 -0
- package/dist/project/components/FilterDropdown/stories.js +12 -0
- package/dist/project/components/FilterInput/README.md +416 -0
- package/dist/project/components/FilterInput/preview.html +2 -0
- package/dist/project/components/FilterInput/stories.js +12 -0
- package/dist/project/components/FilterInput/stories.md +6682 -0
- package/dist/project/components/Flex/README.md +225 -0
- package/dist/project/components/Flex/preview.html +2 -0
- package/dist/project/components/Flex/stories.js +12 -0
- package/dist/project/components/FormatDateTime/README.md +315 -0
- package/dist/project/components/FormatDateTime/preview.html +2 -0
- package/dist/project/components/FormatDateTime/stories.js +12 -0
- package/dist/project/components/FormatNumber/README.md +317 -0
- package/dist/project/components/FormatNumber/preview.html +2 -0
- package/dist/project/components/FormatNumber/stories.js +12 -0
- package/dist/project/components/Heading/README.md +240 -0
- package/dist/project/components/Heading/preview.html +2 -0
- package/dist/project/components/Heading/stories.js +12 -0
- package/dist/project/components/HorizontalBarStack/README.md +281 -0
- package/dist/project/components/HorizontalBarStack/preview.html +2 -0
- package/dist/project/components/HorizontalBarStack/stories.js +12 -0
- package/dist/project/components/HttpMethod/README.md +137 -0
- package/dist/project/components/HttpMethod/preview.html +2 -0
- package/dist/project/components/HttpMethod/stories.js +12 -0
- package/dist/project/components/ImageCropper/README.md +332 -0
- package/dist/project/components/ImageCropper/preview.html +2 -0
- package/dist/project/components/ImageCropper/stories.js +33 -0
- package/dist/project/components/Indicator/README.md +110 -0
- package/dist/project/components/Indicator/preview.html +2 -0
- package/dist/project/components/Indicator/stories.js +12 -0
- package/dist/project/components/InlineEdit/README.md +977 -0
- package/dist/project/components/InlineEdit/preview.html +2 -0
- package/dist/project/components/InlineEdit/stories.js +12 -0
- package/dist/project/components/Input/README.md +187 -0
- package/dist/project/components/Input/preview.html +2 -0
- package/dist/project/components/Input/stories.js +12 -0
- package/dist/project/components/InputGroup/README.md +423 -0
- package/dist/project/components/InputGroup/preview.html +2 -0
- package/dist/project/components/InputGroup/stories.js +12 -0
- package/dist/project/components/InputOTP/README.md +201 -0
- package/dist/project/components/InputOTP/preview.html +2 -0
- package/dist/project/components/InputOTP/stories.js +12 -0
- package/dist/project/components/Ip/README.md +226 -0
- package/dist/project/components/Ip/preview.html +2 -0
- package/dist/project/components/Ip/stories.js +12 -0
- package/dist/project/components/Kbd/README.md +126 -0
- package/dist/project/components/Kbd/preview.html +2 -0
- package/dist/project/components/Kbd/stories.js +12 -0
- package/dist/project/components/LineChart/README.md +1479 -0
- package/dist/project/components/LineChart/preview.html +2 -0
- package/dist/project/components/LineChart/stories.js +12 -0
- package/dist/project/components/Link/README.md +160 -0
- package/dist/project/components/Link/preview.html +2 -0
- package/dist/project/components/Link/stories.js +12 -0
- package/dist/project/components/List/README.md +181 -0
- package/dist/project/components/List/preview.html +2 -0
- package/dist/project/components/List/stories.js +12 -0
- package/dist/project/components/Loader/README.md +145 -0
- package/dist/project/components/Loader/preview.html +2 -0
- package/dist/project/components/Loader/stories.js +12 -0
- package/dist/project/components/Logo/README.md +183 -0
- package/dist/project/components/Logo/preview.html +2 -0
- package/dist/project/components/Logo/stories.js +12 -0
- package/dist/project/components/MessageActions/README.md +255 -0
- package/dist/project/components/MessageActions/preview.html +2 -0
- package/dist/project/components/MessageActions/stories.js +12 -0
- package/dist/project/components/Metric/README.md +324 -0
- package/dist/project/components/Metric/preview.html +2 -0
- package/dist/project/components/Metric/stories.js +12 -0
- package/dist/project/components/NavRail/README.md +25 -0
- package/dist/project/components/NotificationCenter/README.md +91 -0
- package/dist/project/components/NotificationCenter/preview.html +2 -0
- package/dist/project/components/NotificationCenter/stories.js +12 -0
- package/dist/project/components/NotificationCenter/stories.md +2170 -0
- package/dist/project/components/NumberInput/README.md +177 -0
- package/dist/project/components/NumberInput/preview.html +2 -0
- package/dist/project/components/NumberInput/stories.js +12 -0
- package/dist/project/components/NumericBadge/README.md +252 -0
- package/dist/project/components/NumericBadge/preview.html +2 -0
- package/dist/project/components/NumericBadge/stories.js +12 -0
- package/dist/project/components/OverflowList/README.md +324 -0
- package/dist/project/components/OverflowList/preview.html +2 -0
- package/dist/project/components/OverflowList/stories.js +12 -0
- package/dist/project/components/OverflowTooltip/README.md +421 -0
- package/dist/project/components/OverflowTooltip/preview.html +2 -0
- package/dist/project/components/OverflowTooltip/stories.js +12 -0
- package/dist/project/components/Overlay/README.md +95 -0
- package/dist/project/components/Overlay/preview.html +2 -0
- package/dist/project/components/Overlay/stories.js +12 -0
- package/dist/project/components/Overview/README.md +445 -0
- package/dist/project/components/Overview/preview.html +2 -0
- package/dist/project/components/Overview/stories.js +12 -0
- package/dist/project/components/Page/README.md +215 -0
- package/dist/project/components/Page/preview.html +2 -0
- package/dist/project/components/Page/stories.js +12 -0
- package/dist/project/components/Pagination/README.md +302 -0
- package/dist/project/components/Pagination/preview.html +2 -0
- package/dist/project/components/Pagination/stories.js +12 -0
- package/dist/project/components/ParameterPath/README.md +284 -0
- package/dist/project/components/ParameterPath/preview.html +2 -0
- package/dist/project/components/ParameterPath/stories.js +12 -0
- package/dist/project/components/PasswordComplexity/README.md +171 -0
- package/dist/project/components/PasswordComplexity/preview.html +2 -0
- package/dist/project/components/PasswordComplexity/stories.js +12 -0
- package/dist/project/components/PasswordInput/README.md +254 -0
- package/dist/project/components/PasswordInput/preview.html +2 -0
- package/dist/project/components/PasswordInput/stories.js +12 -0
- package/dist/project/components/PieChart/README.md +895 -0
- package/dist/project/components/PieChart/preview.html +2 -0
- package/dist/project/components/PieChart/stories.js +12 -0
- package/dist/project/components/Popover/README.md +282 -0
- package/dist/project/components/Popover/preview.html +2 -0
- package/dist/project/components/Popover/stories.js +12 -0
- package/dist/project/components/Progress/README.md +174 -0
- package/dist/project/components/Progress/preview.html +2 -0
- package/dist/project/components/Progress/stories.js +12 -0
- package/dist/project/components/Radio/README.md +264 -0
- package/dist/project/components/Radio/preview.html +2 -0
- package/dist/project/components/Radio/stories.js +12 -0
- package/dist/project/components/RemoteShell/README.md +1758 -0
- package/dist/project/components/RemoteShell/preview.html +2 -0
- package/dist/project/components/RemoteShell/stories.js +28 -0
- package/dist/project/components/Resizable/README.md +290 -0
- package/dist/project/components/Resizable/preview.html +2 -0
- package/dist/project/components/Resizable/stories.js +12 -0
- package/dist/project/components/ResponseCode/README.md +205 -0
- package/dist/project/components/ResponseCode/preview.html +2 -0
- package/dist/project/components/ResponseCode/stories.js +12 -0
- package/dist/project/components/ScrollArea/README.md +234 -0
- package/dist/project/components/ScrollArea/preview.html +2 -0
- package/dist/project/components/ScrollArea/stories.js +12 -0
- package/dist/project/components/SearchInput/README.md +158 -0
- package/dist/project/components/SearchInput/preview.html +2 -0
- package/dist/project/components/SearchInput/stories.js +12 -0
- package/dist/project/components/SearchModal/README.md +836 -0
- package/dist/project/components/SearchModal/preview.html +2 -0
- package/dist/project/components/SearchModal/stories.js +12 -0
- package/dist/project/components/SegmentedControl/README.md +382 -0
- package/dist/project/components/SegmentedControl/preview.html +2 -0
- package/dist/project/components/SegmentedControl/stories.js +12 -0
- package/dist/project/components/SegmentedTabs/README.md +390 -0
- package/dist/project/components/SegmentedTabs/preview.html +2 -0
- package/dist/project/components/SegmentedTabs/stories.js +12 -0
- package/dist/project/components/Select/README.md +1311 -0
- package/dist/project/components/Select/preview.html +2 -0
- package/dist/project/components/Select/stories.js +12 -0
- package/dist/project/components/Selection/README.md +648 -0
- package/dist/project/components/Selection/preview.html +2 -0
- package/dist/project/components/Selection/stories.js +12 -0
- package/dist/project/components/Separator/README.md +77 -0
- package/dist/project/components/Separator/preview.html +2 -0
- package/dist/project/components/Separator/stories.js +12 -0
- package/dist/project/components/Skeleton/README.md +358 -0
- package/dist/project/components/Skeleton/preview.html +2 -0
- package/dist/project/components/Skeleton/stories.js +12 -0
- package/dist/project/components/Slider/README.md +433 -0
- package/dist/project/components/Slider/preview.html +2 -0
- package/dist/project/components/Slider/stories.js +12 -0
- package/dist/project/components/SplashScreen/README.md +192 -0
- package/dist/project/components/SplashScreen/preview.html +2 -0
- package/dist/project/components/SplashScreen/stories.js +12 -0
- package/dist/project/components/SplitButton/README.md +402 -0
- package/dist/project/components/SplitButton/preview.html +2 -0
- package/dist/project/components/SplitButton/stories.js +12 -0
- package/dist/project/components/Stack/README.md +269 -0
- package/dist/project/components/Stack/preview.html +2 -0
- package/dist/project/components/Stack/stories.js +12 -0
- package/dist/project/components/Stepper/README.md +682 -0
- package/dist/project/components/Stepper/preview.html +2 -0
- package/dist/project/components/Stepper/stories.js +12 -0
- package/dist/project/components/Switch/README.md +236 -0
- package/dist/project/components/Switch/preview.html +2 -0
- package/dist/project/components/Switch/stories.js +12 -0
- package/dist/project/components/Table/README.md +471 -0
- package/dist/project/components/Table/preview.html +2 -0
- package/dist/project/components/Table/stories.js +12 -0
- package/dist/project/components/Table/stories.md +3697 -0
- package/dist/project/components/Tabs/README.md +443 -0
- package/dist/project/components/Tabs/preview.html +2 -0
- package/dist/project/components/Tabs/stories.js +12 -0
- package/dist/project/components/Tag/README.md +324 -0
- package/dist/project/components/Tag/preview.html +2 -0
- package/dist/project/components/Tag/stories.js +12 -0
- package/dist/project/components/Text/README.md +200 -0
- package/dist/project/components/Text/preview.html +2 -0
- package/dist/project/components/Text/stories.js +12 -0
- package/dist/project/components/Textarea/README.md +273 -0
- package/dist/project/components/Textarea/preview.html +2 -0
- package/dist/project/components/Textarea/stories.js +12 -0
- package/dist/project/components/TimeInput/README.md +359 -0
- package/dist/project/components/TimeInput/preview.html +2 -0
- package/dist/project/components/TimeInput/stories.js +12 -0
- package/dist/project/components/Timeline/README.md +204 -0
- package/dist/project/components/Timeline/preview.html +2 -0
- package/dist/project/components/Timeline/stories.js +12 -0
- package/dist/project/components/Toast/README.md +718 -0
- package/dist/project/components/Toast/preview.html +2 -0
- package/dist/project/components/Toast/stories.js +12 -0
- package/dist/project/components/ToggleButton/README.md +292 -0
- package/dist/project/components/ToggleButton/preview.html +2 -0
- package/dist/project/components/ToggleButton/stories.js +12 -0
- package/dist/project/components/Tooltip/README.md +199 -0
- package/dist/project/components/Tooltip/preview.html +2 -0
- package/dist/project/components/Tooltip/stories.js +12 -0
- package/dist/project/components/TopHeader/README.md +21 -0
- package/dist/project/components/Tour/README.md +532 -0
- package/dist/project/components/Tour/preview.html +2 -0
- package/dist/project/components/Tour/stories.js +12 -0
- package/dist/project/components/Tree/README.md +450 -0
- package/dist/project/components/Tree/preview.html +2 -0
- package/dist/project/components/Tree/stories.js +12 -0
- package/dist/project/components/TreeView/README.md +531 -0
- package/dist/project/components/TreeView/preview.html +2 -0
- package/dist/project/components/TreeView/stories.js +12 -0
- package/dist/project/components/UTILITIES.md +647 -0
- package/dist/project/components/UserMessage/README.md +166 -0
- package/dist/project/components/UserMessage/preview.html +2 -0
- package/dist/project/components/UserMessage/stories.js +12 -0
- package/dist/project/components/UtilityPage/README.md +147 -0
- package/dist/project/components/UtilityPage/preview.html +2 -0
- package/dist/project/components/UtilityPage/stories.js +12 -0
- package/dist/project/components/WallyAssistant/README.md +1380 -0
- package/dist/project/components/WallyAssistant/preview.html +2 -0
- package/dist/project/components/WallyAssistant/stories.js +12 -0
- package/dist/project/components/WallyIcon/README.md +130 -0
- package/dist/project/components/WallyIcon/preview.html +2 -0
- package/dist/project/components/WallyIcon/stories.js +12 -0
- package/dist/project/components/WallySkeleton/README.md +96 -0
- package/dist/project/components/WallySkeleton/preview.html +2 -0
- package/dist/project/components/WallySkeleton/stories.js +12 -0
- package/dist/project/components/bundle.css +18734 -0
- package/dist/project/components/bundle.js +167 -0
- package/dist/project/components/index.d.ts +27226 -0
- package/dist/project/design-system.json +35 -0
- package/dist/project/fonts/Geist-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistMono-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistPixel-Square.woff2 +0 -0
- package/dist/project/sampler.dc.html +238 -0
- package/dist/project/tokens.css +1395 -0
- package/dist/project/tokens.json +5235 -0
- package/dist/wallarm-sampler.dc.html +239 -0
- package/package.json +67 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,n){let r,l;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var a,o,c=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,m=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of d(t))u.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(r=s(t,l))||r.enumerable});return e},p={},f={$dispatcherGuard:()=>$,$makeReadOnly:()=>D,$reset:()=>E,$structuralCheck:()=>I,c:()=>N,clearRenderCounterRegistry:()=>M,renderCounterRegistry:()=>k,useRenderCounter:()=>O};for(var y in f)i(p,y,{get:f[y],enumerable:!0});e.exports=h(i({},"__esModule",{value:!0}),p);var S=(l=null!=(r=n("C"))?c(m(r)):{},h(r&&r.__esModule?l:i(l,"default",{value:r,enumerable:!0}),r)),{useRef:b,useEffect:g,isValidElement:w}=S,_=null!=(a=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?a:S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.memo_cache_sentinel"),N="function"==typeof(null==(o=S.__COMPILER_RUNTIME)?void 0:o.c)?S.__COMPILER_RUNTIME.c:function(e){return S.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=x;return t[x]=!0,t},[])},C={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{C[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 v=null;function R(e){return _.ReactCurrentDispatcher.current=e,_.ReactCurrentDispatcher.current}C.useMemoCache=e=>{if(null!=v)return v.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var z=[];function $(e){let t=_.ReactCurrentDispatcher.current;if(0===e){if(z.push(t),1===z.length&&(v=t),t===C)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");R(C)}else if(1===e){let e=z.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===z.length&&(v=null),R(e)}else if(2===e)z.push(t),R(v);else if(3===e){let e=z.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");R(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function E(e){for(let t=0;t<e.length;t++)e[t]=x}function D(){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 O(e){let t=b(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){let n,r={count:0};null==(n=k.get(e))&&(n=new Set,k.set(e,n)),n.add(r),t.current=r}return()=>{var n;let r;null!==t.current&&(n=t.current,null!=(r=k.get(e))&&r.delete(n))}})}var W=new Set;function I(e,t,n,r,l,a){function o(e,t,o,c){let i=`${r}:${a} [${l}] ${n}${o} changed from ${e} to ${t} at depth ${c}`;W.has(i)||(W.add(i),console.error(i))}!function e(t,n,r,l){if(!(l>2)){if(t!==n)if(typeof t!=typeof n)o(`type ${typeof t}`,`type ${typeof n}`,r,l);else if("object"==typeof t){let a=Array.isArray(t),c=Array.isArray(n);if(null===t&&null!==n)o("null",`type ${typeof n}`,r,l);else if(null===n)o(`type ${typeof t}`,"null",r,l);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)o(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,l);else for(let[a,c]of t)n.has(a)?e(c,n.get(a),`${r}.get(${a})`,l+1):o(`Map instance with key ${a}`,`Map instance without key ${a}`,r,l);else o("Map instance","other value",r,l);else if(n instanceof Map)o("other value","Map instance",r,l);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)o(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,l);else for(let e of n)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,r,l);else o("Set instance","other value",r,l);else if(n instanceof Set)o("other value","Set instance",r,l);else if(a||c)if(a!==c)o(`type ${a?"array":"object"}`,`type ${c?"array":"object"}`,r,l);else if(t.length!==n.length)o(`array with length ${t.length}`,`array with length ${n.length}`,r,l);else for(let a=0;a<t.length;a++)e(t[a],n[a],`${r}[${a}]`,l+1);else if(w(t)||w(n))w(t)!==w(n)?o(`type ${w(t)?"React element":"object"}`,`type ${w(n)?"React element":"object"}`,r,l):t.type!==n.type?o(`React element of type ${t.type}`,`React element of type ${n.type}`,r,l):e(t.props,n.props,`[props of ${r}]`,l+1);else{for(let e in n)e in t||o(`object without key ${e}`,`object with key ${e}`,r,l);for(let a in t)a in n?e(t[a],n[a],`${r}.${a}`,l+1):o(`object with key ${a}`,`object without key ${a}`,r,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,l):t!==n&&o(t,n,r,l)}}}(e,t,"",0)}},p(e,t,n){let r=new WeakMap,l=new WeakMap;function a(e,t,n){let a=t,o=n;if("object"==typeof a&&null!==a&&"$$typeof"in a&&a.$$typeof===Symbol.for("react.context")&&"Provider"in a&&(a=a.Provider),"function"==typeof a&&null!=o.ref&&!a.prototype?.isReactComponent){let t=a,n=r.get(e);n||(n=new WeakMap,r.set(e,n));let l=n.get(t);l||((l=e.forwardRef((e,n)=>t({...e,ref:n}))).displayName=t.displayName??t.name,n.set(t,l)),a=l}if("string"==typeof a&&"boolean"==typeof o.inert&&((o={...o}).inert?o.inert="":delete o.inert),"string"==typeof a)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in o&&(o={...o,[t]:o[e]},delete o[e]);return"string"==typeof a&&null!=o.ref&&(a=function(e,t){let n=l.get(e);n||(n=new Map,l.set(e,n));let r=n.get(t);if(r)return r;let a=e.forwardRef((n,r)=>{let l=e.useRef(null);if(!l.current||l.current.original!==r){let e;l.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let n=r(t);e="function"==typeof n?n:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...n,ref:l.current.callback})});return a.displayName=`CanvasHost(${t})`,n.set(t,a),a}(e,a)),{type:a,props:o}}function o(e){let t=(t,n,r)=>{let l=a(e,t,n??{});return e.createElement(l.type,void 0===r?l.props:{...l.props,key:r})};return{jsx:t,jsxs:(t,n,r)=>{let l=a(e,t,n??{}),{children:o,...c}=l.props;return e.createElement(l.type,void 0===r?c:{...c,key:r},...Array.isArray(o)?o:[o])},jsxDEV:t,Fragment:e.Fragment}}function c(e){return{...e,createElement:(t,n,...r)=>{let l=a(e,t,n??{});return e.createElement(l.type,l.props,...r)},cloneElement:(t,n,...r)=>{let l=e.cloneElement(t,n??void 0,...r),o=l.ref,c=a(e,l.type,{...l.props,ref:o});return c.type===l.type&&"string"!=typeof l.type?l:e.createElement(c.type,{...c.props,key:l.key})}}}n.d(t,{MA:()=>o,YJ:()=>c})},C(e,t,n){n.r(t);let r=(0,n("p").YJ)(window.React),{Children:l,Component:a,Fragment:o,Profiler:c,PureComponent:i,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m,act:u,cloneElement:h,createContext:p,createElement:f,createFactory:y,createRef:S,forwardRef:b,isValidElement:g,lazy:w,memo:_,startTransition:x,unstable_act:N,useCallback:C,useContext:v,useDebugValue:R,useDeferredValue:z,useEffect:$,useId:E,useImperativeHandle:D,useInsertionEffect:k,useLayoutEffect:M,useMemo:O,useReducer:W,useRef:I,useState:A,useSyncExternalStore:P,useTransition:j,version:T,use:L}=r;n.d(t,{},{Children:l,Component:a,Fragment:o,Profiler:c,PureComponent:i,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m,act:u,cloneElement:h,createContext:p,createElement:f,createFactory:y,createRef:S,default:r,forwardRef:b,isValidElement:g,lazy:w,memo:_,startTransition:x,unstable_act:N,use:L,useCallback:C,useContext:v,useDebugValue:R,useDeferredValue:z,useEffect:$,useId:E,useImperativeHandle:D,useInsertionEffect:k,useLayoutEffect:M,useMemo:O,useReducer:W,useRef:I,useState:A,useSyncExternalStore:P,useTransition:j,version:T})}},t={};function n(r){var l=t[r];if(void 0!==l)return l.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t,r)=>{var l=(t,r)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[r]:t[l]})};l(t,"get"),l(r,"value")},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:r,Fragment:l}=(0,n("p").MA)(window.React);var a=n("vD"),o=n("C");let c=window.WallarmDS.Icons.ChevronRight,i=window.WallarmDS.Icons.Clock,s=window.WallarmDS.Icons.Compass,d=window.WallarmDS.Icons.Globe,m=window.WallarmDS.Icons.History,u=window.WallarmDS.Icons.Layers,h=window.WallarmDS.Icons.Plus,p=window.WallarmDS.Icons.Search,f=window.WallarmDS.Icons.Settings,y=window.WallarmDS.Icons.Shield,S=window.WallarmDS.Icons.Users,b=window.WallarmDS.Icons.Zap,g=window.WallarmDS.Button,w=window.WallarmDS.Kbd,_=window.WallarmDS.Text,x=window.WallarmDS.WallyIcon,N=window.WallarmDS.SearchModal,C=window.WallarmDS.SearchModalBody,v=window.WallarmDS.SearchModalContent,R=window.WallarmDS.SearchModalEmpty,z=window.WallarmDS.SearchModalFooter,$=window.WallarmDS.SearchModalGroup,E=window.WallarmDS.SearchModalGroupLabel,D=window.WallarmDS.SearchModalInput,k=window.WallarmDS.SearchModalItem,M=window.WallarmDS.SearchModalTrigger,O={title:"Navigation/SearchModal",component:N,subcomponents:{SearchModalTrigger:M,SearchModalContent:v,SearchModalInput:D,SearchModalBody:C,SearchModalGroup:$,SearchModalGroupLabel:E,SearchModalItem:k,SearchModalEmpty:R,SearchModalFooter:z},parameters:{layout:"centered",docs:{description:{component:"A command-palette dialog opened with Cmd+K (Ctrl+K on Windows/Linux). Provides a search input, grouped item lists, keyboard navigation, and a footer with keyboard hints. Content is consumer-assembled: the component is a composable shell, not a hard-wired feature."}}}},W=()=>void 0,I=[{id:"recent-1",label:"Attack Rechecker — Scanner",icon:e(m,{className:"text-text-primary !icon-md"}),date:"2m ago"},{id:"recent-2",label:"API Discovery — API Security",icon:e(m,{className:"text-text-primary !icon-md"}),date:"15m ago"},{id:"recent-3",label:"Rules — Cloud WAF",icon:e(m,{className:"text-text-primary !icon-md"}),date:"1h ago"},{id:"recent-4",label:"Dashboards — Platform",icon:e(m,{className:"text-text-primary !icon-md"}),date:"3h ago"},{id:"recent-5",label:"Integrations — Settings",icon:e(m,{className:"text-text-primary !icon-md"}),date:"Yesterday"}],A=[{id:"nav-scanner",label:"Scanner",icon:e(p,{className:"text-text-primary !icon-md"})},{id:"nav-api-security",label:"API Security",icon:e(y,{className:"text-text-primary !icon-md"})},{id:"nav-cloud-waf",label:"Cloud WAF",icon:e(d,{className:"text-text-primary !icon-md"})},{id:"nav-dashboards",label:"Dashboards",icon:e(u,{className:"text-text-primary !icon-md"})},{id:"nav-settings",label:"Settings",icon:e(f,{className:"text-text-primary !icon-md"})},{id:"nav-connectors",label:"Connectors",icon:e(b,{className:"text-text-primary !icon-md"})},{id:"nav-audit-log",label:"Audit Log",icon:e(i,{className:"text-text-primary !icon-md"})},{id:"nav-users",label:"Users & Roles",icon:e(S,{className:"text-text-primary !icon-md"})}],P=[{id:"create-rule",label:"Rule",icon:e(y,{className:"text-text-primary !icon-md"}),section:"Cloud WAF"},{id:"create-trigger",label:"Trigger",icon:e(b,{className:"text-text-primary !icon-md"}),section:"Cloud WAF"},{id:"create-app",label:"Application",icon:e(d,{className:"text-text-primary !icon-md"}),section:"Scanner"},{id:"create-scope",label:"Scan scope",icon:e(s,{className:"text-text-primary !icon-md"}),section:"Scanner"},{id:"create-connector",label:"Connector",icon:e(b,{className:"text-text-primary !icon-md"}),section:"Integrations"}];function j(e,t){if(!t)return e;let n=t.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(n))}let T=()=>{let n,r,l=(0,a.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(p,{}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=e(M,{asChild:!0,children:t(g,{variant:"outline",color:"neutral",children:[n,"Search",t(w,{size:"xsmall",children:["u">typeof navigator&&/Mac/i.test(navigator.userAgent)?"⌘":"Ctrl+","K"]})]})}),l[1]=r):r=l[1],r};function L(n){return t(k,{onSelect:W,children:[n.icon,e(_,{size:"sm",children:n.label}),e("span",{className:"ml-auto",children:e(_,{size:"xs",color:"secondary",children:n.date})})]},n.id)}function F(n){return t(k,{onSelect:W,children:[n.icon,e(_,{size:"sm",children:n.label}),e(c,{className:"text-text-tertiary ml-auto !icon-sm"})]},n.id)}function U(n){return t(k,{onSelect:W,children:[n.icon,e(_,{size:"sm",children:n.label}),e(c,{className:"text-text-tertiary ml-auto !icon-sm"})]},n.id)}function Q(n){return t(k,{onSelect:W,children:[n.icon,e(_,{size:"sm",children:n.label})]},n.id)}function G(n){let[r,l]=n;return t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:r})}),l.map(Q)]},r)}function J(n){return e(k,{asChild:!0,onSelect:W,children:t("a",{href:`#${n.id}`,children:[n.icon,e(_,{size:"sm",children:n.label}),e(c,{className:"text-text-tertiary ml-auto !icon-sm"})]})},n.id)}function V(n){return t(k,{onSelect:"switch-tenant"===n.id?void 0:W,disabled:"switch-tenant"===n.id,children:[n.icon,e(_,{size:"sm",children:n.label}),"switch-tenant"===n.id&&e("span",{className:"ml-auto",children:e(_,{size:"xs",color:"secondary",children:"Unavailable"})})]},n.id)}function Y(n){return t(k,{onSelect:W,children:[n.icon,e(_,{size:"sm",children:n.label})]},n.id)}function B(t,n){return{id:`item-${n}`,label:`Feature ${n+1}`,icon:e(s,{className:"text-text-primary !icon-md"})}}function H(n){return t(k,{onSelect:W,children:[n.icon,e(_,{size:"sm",children:n.label})]},n.id)}let K=[{name:"Basic",story:()=>{let n,r,c,i,s,d,m,u,p,f,y,b,g,w,M,O,P=(0,a.c)(35),[U,Q]=(0,o.useState)(!1),[G,J]=(0,o.useState)("");P[0]!==G?(n=j(I,G),P[0]=G,P[1]=n):n=P[1];let V=n;P[2]!==G?(r=j(A,G),P[2]=G,P[3]=r):r=P[3];let Y=r,B=V.length>0||Y.length>0;P[4]===Symbol.for("react.memo_cache_sentinel")?(c=e(T,{}),P[4]=c):c=P[4],P[5]===Symbol.for("react.memo_cache_sentinel")?(i=e(D,{placeholder:"Search products, features, and more\\u2026"}),P[5]=i):i=P[5],P[6]===Symbol.for("react.memo_cache_sentinel")?(s=e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:"Quick actions"})}),P[6]=s):s=P[6],P[7]===Symbol.for("react.memo_cache_sentinel")?(d=e(x,{variant:"circle",size:"sm"}),P[7]=d):d=P[7];let H=G?`Ask Wally "${G}"`:"Ask Wally";return P[8]!==H?(m=t(k,{onSelect:W,children:[d,e(_,{size:"sm",children:H})]}),P[8]=H,P[9]=m):m=P[9],P[10]!==G?(u=!G&&t(l,{children:[t(k,{onSelect:W,children:[e(S,{className:"!icon-md"}),e(_,{size:"sm",children:"Switch tenant"})]}),t(k,{onSelect:W,children:[e(h,{className:"!icon-md"}),e(_,{size:"sm",children:"Create…"})]})]}),P[10]=G,P[11]=u):u=P[11],P[12]!==m||P[13]!==u?(p=t($,{children:[s,m,u]}),P[12]=m,P[13]=u,P[14]=p):p=P[14],P[15]!==V?(f=V.length>0&&t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:"Recent"})}),V.map(L)]}),P[15]=V,P[16]=f):f=P[16],P[17]!==Y||P[18]!==B||P[19]!==G?(y=(B||!G)&&t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:G?"Go to":"Jump to"})}),(G?Y:A).map(F)]}),P[17]=Y,P[18]=B,P[19]=G,P[20]=y):y=P[20],P[21]!==B||P[22]!==G?(b=G&&!B&&e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})}),P[21]=B,P[22]=G,P[23]=b):b=P[23],P[24]!==f||P[25]!==y||P[26]!==b||P[27]!==p?(g=t(C,{children:[p,f,y,b]}),P[24]=f,P[25]=y,P[26]=b,P[27]=p,P[28]=g):g=P[28],P[29]===Symbol.for("react.memo_cache_sentinel")?(w=e(z,{}),P[29]=w):w=P[29],P[30]!==g?(M=t(v,{children:[i,g,w]}),P[30]=g,P[31]=M):M=P[31],P[32]!==U||P[33]!==M?(O=t(N,{open:U,onOpenChange:Q,onQueryChange:J,"data-testid":"search",children:[c,M]}),P[32]=U,P[33]=M,P[34]=O):O=P[34],O},meta:O},{name:"EmptyRecents",story:()=>{let n,r,c,i,s,d,m,u,p,f,y,b,g,w,M,O=(0,a.c)(32),[I,P]=(0,o.useState)(!1),[L,F]=(0,o.useState)("");O[0]!==L?(n=j(A,L),O[0]=L,O[1]=n):n=O[1];let Q=n;O[2]===Symbol.for("react.memo_cache_sentinel")?(r=e(T,{}),O[2]=r):r=O[2],O[3]===Symbol.for("react.memo_cache_sentinel")?(c=e(D,{placeholder:"Search products, features, and more\\u2026"}),O[3]=c):c=O[3],O[4]===Symbol.for("react.memo_cache_sentinel")?(i=e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:"Quick actions"})}),O[4]=i):i=O[4],O[5]===Symbol.for("react.memo_cache_sentinel")?(s=e(x,{variant:"circle",size:"sm"}),O[5]=s):s=O[5];let G=L?`Ask Wally "${L}"`:"Ask Wally";return O[6]!==G?(d=t(k,{onSelect:W,children:[s,e(_,{size:"sm",children:G})]}),O[6]=G,O[7]=d):d=O[7],O[8]!==L?(m=!L&&t(l,{children:[t(k,{onSelect:W,children:[e(S,{className:"!icon-md"}),e(_,{size:"sm",children:"Switch tenant"})]}),t(k,{onSelect:W,children:[e(h,{className:"!icon-md"}),e(_,{size:"sm",children:"Create…"})]})]}),O[8]=L,O[9]=m):m=O[9],O[10]!==d||O[11]!==m?(u=t($,{children:[i,d,m]}),O[10]=d,O[11]=m,O[12]=u):u=O[12],O[13]!==L?(p=!L&&t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:"Recent"})}),e(R,{children:e(_,{size:"sm",color:"secondary",children:"Nothing recent yet"})})]}),O[13]=L,O[14]=p):p=O[14],O[15]!==Q||O[16]!==L?(f=Q.length>0&&t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:L?"Go to":"Jump to"})}),Q.map(U)]}),O[15]=Q,O[16]=L,O[17]=f):f=O[17],O[18]!==Q.length||O[19]!==L?(y=L&&0===Q.length&&e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})}),O[18]=Q.length,O[19]=L,O[20]=y):y=O[20],O[21]!==f||O[22]!==y||O[23]!==u||O[24]!==p?(b=t(C,{children:[u,p,f,y]}),O[21]=f,O[22]=y,O[23]=u,O[24]=p,O[25]=b):b=O[25],O[26]===Symbol.for("react.memo_cache_sentinel")?(g=e(z,{}),O[26]=g):g=O[26],O[27]!==b?(w=t(v,{children:[c,b,g]}),O[27]=b,O[28]=w):w=O[28],O[29]!==I||O[30]!==w?(M=t(N,{open:I,onOpenChange:P,onQueryChange:F,children:[r,w]}),O[29]=I,O[30]=w,O[31]=M):M=O[31],M},meta:O},{name:"SubList",story:()=>{let n,r,l,c,i,s,d,m,u,h,p=(0,a.c)(18),[f,y]=(0,o.useState)(!1),[S,b]=(0,o.useState)("");p[0]!==S?(n=j(P,S),p[0]=S,p[1]=n):n=p[1];let g=n;if(p[2]!==g){for(let e of(r=new Map,g)){let t=e.section??"Other",n=r.get(t);n?n.push(e):r.set(t,[e])}p[2]=g,p[3]=r}else r=p[3];let x=r;return p[4]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{}),p[4]=l):l=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(c=e(D,{placeholder:"Filter creatable items\\u2026"}),p[5]=c):c=p[5],p[6]!==g.length||p[7]!==x?(i=g.length>0?[...x.entries()].map(G):e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})}),p[6]=g.length,p[7]=x,p[8]=i):i=p[8],p[9]!==i?(s=e(C,{children:i}),p[9]=i,p[10]=s):s=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(d=t("span",{className:"inline-flex items-center gap-4",children:[e(w,{size:"xsmall",children:"esc"}),e(_,{size:"xs",color:"secondary",children:"back"})]}),p[11]=d):d=p[11],p[12]===Symbol.for("react.memo_cache_sentinel")?(m=t(z,{children:[d,t("span",{className:"inline-flex items-center gap-4",children:[e(w,{size:"xsmall",children:"↵"}),e(_,{size:"xs",color:"secondary",children:"to select"})]})]}),p[12]=m):m=p[12],p[13]!==s?(u=t(v,{children:[c,s,m]}),p[13]=s,p[14]=u):u=p[14],p[15]!==f||p[16]!==u?(h=t(N,{open:f,onOpenChange:y,onQueryChange:b,children:[l,u]}),p[15]=f,p[16]=u,p[17]=h):h=p[17],h},meta:O},{name:"ItemsAsLinks",story:()=>{let n,r,l,c,i,s,d,m=(0,a.c)(13),[u,h]=(0,o.useState)(!1),[p,f]=(0,o.useState)("");m[0]!==p?(n=j(A,p),m[0]=p,m[1]=n):n=m[1];let y=n;return m[2]===Symbol.for("react.memo_cache_sentinel")?(r=e(T,{}),m[2]=r):r=m[2],m[3]===Symbol.for("react.memo_cache_sentinel")?(l=e(D,{placeholder:"Search products, features, and more\\u2026"}),m[3]=l):l=m[3],m[4]!==y||m[5]!==p?(c=e(C,{children:y.length>0?t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:p?"Go to":"Jump to"})}),y.map(J)]}):e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})})}),m[4]=y,m[5]=p,m[6]=c):c=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(i=e(z,{}),m[7]=i):i=m[7],m[8]!==c?(s=t(v,{children:[l,c,i]}),m[8]=c,m[9]=s):s=m[9],m[10]!==u||m[11]!==s?(d=t(N,{open:u,onOpenChange:h,onQueryChange:f,children:[r,s]}),m[10]=u,m[11]=s,m[12]=d):d=m[12],d},meta:O},{name:"DisabledItems",story:()=>{let n,r,l,c,i,s,d,m,u=(0,a.c)(15),[p,f]=(0,o.useState)(!1),[y,b]=(0,o.useState)("");if(u[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(x,{variant:"circle",size:"sm"}),u[0]=n):n=u[0],u[1]!==y){let t,l;u[3]===Symbol.for("react.memo_cache_sentinel")?(t=e(S,{className:"!icon-md"}),u[3]=t):t=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(l=e(h,{className:"!icon-md"}),u[4]=l):l=u[4],r=j([{id:"ask-wally",label:"Ask Wally",icon:n},{id:"switch-tenant",label:"Switch tenant",icon:t},{id:"create",label:"Create…",icon:l}],y),u[1]=y,u[2]=r}else r=u[2];let g=r;return u[5]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{}),u[5]=l):l=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(c=e(D,{placeholder:"Search products, features, and more\\u2026"}),u[6]=c):c=u[6],u[7]!==g?(i=e(C,{children:g.length>0?t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:"Quick actions"})}),g.map(V)]}):e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})})}),u[7]=g,u[8]=i):i=u[8],u[9]===Symbol.for("react.memo_cache_sentinel")?(s=e(z,{}),u[9]=s):s=u[9],u[10]!==i?(d=t(v,{children:[c,i,s]}),u[10]=i,u[11]=d):d=u[11],u[12]!==p||u[13]!==d?(m=t(N,{open:p,onOpenChange:f,onQueryChange:b,children:[l,d]}),u[12]=p,u[13]=d,u[14]=m):m=u[14],m},meta:O},{name:"CloseOnSelectFalse",story:()=>{let n,r,l,c,i,s,d,m,u,h=(0,a.c)(15),[p,f]=(0,o.useState)(!1),[y,S]=(0,o.useState)("");h[0]===Symbol.for("react.memo_cache_sentinel")?(n=[],h[0]=n):n=h[0];let[b,g]=(0,o.useState)(n);h[1]!==y?(r=j(A,y),h[1]=y,h[2]=r):r=h[2];let w=r;h[3]===Symbol.for("react.memo_cache_sentinel")?(l=e=>g(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),h[3]=l):l=h[3];let x=l;return h[4]===Symbol.for("react.memo_cache_sentinel")?(c=e(T,{}),h[4]=c):c=h[4],h[5]===Symbol.for("react.memo_cache_sentinel")?(i=e(D,{placeholder:"Pick items (modal stays open)\\u2026"}),h[5]=i):i=h[5],h[6]!==w||h[7]!==b?(s=e(C,{children:w.length>0?t($,{children:[e(E,{children:t(_,{size:"xs",color:"secondary",weight:"medium",children:["Products ",b.length>0&&`(${b.length} selected)`]})}),w.map(n=>t(k,{closeOnSelect:!1,onSelect:()=>x(n.id),children:[n.icon,e(_,{size:"sm",children:n.label}),b.includes(n.id)&&e("span",{className:"ml-auto",children:e(_,{size:"xs",color:"primary-alt",children:"Selected"})})]},n.id))]}):e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})})}),h[6]=w,h[7]=b,h[8]=s):s=h[8],h[9]===Symbol.for("react.memo_cache_sentinel")?(d=e(z,{}),h[9]=d):d=h[9],h[10]!==s?(m=t(v,{children:[i,s,d]}),h[10]=s,h[11]=m):m=h[11],h[12]!==p||h[13]!==m?(u=t(N,{open:p,onOpenChange:f,onQueryChange:S,children:[c,m]}),h[12]=p,h[13]=m,h[14]=u):u=h[14],u},meta:O},{name:"Controlled",story:()=>{let n,r,c,i,s,d,m,u=(0,a.c)(13),[h,p]=(0,o.useState)(!1),[f,y]=(0,o.useState)("");u[0]!==f?(n=j(A,f),u[0]=f,u[1]=n):n=u[1];let S=n;return u[2]===Symbol.for("react.memo_cache_sentinel")?(r=e(g,{variant:"outline",color:"neutral",onClick:()=>p(!0),children:"Open Programmatically"}),u[2]=r):r=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(c=e(D,{placeholder:"Search products, features, and more\\u2026"}),u[3]=c):c=u[3],u[4]!==S||u[5]!==f?(i=e(C,{children:S.length>0?t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:f?"Go to":"Jump to"})}),S.map(Y)]}):e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})})}),u[4]=S,u[5]=f,u[6]=i):i=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(s=e(z,{}),u[7]=s):s=u[7],u[8]!==i?(d=t(v,{children:[c,i,s]}),u[8]=i,u[9]=d):d=u[9],u[10]!==h||u[11]!==d?(m=t(l,{children:[r,e(N,{open:h,onOpenChange:p,onQueryChange:y,children:d})]}),u[10]=h,u[11]=d,u[12]=m):m=u[12],m},meta:O},{name:"Scrollable",story:()=>{let n,r,l,c,i,s,d,m,u=(0,a.c)(13),[h,p]=(0,o.useState)(!1),[f,y]=(0,o.useState)("");u[0]===Symbol.for("react.memo_cache_sentinel")?(n=Array.from({length:30},B),u[0]=n):n=u[0];let S=n;u[1]!==f?(r=j(S,f),u[1]=f,u[2]=r):r=u[2];let b=r;return u[3]===Symbol.for("react.memo_cache_sentinel")?(l=e(T,{}),u[3]=l):l=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(c=e(D,{placeholder:"Search products, features, and more\\u2026"}),u[4]=c):c=u[4],u[5]!==b?(i=e(C,{children:b.length>0?t($,{children:[e(E,{children:e(_,{size:"xs",color:"secondary",weight:"medium",children:"All features"})}),b.map(H)]}):e($,{children:e(R,{children:e(_,{size:"sm",color:"secondary",children:"No results"})})})}),u[5]=b,u[6]=i):i=u[6],u[7]===Symbol.for("react.memo_cache_sentinel")?(s=e(z,{}),u[7]=s):s=u[7],u[8]!==i?(d=t(v,{children:[c,i,s]}),u[8]=i,u[9]=d):d=u[9],u[10]!==h||u[11]!==d?(m=t(N,{open:h,onOpenChange:p,onQueryChange:y,children:[l,d]}),u[10]=h,u[11]=d,u[12]=m):m=u[12],m},meta:O}];function Z({entry:e}){let{story:t,meta:n}=e,r={...n.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,a=()=>o.default.createElement(l,r),c={args:r,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=a;a=()=>e(t,c)}return o.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},o.default.createElement("h2",{className:"text-sm mb-12"},e.name),o.default.createElement(a))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(o.default.createElement(window.WallarmDS.Root,null,K.map((e,t)=>o.default.createElement(Z,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
Switches between renditions of the same content, with every option visible — reach for `Tabs` when the sections are distinct places rather than views of one thing, and `Radio` when the choice is an answer a form submits. It owns no panel: it reports the chosen value and you re-render the content yourself.
|
|
2
|
+
|
|
3
|
+
## Props as canvas attributes
|
|
4
|
+
|
|
5
|
+
Use kebab-case attribute names. Pass non-string values through renderVals holes, including booleans. The full emitted API is in `components/index.d.ts`.
|
|
6
|
+
|
|
7
|
+
| Attribute | Type | Required | Default | Description |
|
|
8
|
+
| --- | --- | --- | --- | --- |
|
|
9
|
+
| `title` | `string \| undefined` | no | — | |
|
|
10
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
12
|
+
| `id` | `string \| undefined` | no | — | |
|
|
13
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
14
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
15
|
+
| `full-width` | `boolean` | no | `false` | |
|
|
16
|
+
| `value` | `string \| undefined` | no | — | The currently selected value |
|
|
17
|
+
| `default-value` | `string \| undefined` | no | — | The default selected value |
|
|
18
|
+
| `on-change` | `((value: string) => void) \| undefined` | no | — | Callback function called when the selection changes |
|
|
19
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
20
|
+
|
|
21
|
+
## Sub-components
|
|
22
|
+
|
|
23
|
+
- `WallarmDS.SegmentedControlButton` — `SegmentedControlButtonProps` in the declaration bundle.
|
|
24
|
+
- `WallarmDS.SegmentedControlItem` — `SegmentedControlItemProps` in the declaration bundle.
|
|
25
|
+
- `WallarmDS.SegmentedControlSeparator` — `SegmentedControlSeparatorProps` in the declaration bundle.
|
|
26
|
+
|
|
27
|
+
## Stories
|
|
28
|
+
|
|
29
|
+
### Basic
|
|
30
|
+
|
|
31
|
+
Two to five options, all visible at once. Past that the control gets cramped and the
|
|
32
|
+
comparison it exists to offer stops working.
|
|
33
|
+
|
|
34
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#Basic
|
|
35
|
+
|
|
36
|
+
### Disabled
|
|
37
|
+
|
|
38
|
+
A disabled option stays visible rather than disappearing, so the set of choices doesn't
|
|
39
|
+
change shape between visits.
|
|
40
|
+
|
|
41
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#Disabled
|
|
42
|
+
|
|
43
|
+
### Icons
|
|
44
|
+
|
|
45
|
+
Icons beside the labels, which helps when the options are renditions — a list against a
|
|
46
|
+
grid — rather than categories.
|
|
47
|
+
|
|
48
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#Icons
|
|
49
|
+
|
|
50
|
+
### IconOnly
|
|
51
|
+
|
|
52
|
+
Icon-only segments for a toolbar. Each still needs an accessible name; the icon is the
|
|
53
|
+
label only visually.
|
|
54
|
+
|
|
55
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#IconOnly
|
|
56
|
+
|
|
57
|
+
### MoreButton
|
|
58
|
+
|
|
59
|
+
An overflow trigger for the options that didn't fit. If you need this often, the choice
|
|
60
|
+
probably wants a `Select`.
|
|
61
|
+
|
|
62
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#MoreButton
|
|
63
|
+
|
|
64
|
+
### Many
|
|
65
|
+
|
|
66
|
+
What too many options looks like — worth seeing so the limit is a judgement rather than a
|
|
67
|
+
rule you took on trust.
|
|
68
|
+
|
|
69
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#Many
|
|
70
|
+
|
|
71
|
+
### Badge
|
|
72
|
+
|
|
73
|
+
A count on a segment, for when each view holds a different number of things and the reader
|
|
74
|
+
would otherwise have to switch to find out.
|
|
75
|
+
|
|
76
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#Badge
|
|
77
|
+
|
|
78
|
+
### FullWidth
|
|
79
|
+
|
|
80
|
+
Stretches to its container, dividing the width evenly. Suits a narrow panel; in a wide one
|
|
81
|
+
it leaves the segments floating far apart.
|
|
82
|
+
|
|
83
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#FullWidth
|
|
84
|
+
|
|
85
|
+
### Controlled
|
|
86
|
+
|
|
87
|
+
Own the value when something else has to move with it, which is the usual case, since the
|
|
88
|
+
control renders no panel of its own.
|
|
89
|
+
|
|
90
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#Controlled
|
|
91
|
+
|
|
92
|
+
### FormField
|
|
93
|
+
|
|
94
|
+
Inside `Field`, for when the choice really is a form answer — the case where `Radio` is
|
|
95
|
+
often the better call.
|
|
96
|
+
|
|
97
|
+
Source: SegmentedControl/SegmentedControl.stories.tsx#FormField
|
|
98
|
+
|
|
99
|
+
## Story sources
|
|
100
|
+
|
|
101
|
+
### SegmentedControl/SegmentedControl.stories.tsx
|
|
102
|
+
|
|
103
|
+
```tsx
|
|
104
|
+
import { useState } from 'react';
|
|
105
|
+
import { fn } from 'storybook/test';
|
|
106
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
107
|
+
import {
|
|
108
|
+
ChevronLeft,
|
|
109
|
+
ChevronRight,
|
|
110
|
+
CircleDashed,
|
|
111
|
+
Ellipsis,
|
|
112
|
+
Home,
|
|
113
|
+
Info,
|
|
114
|
+
Search,
|
|
115
|
+
SlidersHorizontal,
|
|
116
|
+
} from '../../icons';
|
|
117
|
+
import { Field, FieldDescription, FieldLabel } from '../Field';
|
|
118
|
+
import { NumericBadge } from '../NumericBadge';
|
|
119
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../Tooltip';
|
|
120
|
+
import { SegmentedControl, type SegmentedControlProps } from './SegmentedControl';
|
|
121
|
+
import { SegmentedControlButton } from './SegmentedControlButton';
|
|
122
|
+
import { SegmentedControlItem } from './SegmentedControlItem';
|
|
123
|
+
import { SegmentedControlSeparator } from './SegmentedControlSeparator';
|
|
124
|
+
|
|
125
|
+
const DESCRIPTION = [
|
|
126
|
+
'Switches between renditions of the same content, with every option visible — reach for `Tabs` when the sections are distinct places rather than views of one thing, and `Radio` when the choice is an answer a form submits.',
|
|
127
|
+
'It owns no panel: it reports the chosen value and you re-render the content yourself.',
|
|
128
|
+
].join(' ');
|
|
129
|
+
|
|
130
|
+
const onShowMore = fn().mockName('onShowMore');
|
|
131
|
+
|
|
132
|
+
const meta = {
|
|
133
|
+
title: 'Inputs/SegmentedControl',
|
|
134
|
+
component: SegmentedControl,
|
|
135
|
+
subcomponents: {
|
|
136
|
+
SegmentedControlItem,
|
|
137
|
+
SegmentedControlSeparator,
|
|
138
|
+
SegmentedControlButton,
|
|
139
|
+
},
|
|
140
|
+
parameters: {
|
|
141
|
+
layout: 'centered',
|
|
142
|
+
docs: {
|
|
143
|
+
description: {
|
|
144
|
+
component: DESCRIPTION,
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
argTypes: {
|
|
149
|
+
value: {
|
|
150
|
+
control: { type: 'text' },
|
|
151
|
+
description: 'Currently selected value',
|
|
152
|
+
},
|
|
153
|
+
onChange: {
|
|
154
|
+
description: 'Callback when selection changes',
|
|
155
|
+
action: 'onChange',
|
|
156
|
+
},
|
|
157
|
+
fullWidth: {
|
|
158
|
+
control: { type: 'boolean' },
|
|
159
|
+
description: 'Whether the segmented control should take full width',
|
|
160
|
+
defaultValue: false,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
} satisfies Meta<typeof SegmentedControl>;
|
|
164
|
+
|
|
165
|
+
export default meta;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Two to five options, all visible at once. Past that the control gets cramped and the
|
|
169
|
+
* comparison it exists to offer stops working.
|
|
170
|
+
*/
|
|
171
|
+
export const Basic: StoryFn<SegmentedControlProps> = () => (
|
|
172
|
+
<SegmentedControl defaultValue='1' data-testid='segmented-control'>
|
|
173
|
+
<SegmentedControlItem value='1'>
|
|
174
|
+
Headers
|
|
175
|
+
<NumericBadge>33</NumericBadge>
|
|
176
|
+
</SegmentedControlItem>
|
|
177
|
+
<SegmentedControlItem value='2'>
|
|
178
|
+
Parameters
|
|
179
|
+
<NumericBadge>100</NumericBadge>
|
|
180
|
+
</SegmentedControlItem>
|
|
181
|
+
<SegmentedControlItem value='3'>Schema</SegmentedControlItem>
|
|
182
|
+
</SegmentedControl>
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* A disabled option stays visible rather than disappearing, so the set of choices doesn't
|
|
187
|
+
* change shape between visits.
|
|
188
|
+
*/
|
|
189
|
+
export const Disabled: StoryFn<SegmentedControlProps> = () => (
|
|
190
|
+
<SegmentedControl defaultValue='1'>
|
|
191
|
+
<SegmentedControlItem value='1'>Active</SegmentedControlItem>
|
|
192
|
+
<SegmentedControlItem value='2' disabled>
|
|
193
|
+
Disabled
|
|
194
|
+
</SegmentedControlItem>
|
|
195
|
+
<SegmentedControlItem value='3'>Normal</SegmentedControlItem>
|
|
196
|
+
</SegmentedControl>
|
|
197
|
+
);
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Icons beside the labels, which helps when the options are renditions — a list against a
|
|
201
|
+
* grid — rather than categories.
|
|
202
|
+
*/
|
|
203
|
+
export const Icons: StoryFn<SegmentedControlProps> = () => (
|
|
204
|
+
<SegmentedControl defaultValue='1'>
|
|
205
|
+
<SegmentedControlItem value='1'>
|
|
206
|
+
<ChevronLeft />
|
|
207
|
+
Previous
|
|
208
|
+
</SegmentedControlItem>
|
|
209
|
+
<SegmentedControlItem value='2'>
|
|
210
|
+
<Search />
|
|
211
|
+
Search
|
|
212
|
+
</SegmentedControlItem>
|
|
213
|
+
<SegmentedControlItem value='3'>
|
|
214
|
+
Next
|
|
215
|
+
<ChevronRight />
|
|
216
|
+
</SegmentedControlItem>
|
|
217
|
+
</SegmentedControl>
|
|
218
|
+
);
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Icon-only segments for a toolbar. Each still needs an accessible name; the icon is the
|
|
222
|
+
* label only visually.
|
|
223
|
+
*/
|
|
224
|
+
export const IconOnly: StoryFn<SegmentedControlProps> = () => (
|
|
225
|
+
<SegmentedControl defaultValue='user'>
|
|
226
|
+
<SegmentedControlItem value='user'>
|
|
227
|
+
<Home />
|
|
228
|
+
<NumericBadge>1</NumericBadge>
|
|
229
|
+
</SegmentedControlItem>
|
|
230
|
+
<SegmentedControlItem value='settings'>
|
|
231
|
+
<SlidersHorizontal />
|
|
232
|
+
</SegmentedControlItem>
|
|
233
|
+
<SegmentedControlItem value='search'>
|
|
234
|
+
<Search />
|
|
235
|
+
</SegmentedControlItem>
|
|
236
|
+
</SegmentedControl>
|
|
237
|
+
);
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* An overflow trigger for the options that didn't fit. If you need this often, the choice
|
|
241
|
+
* probably wants a `Select`.
|
|
242
|
+
*/
|
|
243
|
+
export const MoreButton: StoryFn<SegmentedControlProps> = () => (
|
|
244
|
+
<SegmentedControl defaultValue='1'>
|
|
245
|
+
<SegmentedControlItem value='1'>
|
|
246
|
+
Headers
|
|
247
|
+
<NumericBadge>33</NumericBadge>
|
|
248
|
+
</SegmentedControlItem>
|
|
249
|
+
<SegmentedControlItem value='2'>
|
|
250
|
+
Parameters
|
|
251
|
+
<NumericBadge>100</NumericBadge>
|
|
252
|
+
</SegmentedControlItem>
|
|
253
|
+
<SegmentedControlItem value='3'>Schema</SegmentedControlItem>
|
|
254
|
+
<SegmentedControlSeparator />
|
|
255
|
+
<SegmentedControlButton onClick={onShowMore}>
|
|
256
|
+
<Ellipsis />
|
|
257
|
+
More
|
|
258
|
+
</SegmentedControlButton>
|
|
259
|
+
</SegmentedControl>
|
|
260
|
+
);
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* What too many options looks like — worth seeing so the limit is a judgement rather than a
|
|
264
|
+
* rule you took on trust.
|
|
265
|
+
*/
|
|
266
|
+
export const Many: StoryFn<SegmentedControlProps> = () => {
|
|
267
|
+
const items = Array.from({ length: 10 }, (_, i) => ({
|
|
268
|
+
id: String(i + 1),
|
|
269
|
+
text: `Item ${i + 1}`,
|
|
270
|
+
}));
|
|
271
|
+
|
|
272
|
+
return (
|
|
273
|
+
<SegmentedControl defaultValue='1'>
|
|
274
|
+
{items.slice(0, 7).map(item => (
|
|
275
|
+
<SegmentedControlItem key={item.id} value={item.id}>
|
|
276
|
+
{item.text}
|
|
277
|
+
</SegmentedControlItem>
|
|
278
|
+
))}
|
|
279
|
+
<SegmentedControlSeparator />
|
|
280
|
+
<SegmentedControlButton onClick={onShowMore}>
|
|
281
|
+
<Ellipsis />
|
|
282
|
+
More
|
|
283
|
+
</SegmentedControlButton>
|
|
284
|
+
</SegmentedControl>
|
|
285
|
+
);
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* A count on a segment, for when each view holds a different number of things and the reader
|
|
290
|
+
* would otherwise have to switch to find out.
|
|
291
|
+
*/
|
|
292
|
+
export const Badge: StoryFn<SegmentedControlProps> = () => (
|
|
293
|
+
<SegmentedControl defaultValue='icon-badge'>
|
|
294
|
+
<SegmentedControlItem value='icon-only'>
|
|
295
|
+
<CircleDashed />
|
|
296
|
+
</SegmentedControlItem>
|
|
297
|
+
<SegmentedControlItem value='icon-badge'>
|
|
298
|
+
<CircleDashed />
|
|
299
|
+
<NumericBadge>1</NumericBadge>
|
|
300
|
+
</SegmentedControlItem>
|
|
301
|
+
<SegmentedControlItem value='text-badge'>
|
|
302
|
+
Items
|
|
303
|
+
<NumericBadge>99</NumericBadge>
|
|
304
|
+
</SegmentedControlItem>
|
|
305
|
+
</SegmentedControl>
|
|
306
|
+
);
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Stretches to its container, dividing the width evenly. Suits a narrow panel; in a wide one
|
|
310
|
+
* it leaves the segments floating far apart.
|
|
311
|
+
*/
|
|
312
|
+
export const FullWidth: StoryFn<SegmentedControlProps> = () => (
|
|
313
|
+
<div className='min-w-800'>
|
|
314
|
+
<SegmentedControl defaultValue='1' fullWidth>
|
|
315
|
+
<SegmentedControlItem value='1'>
|
|
316
|
+
Overview
|
|
317
|
+
<NumericBadge>12</NumericBadge>
|
|
318
|
+
</SegmentedControlItem>
|
|
319
|
+
<SegmentedControlItem value='2'>Analytics</SegmentedControlItem>
|
|
320
|
+
<SegmentedControlItem value='3'>
|
|
321
|
+
Reports
|
|
322
|
+
<NumericBadge>5</NumericBadge>
|
|
323
|
+
</SegmentedControlItem>
|
|
324
|
+
<SegmentedControlItem value='4'>Settings</SegmentedControlItem>
|
|
325
|
+
</SegmentedControl>
|
|
326
|
+
</div>
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Own the value when something else has to move with it, which is the usual case, since the
|
|
331
|
+
* control renders no panel of its own.
|
|
332
|
+
*/
|
|
333
|
+
export const Controlled: StoryFn<SegmentedControlProps> = () => {
|
|
334
|
+
const [value, setValue] = useState<string>('1');
|
|
335
|
+
|
|
336
|
+
return (
|
|
337
|
+
<SegmentedControl value={value} onChange={setValue}>
|
|
338
|
+
<SegmentedControlItem value='1'>
|
|
339
|
+
Headers
|
|
340
|
+
<NumericBadge>33</NumericBadge>
|
|
341
|
+
</SegmentedControlItem>
|
|
342
|
+
<SegmentedControlItem value='2'>
|
|
343
|
+
Parameters
|
|
344
|
+
<NumericBadge>100</NumericBadge>
|
|
345
|
+
</SegmentedControlItem>
|
|
346
|
+
<SegmentedControlItem value='3'>Schema</SegmentedControlItem>
|
|
347
|
+
</SegmentedControl>
|
|
348
|
+
);
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Inside `Field`, for when the choice really is a form answer — the case where `Radio` is
|
|
353
|
+
* often the better call.
|
|
354
|
+
*/
|
|
355
|
+
export const FormField: StoryFn<typeof meta> = () => (
|
|
356
|
+
<Field>
|
|
357
|
+
<FieldLabel>
|
|
358
|
+
Label
|
|
359
|
+
<Tooltip>
|
|
360
|
+
<TooltipTrigger>
|
|
361
|
+
<Info />
|
|
362
|
+
</TooltipTrigger>
|
|
363
|
+
<TooltipContent>Additional information</TooltipContent>
|
|
364
|
+
</Tooltip>
|
|
365
|
+
</FieldLabel>
|
|
366
|
+
|
|
367
|
+
<FieldDescription>This is an input description.</FieldDescription>
|
|
368
|
+
|
|
369
|
+
<SegmentedControl defaultValue='1'>
|
|
370
|
+
<SegmentedControlItem value='1'>
|
|
371
|
+
Headers
|
|
372
|
+
<NumericBadge>33</NumericBadge>
|
|
373
|
+
</SegmentedControlItem>
|
|
374
|
+
<SegmentedControlItem value='2'>
|
|
375
|
+
Parameters
|
|
376
|
+
<NumericBadge>100</NumericBadge>
|
|
377
|
+
</SegmentedControlItem>
|
|
378
|
+
<SegmentedControlItem value='3'>Schema</SegmentedControlItem>
|
|
379
|
+
</SegmentedControl>
|
|
380
|
+
</Field>
|
|
381
|
+
);
|
|
382
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,r){let n,l;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var a,o,c=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of u(t))d.call(e,l)||l===r||i(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},h={},p={$dispatcherGuard:()=>D,$makeReadOnly:()=>M,$reset:()=>k,$structuralCheck:()=>x,c:()=>R,clearRenderCounterRegistry:()=>O,renderCounterRegistry:()=>I,useRenderCounter:()=>W};for(var y in p)i(h,y,{get:p[y],enumerable:!0});e.exports=f(i({},"__esModule",{value:!0}),h);var S=(l=null!=(n=r("C"))?c(m(n)):{},f(n&&n.__esModule?l:i(l,"default",{value:n,enumerable:!0}),n)),{useRef:w,useEffect:_,isValidElement:v}=S,b=null!=(a=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?a:S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.memo_cache_sentinel"),R="function"==typeof(null==(o=S.__COMPILER_RUNTIME)?void 0:o.c)?S.__COMPILER_RUNTIME.c:function(e){return S.useMemo(()=>{let t=Array(e);for(let r=0;r<e;r++)t[r]=g;return t[g]=!0,t},[])},E={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{E[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var C=null;function $(e){return b.ReactCurrentDispatcher.current=e,b.ReactCurrentDispatcher.current}E.useMemoCache=e=>{if(null!=C)return C.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var N=[];function D(e){let t=b.ReactCurrentDispatcher.current;if(0===e){if(N.push(t),1===N.length&&(C=t),t===E)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");$(E)}else if(1===e){let e=N.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===N.length&&(C=null),$(e)}else if(2===e)N.push(t),$(C);else if(3===e){let e=N.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");$(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function k(e){for(let t=0;t<e.length;t++)e[t]=g}function M(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var I=new Map;function O(){for(let e of I.values())e.forEach(e=>{e.count=0})}function W(e){let t=w(null);null!=t.current&&(t.current.count+=1),_(()=>{if(null==t.current){let r,n={count:0};null==(r=I.get(e))&&(r=new Set,I.set(e,r)),r.add(n),t.current=n}return()=>{var r;let n;null!==t.current&&(r=t.current,null!=(n=I.get(e))&&n.delete(r))}})}var T=new Set;function x(e,t,r,n,l,a){function o(e,t,o,c){let i=`${n}:${a} [${l}] ${r}${o} changed from ${e} to ${t} at depth ${c}`;T.has(i)||(T.add(i),console.error(i))}!function e(t,r,n,l){if(!(l>2)){if(t!==r)if(typeof t!=typeof r)o(`type ${typeof t}`,`type ${typeof r}`,n,l);else if("object"==typeof t){let a=Array.isArray(t),c=Array.isArray(r);if(null===t&&null!==r)o("null",`type ${typeof r}`,n,l);else if(null===r)o(`type ${typeof t}`,"null",n,l);else if(t instanceof Map)if(r instanceof Map)if(t.size!==r.size)o(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,l);else for(let[a,c]of t)r.has(a)?e(c,r.get(a),`${n}.get(${a})`,l+1):o(`Map instance with key ${a}`,`Map instance without key ${a}`,n,l);else o("Map instance","other value",n,l);else if(r instanceof Map)o("other value","Map instance",n,l);else if(t instanceof Set)if(r instanceof Set)if(t.size!==r.size)o(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,l);else for(let e of r)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,n,l);else o("Set instance","other value",n,l);else if(r instanceof Set)o("other value","Set instance",n,l);else if(a||c)if(a!==c)o(`type ${a?"array":"object"}`,`type ${c?"array":"object"}`,n,l);else if(t.length!==r.length)o(`array with length ${t.length}`,`array with length ${r.length}`,n,l);else for(let a=0;a<t.length;a++)e(t[a],r[a],`${n}[${a}]`,l+1);else if(v(t)||v(r))v(t)!==v(r)?o(`type ${v(t)?"React element":"object"}`,`type ${v(r)?"React element":"object"}`,n,l):t.type!==r.type?o(`React element of type ${t.type}`,`React element of type ${r.type}`,n,l):e(t.props,r.props,`[props of ${n}]`,l+1);else{for(let e in r)e in t||o(`object without key ${e}`,`object with key ${e}`,n,l);for(let a in t)a in r?e(t[a],r[a],`${n}.${a}`,l+1):o(`object with key ${a}`,`object without key ${a}`,n,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,l):t!==r&&o(t,r,n,l)}}}(e,t,"",0)}},p(e,t,r){let n=new WeakMap,l=new WeakMap;function a(e,t,r){let a=t,o=r;if("object"==typeof a&&null!==a&&"$$typeof"in a&&a.$$typeof===Symbol.for("react.context")&&"Provider"in a&&(a=a.Provider),"function"==typeof a&&null!=o.ref&&!a.prototype?.isReactComponent){let t=a,r=n.get(e);r||(r=new WeakMap,n.set(e,r));let l=r.get(t);l||((l=e.forwardRef((e,r)=>t({...e,ref:r}))).displayName=t.displayName??t.name,r.set(t,l)),a=l}if("string"==typeof a&&"boolean"==typeof o.inert&&((o={...o}).inert?o.inert="":delete o.inert),"string"==typeof a)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in o&&(o={...o,[t]:o[e]},delete o[e]);return"string"==typeof a&&null!=o.ref&&(a=function(e,t){let r=l.get(e);r||(r=new Map,l.set(e,r));let n=r.get(t);if(n)return n;let a=e.forwardRef((r,n)=>{let l=e.useRef(null);if(!l.current||l.current.original!==n){let e;l.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:l.current.callback})});return a.displayName=`CanvasHost(${t})`,r.set(t,a),a}(e,a)),{type:a,props:o}}function o(e){let t=(t,r,n)=>{let l=a(e,t,r??{});return e.createElement(l.type,void 0===n?l.props:{...l.props,key:n})};return{jsx:t,jsxs:(t,r,n)=>{let l=a(e,t,r??{}),{children:o,...c}=l.props;return e.createElement(l.type,void 0===n?c:{...c,key:n},...Array.isArray(o)?o:[o])},jsxDEV:t,Fragment:e.Fragment}}function c(e){return{...e,createElement:(t,r,...n)=>{let l=a(e,t,r??{});return e.createElement(l.type,l.props,...n)},cloneElement:(t,r,...n)=>{let l=e.cloneElement(t,r??void 0,...n),o=l.ref,c=a(e,l.type,{...l.props,ref:o});return c.type===l.type&&"string"!=typeof l.type?l:e.createElement(c.type,{...c.props,key:l.key})}}}r.d(t,{MA:()=>o,YJ:()=>c})},C(e,t,r){r.r(t);let n=(0,r("p").YJ)(window.React),{Children:l,Component:a,Fragment:o,Profiler:c,PureComponent:i,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m,act:d,cloneElement:f,createContext:h,createElement:p,createFactory:y,createRef:S,forwardRef:w,isValidElement:_,lazy:v,memo:b,startTransition:g,unstable_act:R,useCallback:E,useContext:C,useDebugValue:$,useDeferredValue:N,useEffect:D,useId:k,useImperativeHandle:M,useInsertionEffect:I,useLayoutEffect:O,useMemo:W,useReducer:T,useRef:x,useState:j,useSyncExternalStore:P,useTransition:A,version:V,use:L}=n;r.d(t,{},{Children:l,Component:a,Fragment:o,Profiler:c,PureComponent:i,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:m,act:d,cloneElement:f,createContext:h,createElement:p,createFactory:y,createRef:S,default:n,forwardRef:w,isValidElement:_,lazy:v,memo:b,startTransition:g,unstable_act:R,use:L,useCallback:E,useContext:C,useDebugValue:$,useDeferredValue:N,useEffect:D,useId:k,useImperativeHandle:M,useInsertionEffect:I,useLayoutEffect:O,useMemo:W,useReducer:T,useRef:x,useState:j,useSyncExternalStore:P,useTransition:A,version:V})}},t={};function r(n){var l=t[n];if(void 0!==l)return l.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t,n)=>{var l=(t,n)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[n]:t[l]})};l(t,"get"),l(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:l}=(0,r("p").MA)(window.React);var a=r("vD"),o=r("C");let c=window.WallarmDS.Icons.ChevronLeft,i=window.WallarmDS.Icons.ChevronRight,s=window.WallarmDS.Icons.CircleDashed,u=window.WallarmDS.Icons.Ellipsis,m=window.WallarmDS.Icons.Home,d=window.WallarmDS.Icons.Info,f=window.WallarmDS.Icons.Search,h=window.WallarmDS.Icons.SlidersHorizontal,p=window.WallarmDS.Field,y=window.WallarmDS.FieldDescription,S=window.WallarmDS.FieldLabel,w=window.WallarmDS.NumericBadge,_=window.WallarmDS.Tooltip,v=window.WallarmDS.TooltipContent,b=window.WallarmDS.TooltipTrigger,g=window.WallarmDS.SegmentedControl,R=window.WallarmDS.SegmentedControlButton,E=window.WallarmDS.SegmentedControlItem,C=window.WallarmDS.SegmentedControlSeparator,$=(function(e=()=>{}){let t=(...t)=>e(...t);for(let r of["mockName","mockReturnValue","mockResolvedValue","mockImplementation"])t[r]=n=>("mockImplementation"===r?e=n:"mockReturnValue"===r?e=()=>n:"mockResolvedValue"===r&&(e=()=>Promise.resolve(n)),t);return t})().mockName("onShowMore"),N={title:"Inputs/SegmentedControl",component:g,subcomponents:{SegmentedControlItem:E,SegmentedControlSeparator:C,SegmentedControlButton:R},parameters:{layout:"centered",docs:{description:{component:"Switches between renditions of the same content, with every option visible — reach for `Tabs` when the sections are distinct places rather than views of one thing, and `Radio` when the choice is an answer a form submits. It owns no panel: it reports the chosen value and you re-render the content yourself."}}},argTypes:{value:{control:{type:"text"},description:"Currently selected value"},onChange:{description:"Callback when selection changes",action:"onChange"},fullWidth:{control:{type:"boolean"},description:"Whether the segmented control should take full width",defaultValue:!1}}};function D(e,t){return{id:String(t+1),text:`Item ${t+1}`}}function k(t){return e(E,{value:t.id,children:t.text},t.id)}let M=[{name:"Basic",story:()=>{let r,n,l=(0,a.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(E,{value:"1",children:["Headers",e(w,{children:"33"})]}),l[0]=r):r=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(g,{defaultValue:"1","data-testid":"segmented-control",children:[r,t(E,{value:"2",children:["Parameters",e(w,{children:"100"})]}),e(E,{value:"3",children:"Schema"})]}),l[1]=n):n=l[1],n},meta:N},{name:"Disabled",story:()=>{let r,n=(0,a.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(g,{defaultValue:"1",children:[e(E,{value:"1",children:"Active"}),e(E,{value:"2",disabled:!0,children:"Disabled"}),e(E,{value:"3",children:"Normal"})]}),n[0]=r):r=n[0],r},meta:N},{name:"Icons",story:()=>{let r,n,l,o=(0,a.c)(3);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(E,{value:"1",children:[e(c,{}),"Previous"]}),o[0]=r):r=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(E,{value:"2",children:[e(f,{}),"Search"]}),o[1]=n):n=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(g,{defaultValue:"1",children:[r,n,t(E,{value:"3",children:["Next",e(i,{})]})]}),o[2]=l):l=o[2],l},meta:N},{name:"IconOnly",story:()=>{let r,n,l,o=(0,a.c)(3);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(E,{value:"user",children:[e(m,{}),e(w,{children:"1"})]}),o[0]=r):r=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(E,{value:"settings",children:e(h,{})}),o[1]=n):n=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(g,{defaultValue:"user",children:[r,n,e(E,{value:"search",children:e(f,{})})]}),o[2]=l):l=o[2],l},meta:N},{name:"MoreButton",story:()=>{let r,n,l,o,c,i=(0,a.c)(5);return i[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(E,{value:"1",children:["Headers",e(w,{children:"33"})]}),i[0]=r):r=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(E,{value:"2",children:["Parameters",e(w,{children:"100"})]}),l=e(E,{value:"3",children:"Schema"}),o=e(C,{}),i[1]=n,i[2]=l,i[3]=o):(n=i[1],l=i[2],o=i[3]),i[4]===Symbol.for("react.memo_cache_sentinel")?(c=t(g,{defaultValue:"1",children:[r,n,l,o,t(R,{onClick:$,children:[e(u,{}),"More"]})]}),i[4]=c):c=i[4],c},meta:N},{name:"Many",story:()=>{let r,n,l,o,c=(0,a.c)(4);c[0]===Symbol.for("react.memo_cache_sentinel")?(r=Array.from({length:10},D),c[0]=r):r=c[0];let i=r;return c[1]===Symbol.for("react.memo_cache_sentinel")?(n=i.slice(0,7).map(k),l=e(C,{}),c[1]=n,c[2]=l):(n=c[1],l=c[2]),c[3]===Symbol.for("react.memo_cache_sentinel")?(o=t(g,{defaultValue:"1",children:[n,l,t(R,{onClick:$,children:[e(u,{}),"More"]})]}),c[3]=o):o=c[3],o},meta:N},{name:"Badge",story:()=>{let r,n,l,o=(0,a.c)(3);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(E,{value:"icon-only",children:e(s,{})}),o[0]=r):r=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(E,{value:"icon-badge",children:[e(s,{}),e(w,{children:"1"})]}),o[1]=n):n=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(g,{defaultValue:"icon-badge",children:[r,n,t(E,{value:"text-badge",children:["Items",e(w,{children:"99"})]})]}),o[2]=l):l=o[2],l},meta:N},{name:"FullWidth",story:()=>{let r,n,l,o=(0,a.c)(3);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(E,{value:"1",children:["Overview",e(w,{children:"12"})]}),n=e(E,{value:"2",children:"Analytics"}),o[0]=r,o[1]=n):(r=o[0],n=o[1]),o[2]===Symbol.for("react.memo_cache_sentinel")?(l=e("div",{className:"min-w-800",children:t(g,{defaultValue:"1",fullWidth:!0,children:[r,n,t(E,{value:"3",children:["Reports",e(w,{children:"5"})]}),e(E,{value:"4",children:"Settings"})]})}),o[2]=l):l=o[2],l},meta:N},{name:"Controlled",story:()=>{let r,n,l,c,i=(0,a.c)(5),[s,u]=(0,o.useState)("1");return i[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(E,{value:"1",children:["Headers",e(w,{children:"33"})]}),i[0]=r):r=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(E,{value:"2",children:["Parameters",e(w,{children:"100"})]}),l=e(E,{value:"3",children:"Schema"}),i[1]=n,i[2]=l):(n=i[1],l=i[2]),i[3]!==s?(c=t(g,{value:s,onChange:u,children:[r,n,l]}),i[3]=s,i[4]=c):c=i[4],c},meta:N},{name:"FormField",story:()=>{let r,n,l,o,c=(0,a.c)(4);return c[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(S,{children:["Label",t(_,{children:[e(b,{children:e(d,{})}),e(v,{children:"Additional information"})]})]}),n=e(y,{children:"This is an input description."}),c[0]=r,c[1]=n):(r=c[0],n=c[1]),c[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(E,{value:"1",children:["Headers",e(w,{children:"33"})]}),c[2]=l):l=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(o=t(p,{children:[r,n,t(g,{defaultValue:"1",children:[l,t(E,{value:"2",children:["Parameters",e(w,{children:"100"})]}),e(E,{value:"3",children:"Schema"})]})]}),c[3]=o):o=c[3],o},meta:N}];function I({entry:e}){let{story:t,meta:r}=e,n={...r.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||r.render||r.component,a=()=>o.default.createElement(l,n),c={args:n,globals:{theme:"light"},parameters:{...r.parameters,...t.parameters},viewMode:"story"};for(let e of[...r.decorators||[],...t.decorators||[]].reverse()){let t=a;a=()=>e(t,c)}return o.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},o.default.createElement("h2",{className:"text-sm mb-12"},e.name),o.default.createElement(a))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(o.default.createElement(window.WallarmDS.Root,null,M.map((e,t)=>o.default.createElement(I,{key:t,entry:e})))),t}}})();
|