@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,r){let a,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 n,o,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,f=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of u(t))m.call(e,l)||l===r||c(e,l,{get:()=>t[l],enumerable:!(a=s(t,l))||a.enumerable});return e},p={},h={$dispatcherGuard:()=>C,$makeReadOnly:()=>F,$reset:()=>O,$structuralCheck:()=>I,c:()=>E,clearRenderCounterRegistry:()=>k,renderCounterRegistry:()=>M,useRenderCounter:()=>x};for(var y in h)c(p,y,{get:h[y],enumerable:!0});e.exports=f(c({},"__esModule",{value:!0}),p);var w=(l=null!=(a=r("C"))?i(d(a)):{},f(a&&a.__esModule?l:c(l,"default",{value:a,enumerable:!0}),a)),{useRef:_,useEffect:b,isValidElement:S}=w,g=null!=(n=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?n:w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.memo_cache_sentinel"),E="function"==typeof(null==(o=w.__COMPILER_RUNTIME)?void 0:o.c)?w.__COMPILER_RUNTIME.c:function(e){return w.useMemo(()=>{let t=Array(e);for(let r=0;r<e;r++)t[r]=v;return t[v]=!0,t},[])},R={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{R[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var $=null;function D(e){return g.ReactCurrentDispatcher.current=e,g.ReactCurrentDispatcher.current}R.useMemoCache=e=>{if(null!=$)return $.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var N=[];function C(e){let t=g.ReactCurrentDispatcher.current;if(0===e){if(N.push(t),1===N.length&&($=t),t===R)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");D(R)}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&&($=null),D(e)}else if(2===e)N.push(t),D($);else if(3===e){let e=N.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");D(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function O(e){for(let t=0;t<e.length;t++)e[t]=v}function F(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var M=new Map;function k(){for(let e of M.values())e.forEach(e=>{e.count=0})}function x(e){let t=_(null);null!=t.current&&(t.current.count+=1),b(()=>{if(null==t.current){let r,a={count:0};null==(r=M.get(e))&&(r=new Set,M.set(e,r)),r.add(a),t.current=a}return()=>{var r;let a;null!==t.current&&(r=t.current,null!=(a=M.get(e))&&a.delete(r))}})}var T=new Set;function I(e,t,r,a,l,n){function o(e,t,o,i){let c=`${a}:${n} [${l}] ${r}${o} changed from ${e} to ${t} at depth ${i}`;T.has(c)||(T.add(c),console.error(c))}!function e(t,r,a,l){if(!(l>2)){if(t!==r)if(typeof t!=typeof r)o(`type ${typeof t}`,`type ${typeof r}`,a,l);else if("object"==typeof t){let n=Array.isArray(t),i=Array.isArray(r);if(null===t&&null!==r)o("null",`type ${typeof r}`,a,l);else if(null===r)o(`type ${typeof t}`,"null",a,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}`,a,l);else for(let[n,i]of t)r.has(n)?e(i,r.get(n),`${a}.get(${n})`,l+1):o(`Map instance with key ${n}`,`Map instance without key ${n}`,a,l);else o("Map instance","other value",a,l);else if(r instanceof Map)o("other value","Map instance",a,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}`,a,l);else for(let e of r)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,a,l);else o("Set instance","other value",a,l);else if(r instanceof Set)o("other value","Set instance",a,l);else if(n||i)if(n!==i)o(`type ${n?"array":"object"}`,`type ${i?"array":"object"}`,a,l);else if(t.length!==r.length)o(`array with length ${t.length}`,`array with length ${r.length}`,a,l);else for(let n=0;n<t.length;n++)e(t[n],r[n],`${a}[${n}]`,l+1);else if(S(t)||S(r))S(t)!==S(r)?o(`type ${S(t)?"React element":"object"}`,`type ${S(r)?"React element":"object"}`,a,l):t.type!==r.type?o(`React element of type ${t.type}`,`React element of type ${r.type}`,a,l):e(t.props,r.props,`[props of ${a}]`,l+1);else{for(let e in r)e in t||o(`object without key ${e}`,`object with key ${e}`,a,l);for(let n in t)n in r?e(t[n],r[n],`${a}.${n}`,l+1):o(`object with key ${n}`,`object without key ${n}`,a,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"}`,a,l):t!==r&&o(t,r,a,l)}}}(e,t,"",0)}},p(e,t,r){let a=new WeakMap,l=new WeakMap;function n(e,t,r){let n=t,o=r;if("object"==typeof n&&null!==n&&"$$typeof"in n&&n.$$typeof===Symbol.for("react.context")&&"Provider"in n&&(n=n.Provider),"function"==typeof n&&null!=o.ref&&!n.prototype?.isReactComponent){let t=n,r=a.get(e);r||(r=new WeakMap,a.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)),n=l}if("string"==typeof n&&"boolean"==typeof o.inert&&((o={...o}).inert?o.inert="":delete o.inert),"string"==typeof n)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 n&&null!=o.ref&&(n=function(e,t){let r=l.get(e);r||(r=new Map,l.set(e,r));let a=r.get(t);if(a)return a;let n=e.forwardRef((r,a)=>{let l=e.useRef(null);if(!l.current||l.current.original!==a){let e;l.current={original:a,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof a){let r=a(t);e="function"==typeof r?r:void 0}else a&&(a.current=t)}}}return e.createElement(t,{...r,ref:l.current.callback})});return n.displayName=`CanvasHost(${t})`,r.set(t,n),n}(e,n)),{type:n,props:o}}function o(e){let t=(t,r,a)=>{let l=n(e,t,r??{});return e.createElement(l.type,void 0===a?l.props:{...l.props,key:a})};return{jsx:t,jsxs:(t,r,a)=>{let l=n(e,t,r??{}),{children:o,...i}=l.props;return e.createElement(l.type,void 0===a?i:{...i,key:a},...Array.isArray(o)?o:[o])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,r,...a)=>{let l=n(e,t,r??{});return e.createElement(l.type,l.props,...a)},cloneElement:(t,r,...a)=>{let l=e.cloneElement(t,r??void 0,...a),o=l.ref,i=n(e,l.type,{...l.props,ref:o});return i.type===l.type&&"string"!=typeof l.type?l:e.createElement(i.type,{...i.props,key:l.key})}}}r.d(t,{MA:()=>o,YJ:()=>i})},C(e,t,r){r.r(t);let a=(0,r("p").YJ)(window.React),{Children:l,Component:n,Fragment:o,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:m,cloneElement:f,createContext:p,createElement:h,createFactory:y,createRef:w,forwardRef:_,isValidElement:b,lazy:S,memo:g,startTransition:v,unstable_act:E,useCallback:R,useContext:$,useDebugValue:D,useDeferredValue:N,useEffect:C,useId:O,useImperativeHandle:F,useInsertionEffect:M,useLayoutEffect:k,useMemo:x,useReducer:T,useRef:I,useState:A,useSyncExternalStore:W,useTransition:U,version:j,use:z}=a;r.d(t,{},{Children:l,Component:n,Fragment:o,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:m,cloneElement:f,createContext:p,createElement:h,createFactory:y,createRef:w,default:a,forwardRef:_,isValidElement:b,lazy:S,memo:g,startTransition:v,unstable_act:E,use:z,useCallback:R,useContext:$,useDebugValue:D,useDeferredValue:N,useEffect:C,useId:O,useImperativeHandle:F,useInsertionEffect:M,useLayoutEffect:k,useMemo:x,useReducer:T,useRef:I,useState:A,useSyncExternalStore:W,useTransition:U,version:j})}},t={};function r(a){var l=t[a];if(void 0!==l)return l.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}r.d=(e,t,a)=>{var l=(t,a)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[a]:t[l]})};l(t,"get"),l(a,"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:a,Fragment:l}=(0,r("p").MA)(window.React);var n=r("vD"),o=r("C");let i=["B","KB","MB","GB","TB"],c=e=>{let t=e,r=0;for(;t>=1024&&r<i.length-1;)t/=1024,r+=1;let a=0===r?t:Math.round(10*t)/10;return a>=1024&&r<i.length-1&&(a=Math.round(a/1024*10)/10,r+=1),`${a} ${i[r]}`},s=window.WallarmDS.Icons.Download,u=window.WallarmDS.Button,d=window.WallarmDS.Field,m=window.WallarmDS.FieldDescription,f=window.WallarmDS.FieldError,p=window.WallarmDS.FieldIndicator,h=window.WallarmDS.FieldLabel,y=window.WallarmDS.FileUpload,w=window.WallarmDS.FileUploadDropzone,_=window.WallarmDS.FileUploadError,b=window.WallarmDS.FileUploadItem,S=window.WallarmDS.FileUploadItemAction,g=window.WallarmDS.FileUploadItemDeleteTrigger,v=window.WallarmDS.FileUploadItemGroup,E=window.WallarmDS.FileUploadItemReplaceTrigger,R=window.WallarmDS.FileUploadTrigger,$=(e,t=49152)=>new File([new Uint8Array(t)],e),D=()=>{let t,r=(0,n.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(v,{children:C}),r[0]=t):t=r[0],t},N={title:"Inputs/FileUpload",component:y,parameters:{layout:"centered",docs:{description:{component:'Attaches files to a form and checks their type, size and count before accepting them — the drop Area when attaching is the main task on the screen, the "Select file" button when space is tight. Picking never uploads: files travel with the form when it is saved, and the product marks a row `loading` while it sends one. To pick a photo by clicking an avatar, see Data Display/Avatar → Click To Upload.'}}},args:{maxFiles:1,disabled:!1,readOnly:!1,error:!1},argTypes:{value:{control:!1},defaultValue:{control:!1},onValueChange:{control:!1},onFileReject:{control:!1},validate:{control:!1},ref:{control:!1},maxFiles:{control:"number"},maxFileSize:{control:"number"},accept:{control:"text"}},decorators:[t=>e("div",{style:{width:360},children:e(t,{})})]};function C(r){return t(b,{file:r,children:[e(E,{}),e(g,{})]})}function O(r){return t(b,{file:r,description:`${c(r.size)} \xb7 uploads when you save`,children:[e(E,{}),e(g,{})]})}function F(r){return t(b,{file:r,children:[e(E,{}),e(g,{})]})}function M(r){return t(b,{file:r,children:[e(E,{}),e(S,{"aria-label":`Download ${r.name}`,children:e(s,{})}),e(g,{})]})}let k=[{name:"Basic",story:r=>{let a,l,o,i,c=(0,n.c)(5);return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(w,{"data-analytics-id":"FILE_UPLOAD_DROPZONE"}),l=e(_,{}),o=e(D,{}),c[0]=a,c[1]=l,c[2]=o):(a=c[0],l=c[1],o=c[2]),c[3]!==r?(i=t(y,{"data-testid":"file-upload",...r,children:[a,l,o]}),c[3]=r,c[4]=i):i=c[4],i},meta:N},{name:"ButtonTrigger",story:r=>{let a,l,o,i,c=(0,n.c)(5);return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(R,{}),l=e(_,{}),o=e(D,{}),c[0]=a,c[1]=l,c[2]=o):(a=c[0],l=c[1],o=c[2]),c[3]!==r?(i=t(y,{"data-testid":"file-upload",...r,children:[a,l,o]}),c[3]=r,c[4]=i):i=c[4],i},meta:N},{name:"InField",story:r=>{let a,l,o,i,c,s,u=(0,n.c)(7);return u[0]===Symbol.for("react.memo_cache_sentinel")?(a=t(h,{children:["WASM module",e(p,{})]}),l=e(m,{children:"Exports memory, spe_alloc, spe_free, spe_init, spe_on_phase · up to 32 MB"}),u[0]=a,u[1]=l):(a=u[0],l=u[1]),u[2]===Symbol.for("react.memo_cache_sentinel")?(o=e(w,{children:"Choose a .wasm module or drop it here"}),i=e(_,{}),c=e(D,{}),u[2]=o,u[3]=i,u[4]=c):(o=u[2],i=u[3],c=u[4]),u[5]!==r?(s=t(d,{required:!0,"data-testid":"field",children:[a,l,t(y,{"data-testid":"file-upload",accept:".wasm",maxFileSize:0x2000000,...r,children:[o,i,c]})]}),u[5]=r,u[6]=s):s=u[6],s},meta:N},{name:"Multiple",story:r=>{let a,l,o,i,c,s=(0,n.c)(6);return s[0]===Symbol.for("react.memo_cache_sentinel")?(a=[$("rules.lua"),$("headers.lua")],l=e(w,{}),o=e(_,{}),i=e(D,{}),s[0]=a,s[1]=l,s[2]=o,s[3]=i):(a=s[0],l=s[1],o=s[2],i=s[3]),s[4]!==r?(c=t(y,{"data-testid":"file-upload",...r,maxFiles:5,defaultValue:a,children:[l,o,i]}),s[4]=r,s[5]=c):c=s[5],c},meta:N},{name:"SingleFileChosen",story:r=>{let a,l,o,i,c,s=(0,n.c)(6);return s[0]===Symbol.for("react.memo_cache_sentinel")?(a=[$("policy.wasm")],l=e(w,{}),o=e(_,{}),i=e(D,{}),s[0]=a,s[1]=l,s[2]=o,s[3]=i):(a=s[0],l=s[1],o=s[2],i=s[3]),s[4]!==r?(c=t(y,{"data-testid":"file-upload",...r,defaultValue:a,children:[l,o,i]}),s[4]=r,s[5]=c):c=s[5],c},meta:N},{name:"WithDescription",story:r=>{let a,l,o,i,c=(0,n.c)(5);return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=[$("policy.wasm")],l=e(w,{}),o=e(v,{children:O}),c[0]=a,c[1]=l,c[2]=o):(a=c[0],l=c[1],o=c[2]),c[3]!==r?(i=t(y,{"data-testid":"file-upload",...r,defaultValue:a,children:[l,o]}),c[3]=r,c[4]=i):i=c[4],i},meta:N},{name:"Uploading",story:r=>{let a,l,o,i,c,s,u=(0,n.c)(7);return u[0]===Symbol.for("react.memo_cache_sentinel")?(a=[$("rules.lua")],l=e(w,{}),o=e(v,{children:F}),u[0]=a,u[1]=l,u[2]=o):(a=u[0],l=u[1],o=u[2]),u[3]===Symbol.for("react.memo_cache_sentinel")?(i={name:"headers.lua"},u[3]=i):i=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(c=e(v,{children:e(b,{file:i,loading:!0,children:e(g,{})})}),u[4]=c):c=u[4],u[5]!==r?(s=t(y,{"data-testid":"file-upload",...r,maxFiles:5,defaultValue:a,children:[l,o,c]}),u[5]=r,u[6]=s):s=u[6],s},meta:N},{name:"Validation",story:r=>{let a,l,o,i,c=(0,n.c)(5);return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(w,{}),l=e(_,{}),o=e(D,{}),c[0]=a,c[1]=l,c[2]=o):(a=c[0],l=c[1],o=c[2]),c[3]!==r?(i=t(y,{"data-testid":"file-upload",...r,accept:".so,.dylib",maxFileSize:32768,children:[a,l,o]}),c[3]=r,c[4]=i):i=c[4],i},meta:N},{name:"Disabled",story:r=>{let a,l,o,i,c,s,u=(0,n.c)(10);return u[0]===Symbol.for("react.memo_cache_sentinel")?(a=e(w,{}),u[0]=a):a=u[0],u[1]!==r?(l=e(y,{"data-testid":"file-upload",...r,disabled:!0,children:a}),u[1]=r,u[2]=l):l=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(o=[$("policy.wasm")],i=e(D,{}),u[3]=o,u[4]=i):(o=u[3],i=u[4]),u[5]!==r?(c=e(y,{...r,disabled:!0,defaultValue:o,children:i}),u[5]=r,u[6]=c):c=u[6],u[7]!==l||u[8]!==c?(s=t("div",{className:"flex flex-col gap-16",children:[l,c]}),u[7]=l,u[8]=c,u[9]=s):s=u[9],s},meta:N},{name:"ReadOnly",story:r=>{let a,l,o,i,c=(0,n.c)(5);return c[0]===Symbol.for("react.memo_cache_sentinel")?(a=[$("policy.wasm")],l=e(w,{}),o=e(v,{children:M}),c[0]=a,c[1]=l,c[2]=o):(a=c[0],l=c[1],o=c[2]),c[3]!==r?(i=t(y,{"data-testid":"file-upload",...r,readOnly:!0,defaultValue:a,children:[l,o]}),c[3]=r,c[4]=i):i=c[4],i},meta:N},{name:"StoredFile",story:()=>{let r,a,l=(0,n.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(r={name:"policy.wasm",size:49152},l[0]=r):r=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(a=e(v,{"data-testid":"stored",children:t(b,{file:r,description:"48 KB · attached",children:[e(S,{"aria-label":"Download policy.wasm",children:e(s,{})}),e(g,{"aria-label":"Detach artifact"})]})}),l[1]=a):a=l[1],a},meta:N},{name:"LongFileName",story:t=>{let r,a,l,o=(0,n.c)(4);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=[$("flow-policy-artifact-for-the-production-edge-cluster-eu-central-1.wasm")],a=e(D,{}),o[0]=r,o[1]=a):(r=o[0],a=o[1]),o[2]!==t?(l=e(y,{"data-testid":"file-upload",...t,defaultValue:r,children:a}),o[2]=t,o[3]=l):l=o[3],l},meta:N},{name:"FormSubmission",story:r=>{let a,l,i,s,m,w,_,b,S,g,v,E=(0,n.c)(19),[$,N]=(0,o.useState)("");E[0]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{e.preventDefault();let t=new FormData(e.currentTarget).get("artifact");N(t instanceof File&&t.name?`${t.name} (${c(t.size)})`:"nothing")},E[0]=a):a=E[0];let C=a,O="nothing"===$;return E[1]===Symbol.for("react.memo_cache_sentinel")?(l=t(h,{children:["Artifact",e(p,{})]}),E[1]=l):l=E[1],E[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>N(""),s=e(R,{}),m=e(D,{}),E[2]=i,E[3]=s,E[4]=m):(i=E[2],s=E[3],m=E[4]),E[5]!==r?(w=t(y,{"data-testid":"file-upload",name:"artifact",...r,onValueChange:i,children:[s,m]}),E[5]=r,E[6]=w):w=E[6],E[7]!==$?(_="nothing"===$?e(f,{children:"Attach a file"}):null,E[7]=$,E[8]=_):_=E[8],E[9]!==O||E[10]!==w||E[11]!==_?(b=t(d,{required:!0,invalid:O,children:[l,w,_]}),E[9]=O,E[10]=w,E[11]=_,E[12]=b):b=E[12],E[13]===Symbol.for("react.memo_cache_sentinel")?(S=e(u,{type:"submit",variant:"outline",color:"neutral","data-testid":"submit",children:"Save"}),E[13]=S):S=E[13],E[14]!==$?(g=$&&"nothing"!==$?t("p",{className:"sb-annotation","data-testid":"submitted",children:["Submitted: ",$]}):null,E[14]=$,E[15]=g):g=E[15],E[16]!==g||E[17]!==b?(v=t("form",{onSubmit:C,noValidate:!0,className:"flex flex-col gap-12",children:[b,S,g]}),E[16]=g,E[17]=b,E[18]=v):v=E[18],v},meta:N}];function x({entry:e}){let{story:t,meta:r}=e,a={...r.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||r.render||r.component,n=()=>o.default.createElement(l,a),i={args:a,globals:{theme:"light"},parameters:{...r.parameters,...t.parameters},viewMode:"story"};for(let e of[...r.decorators||[],...t.decorators||[]].reverse()){let t=n;n=()=>e(t,i)}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(n))}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(x,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
A filter over a hierarchy — organization › deployment › application, region › zone. The same 36px pill as `FilterDropdown`; each level opens as its own panel beside the option that opened it, and an item at any depth can be picked. The trigger reads the path: «Scope ● a › ● b», the tooltip carries it whole. Items are the consumer’s own objects, read through accessors; a level can load when it is first opened (`loadChildren`), and `parentLabel` adds the option that picks the level’s parent — «Deployment level». The search finds items at every depth. Compose the panels with `FilterCascadeLevels` to add group labels and options set apart; with no children, `FilterCascadeContent` renders the levels by itself. Reach for `FilterDropdown` when the values are flat.
|
|
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
|
+
| `label` | `string` | yes | — | Attribute name: the trigger text, its aria-label, «Clear {label}», «Search {label}». |
|
|
10
|
+
| `collection` | `complex` | yes | — | From `createFilterCascadeCollection`. |
|
|
11
|
+
| `value` | `string[] \| undefined` | no | — | Controlled path, top level first; `[]` = unset. |
|
|
12
|
+
| `default-value` | `string[] \| undefined` | no | — | |
|
|
13
|
+
| `on-value-change` | `complex` | no | — | |
|
|
14
|
+
| `open` | `boolean \| undefined` | no | — | |
|
|
15
|
+
| `default-open` | `boolean \| undefined` | no | — | |
|
|
16
|
+
| `on-open-change` | `((open: boolean) => void) \| undefined` | no | — | |
|
|
17
|
+
| `load-children` | `((item: T, path: string[]) => Promise<T[]>) \| undefined` | no | — | Loads the next level of an item the collection marks with `hasChildren` — when the item is first highlighted, or when it is on the picked path. |
|
|
18
|
+
| `parent-label` | `string \| ((item: T) => string) \| undefined` | no | — | Puts an option at the top of every next level that picks the item which opened it — «Deployment level». With it, a row that opens a level only opens it; without it, the row itself is picked. |
|
|
19
|
+
| `search-in` | `"all" \| "top" \| undefined` | no | `all` | What the search matches: every loaded level, as one list with each match's path (`'all'`), or the top level only, its levels still opening beside it (`'top'`). |
|
|
20
|
+
| `search-threshold` | `number \| undefined` | no | `8` | Top-level option count from which `FilterCascadeSearch` renders. |
|
|
21
|
+
| `disabled` | `boolean \| undefined` | no | `false` | |
|
|
22
|
+
| `title` | `string \| undefined` | no | — | |
|
|
23
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
24
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
25
|
+
| `id` | `string \| undefined` | no | — | |
|
|
26
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
27
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
28
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
29
|
+
|
|
30
|
+
## Sub-components
|
|
31
|
+
|
|
32
|
+
- `WallarmDS.FilterCascadeClear` — `FilterCascadeClearProps` in the declaration bundle.
|
|
33
|
+
- `WallarmDS.FilterCascadeContent` — `FilterCascadeContentProps` in the declaration bundle.
|
|
34
|
+
- `WallarmDS.FilterCascadeItem` — `FilterCascadeItemProps` in the declaration bundle.
|
|
35
|
+
- `WallarmDS.FilterCascadeEmpty` — `FilterCascadeEmptyProps` in the declaration bundle.
|
|
36
|
+
- `WallarmDS.FilterCascadeGroupLabel` — `FilterCascadeGroupLabelProps` in the declaration bundle.
|
|
37
|
+
- `WallarmDS.FilterCascadeItems` — `FilterCascadeItemsProps` in the declaration bundle.
|
|
38
|
+
- `WallarmDS.FilterCascadeLevel` — `FilterCascadeLevelProps` in the declaration bundle.
|
|
39
|
+
- `WallarmDS.FilterCascadeLevels` — `FilterCascadeLevelsProps` in the declaration bundle.
|
|
40
|
+
- `WallarmDS.FilterCascadeParentItem` — `FilterCascadeParentItemProps` in the declaration bundle.
|
|
41
|
+
- `WallarmDS.FilterCascadeSearch` — `FilterCascadeSearchProps` in the declaration bundle.
|
|
42
|
+
- `WallarmDS.FilterCascadeCheckboxItem` — `FilterCascadeCheckboxItemProps` in the declaration bundle.
|
|
43
|
+
- `WallarmDS.FilterCascadeSection` — `FilterCascadeSectionProps` in the declaration bundle.
|
|
44
|
+
- `WallarmDS.FilterCascadeTrigger` — `FilterCascadeTriggerProps` in the declaration bundle.
|
|
45
|
+
- `WallarmDS.FilterCascadeItemDescription` — `FilterCascadeItemDescriptionProps` in the declaration bundle.
|
|
46
|
+
- `WallarmDS.FilterCascadeItemIcon` — `FilterCascadeItemIconProps` in the declaration bundle.
|
|
47
|
+
- `WallarmDS.FilterCascadeItemText` — `FilterCascadeItemTextProps` in the declaration bundle.
|
|
48
|
+
|
|
49
|
+
## Stories
|
|
50
|
+
|
|
51
|
+
### Default
|
|
52
|
+
|
|
53
|
+
The minimal form: plain items, every level rendered by `FilterCascadeContent`.
|
|
54
|
+
|
|
55
|
+
Source: FilterCascade/FilterCascade.stories.tsx#Default
|
|
56
|
+
|
|
57
|
+
### ScopeFilter
|
|
58
|
+
|
|
59
|
+
The Scope filter of Flow management: lazy applications, «Deployment level», search, toggle.
|
|
60
|
+
|
|
61
|
+
Source: FilterCascade/FilterCascade.stories.tsx#ScopeFilter
|
|
62
|
+
|
|
63
|
+
### Picked
|
|
64
|
+
|
|
65
|
+
A picked application: the trigger reads the path; only the deployment segment truncates.
|
|
66
|
+
|
|
67
|
+
Source: FilterCascade/FilterCascade.stories.tsx#Picked
|
|
68
|
+
|
|
69
|
+
### ParentPicked
|
|
70
|
+
|
|
71
|
+
The deployment itself, picked through «Deployment level».
|
|
72
|
+
|
|
73
|
+
Source: FilterCascade/FilterCascade.stories.tsx#ParentPicked
|
|
74
|
+
|
|
75
|
+
### LoadError
|
|
76
|
+
|
|
77
|
+
A level that fails to load offers a retry.
|
|
78
|
+
|
|
79
|
+
Source: FilterCascade/FilterCascade.stories.tsx#LoadError
|
|
80
|
+
|
|
81
|
+
### Disabled
|
|
82
|
+
|
|
83
|
+
Source: FilterCascade/FilterCascade.stories.tsx#Disabled
|
|
84
|
+
|
|
85
|
+
## Story sources
|
|
86
|
+
|
|
87
|
+
### FilterCascade/FilterCascade.stories.tsx
|
|
88
|
+
|
|
89
|
+
```tsx
|
|
90
|
+
import { useState } from 'react';
|
|
91
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
92
|
+
import { FilterCascade } from './FilterCascade';
|
|
93
|
+
import { FilterCascadeClear } from './FilterCascadeClear';
|
|
94
|
+
import { FilterCascadeContent } from './FilterCascadeContent';
|
|
95
|
+
import {
|
|
96
|
+
FilterCascadeGroupLabel,
|
|
97
|
+
FilterCascadeItems,
|
|
98
|
+
FilterCascadeLevels,
|
|
99
|
+
FilterCascadeParentItem,
|
|
100
|
+
} from './FilterCascadeLevel';
|
|
101
|
+
import { FilterCascadeSearch } from './FilterCascadeSearch';
|
|
102
|
+
import { FilterCascadeCheckboxItem, FilterCascadeSection } from './FilterCascadeSection';
|
|
103
|
+
import { FilterCascadeTrigger } from './FilterCascadeTrigger';
|
|
104
|
+
import { createFilterCascadeCollection } from './lib';
|
|
105
|
+
|
|
106
|
+
const DESCRIPTION = [
|
|
107
|
+
'A filter over a hierarchy — organization › deployment › application, region › zone. The same 36px pill as `FilterDropdown`; each level opens as its own panel beside the option that opened it, and an item at any depth can be picked. The trigger reads the path: «Scope ● a › ● b», the tooltip carries it whole.',
|
|
108
|
+
'Items are the consumer’s own objects, read through accessors; a level can load when it is first opened (`loadChildren`), and `parentLabel` adds the option that picks the level’s parent — «Deployment level». The search finds items at every depth.',
|
|
109
|
+
'Compose the panels with `FilterCascadeLevels` to add group labels and options set apart; with no children, `FilterCascadeContent` renders the levels by itself. Reach for `FilterDropdown` when the values are flat.',
|
|
110
|
+
].join(' ');
|
|
111
|
+
|
|
112
|
+
type Kind = 'organization' | 'deployment' | 'application';
|
|
113
|
+
|
|
114
|
+
interface Scope {
|
|
115
|
+
kind: Kind;
|
|
116
|
+
uid: string;
|
|
117
|
+
name: string;
|
|
118
|
+
policies?: number;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** The Flow management Scope marker: 6px dots, violet · sky · teal by level. */
|
|
122
|
+
const DOT: Record<Kind, string> = {
|
|
123
|
+
organization: 'bg-badge-violet-strong',
|
|
124
|
+
deployment: 'bg-badge-sky-strong',
|
|
125
|
+
application: 'bg-badge-teal-strong',
|
|
126
|
+
};
|
|
127
|
+
const Dot = ({ kind }: { kind: Kind }) => (
|
|
128
|
+
<span aria-hidden className={`inline-block size-6 shrink-0 rounded-full ${DOT[kind]}`} />
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const policies = (count?: number) =>
|
|
132
|
+
count === undefined
|
|
133
|
+
? undefined
|
|
134
|
+
: count === 0
|
|
135
|
+
? 'No policies'
|
|
136
|
+
: `${count} ${count === 1 ? 'policy' : 'policies'}`;
|
|
137
|
+
|
|
138
|
+
const organizationOnly: Scope = { kind: 'organization', uid: 'org', name: 'Organization only' };
|
|
139
|
+
|
|
140
|
+
const deploymentNames = [
|
|
141
|
+
'Production US',
|
|
142
|
+
'Production EU',
|
|
143
|
+
'Staging US',
|
|
144
|
+
'Staging EU',
|
|
145
|
+
'Sandbox',
|
|
146
|
+
'QA',
|
|
147
|
+
'Load test',
|
|
148
|
+
'Canary',
|
|
149
|
+
];
|
|
150
|
+
const deployments: Scope[] = deploymentNames.map((name, index) => ({
|
|
151
|
+
kind: 'deployment',
|
|
152
|
+
uid: name.toLowerCase().replace(/ /g, '-'),
|
|
153
|
+
name,
|
|
154
|
+
policies: index % 3 === 0 ? index + 2 : 0,
|
|
155
|
+
}));
|
|
156
|
+
|
|
157
|
+
const applicationsOf = (deployment: Scope): Scope[] =>
|
|
158
|
+
['api', 'checkout', 'mobile-gateway'].map((name, index) => ({
|
|
159
|
+
kind: 'application',
|
|
160
|
+
uid: `${deployment.uid}-${name}`,
|
|
161
|
+
name,
|
|
162
|
+
policies: index === 0 ? 2 : 0,
|
|
163
|
+
}));
|
|
164
|
+
|
|
165
|
+
/** The applications arrive a moment after a deployment is first opened. */
|
|
166
|
+
const loadApplications = (deployment: Scope) =>
|
|
167
|
+
new Promise<Scope[]>(resolve => setTimeout(() => resolve(applicationsOf(deployment)), 400));
|
|
168
|
+
|
|
169
|
+
const scopeAccessors = {
|
|
170
|
+
getValue: (scope: Scope) => scope.uid,
|
|
171
|
+
getLabel: (scope: Scope) => scope.name,
|
|
172
|
+
hasChildren: (scope: Scope) => scope.kind === 'deployment',
|
|
173
|
+
getIcon: (scope: Scope) => <Dot kind={scope.kind} />,
|
|
174
|
+
getDescription: (scope: Scope) => policies(scope.policies),
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const scopes = createFilterCascadeCollection<Scope>(
|
|
178
|
+
[organizationOnly, ...deployments],
|
|
179
|
+
scopeAccessors,
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
/** Plain `{ value, label, children }` items need no accessors. */
|
|
183
|
+
const regions = createFilterCascadeCollection([
|
|
184
|
+
{
|
|
185
|
+
value: 'eu',
|
|
186
|
+
label: 'Europe',
|
|
187
|
+
children: [
|
|
188
|
+
{ value: 'fra', label: 'Frankfurt' },
|
|
189
|
+
{ value: 'ams', label: 'Amsterdam' },
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
value: 'us',
|
|
194
|
+
label: 'United States',
|
|
195
|
+
children: [
|
|
196
|
+
{ value: 'iad', label: 'North Virginia' },
|
|
197
|
+
{ value: 'sfo', label: 'San Francisco' },
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
{ value: 'sg', label: 'Singapore' },
|
|
201
|
+
]);
|
|
202
|
+
type Region = (typeof regions.items)[number];
|
|
203
|
+
|
|
204
|
+
const meta = {
|
|
205
|
+
title: 'Inputs/FilterCascade',
|
|
206
|
+
component: FilterCascade,
|
|
207
|
+
parameters: {
|
|
208
|
+
layout: 'padded',
|
|
209
|
+
docs: { description: { component: DESCRIPTION } },
|
|
210
|
+
},
|
|
211
|
+
args: { label: 'Region', collection: regions },
|
|
212
|
+
} satisfies Meta<typeof FilterCascade<Region>>;
|
|
213
|
+
|
|
214
|
+
export default meta;
|
|
215
|
+
|
|
216
|
+
/** The minimal form: plain items, every level rendered by `FilterCascadeContent`. */
|
|
217
|
+
export const Default: StoryFn<typeof FilterCascade> = () => (
|
|
218
|
+
<FilterCascade label='Region' collection={regions} data-testid='filter-cascade'>
|
|
219
|
+
<FilterCascadeTrigger />
|
|
220
|
+
<FilterCascadeContent />
|
|
221
|
+
</FilterCascade>
|
|
222
|
+
);
|
|
223
|
+
|
|
224
|
+
/** The Flow management Scope menu, as in Figma. */
|
|
225
|
+
const ScopeMenu = ({ withToggle = true }: { withToggle?: boolean }) => {
|
|
226
|
+
const [showOrganization, setShowOrganization] = useState(true);
|
|
227
|
+
return (
|
|
228
|
+
<FilterCascadeContent>
|
|
229
|
+
<FilterCascadeSearch placeholder='Search' />
|
|
230
|
+
<FilterCascadeLevels>
|
|
231
|
+
{level =>
|
|
232
|
+
level.depth === 0 ? (
|
|
233
|
+
<>
|
|
234
|
+
<FilterCascadeItems filter={item => item.node.value === organizationOnly.uid} />
|
|
235
|
+
<FilterCascadeGroupLabel>Deployments</FilterCascadeGroupLabel>
|
|
236
|
+
<FilterCascadeItems filter={item => item.node.value !== organizationOnly.uid} />
|
|
237
|
+
</>
|
|
238
|
+
) : (
|
|
239
|
+
<>
|
|
240
|
+
<FilterCascadeParentItem />
|
|
241
|
+
<FilterCascadeGroupLabel>Applications</FilterCascadeGroupLabel>
|
|
242
|
+
<FilterCascadeItems />
|
|
243
|
+
</>
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
</FilterCascadeLevels>
|
|
247
|
+
{withToggle && (
|
|
248
|
+
<FilterCascadeSection>
|
|
249
|
+
<FilterCascadeCheckboxItem
|
|
250
|
+
icon={<Dot kind='organization' />}
|
|
251
|
+
checked={showOrganization}
|
|
252
|
+
onCheckedChange={setShowOrganization}
|
|
253
|
+
>
|
|
254
|
+
Show organization policies
|
|
255
|
+
</FilterCascadeCheckboxItem>
|
|
256
|
+
</FilterCascadeSection>
|
|
257
|
+
)}
|
|
258
|
+
</FilterCascadeContent>
|
|
259
|
+
);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
/** The Scope filter of Flow management: lazy applications, «Deployment level», search, toggle. */
|
|
263
|
+
export const ScopeFilter: StoryFn<typeof FilterCascade> = () => {
|
|
264
|
+
const [value, setValue] = useState<string[]>([]);
|
|
265
|
+
return (
|
|
266
|
+
<div className='flex flex-col gap-12'>
|
|
267
|
+
<FilterCascade
|
|
268
|
+
label='Scope'
|
|
269
|
+
collection={scopes}
|
|
270
|
+
loadChildren={loadApplications}
|
|
271
|
+
parentLabel='Deployment level'
|
|
272
|
+
value={value}
|
|
273
|
+
onValueChange={details => setValue(details.value)}
|
|
274
|
+
data-testid='filter-cascade-scope'
|
|
275
|
+
>
|
|
276
|
+
<FilterCascadeTrigger>
|
|
277
|
+
<FilterCascadeClear data-analytics-id='SCOPE_CLEAR' />
|
|
278
|
+
</FilterCascadeTrigger>
|
|
279
|
+
<ScopeMenu />
|
|
280
|
+
</FilterCascade>
|
|
281
|
+
<code className='text-xs text-text-secondary'>value: {JSON.stringify(value)}</code>
|
|
282
|
+
</div>
|
|
283
|
+
);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
const longCollection = createFilterCascadeCollection<Scope>(
|
|
287
|
+
[{ kind: 'deployment', uid: 'eu1', name: 'production-eu-central-1-cluster' }],
|
|
288
|
+
scopeAccessors,
|
|
289
|
+
);
|
|
290
|
+
|
|
291
|
+
/** A picked application: the trigger reads the path; only the deployment segment truncates. */
|
|
292
|
+
export const Picked: StoryFn<typeof FilterCascade> = () => (
|
|
293
|
+
<FilterCascade
|
|
294
|
+
label='Scope'
|
|
295
|
+
collection={longCollection}
|
|
296
|
+
loadChildren={async (): Promise<Scope[]> => [
|
|
297
|
+
{ kind: 'application', uid: 'checkout', name: 'checkout-api' },
|
|
298
|
+
]}
|
|
299
|
+
defaultValue={['eu1', 'checkout']}
|
|
300
|
+
data-testid='filter-cascade-picked'
|
|
301
|
+
>
|
|
302
|
+
<FilterCascadeTrigger />
|
|
303
|
+
<FilterCascadeContent />
|
|
304
|
+
</FilterCascade>
|
|
305
|
+
);
|
|
306
|
+
|
|
307
|
+
/** The deployment itself, picked through «Deployment level». */
|
|
308
|
+
export const ParentPicked: StoryFn<typeof FilterCascade> = () => (
|
|
309
|
+
<FilterCascade
|
|
310
|
+
label='Scope'
|
|
311
|
+
collection={scopes}
|
|
312
|
+
loadChildren={loadApplications}
|
|
313
|
+
parentLabel='Deployment level'
|
|
314
|
+
defaultValue={['staging-us']}
|
|
315
|
+
data-testid='filter-cascade-parent'
|
|
316
|
+
>
|
|
317
|
+
<FilterCascadeTrigger />
|
|
318
|
+
<ScopeMenu withToggle={false} />
|
|
319
|
+
</FilterCascade>
|
|
320
|
+
);
|
|
321
|
+
|
|
322
|
+
/** A level that fails to load offers a retry. */
|
|
323
|
+
export const LoadError: StoryFn<typeof FilterCascade> = () => (
|
|
324
|
+
<FilterCascade
|
|
325
|
+
label='Scope'
|
|
326
|
+
collection={scopes}
|
|
327
|
+
loadChildren={() => Promise.reject(new Error('Unavailable'))}
|
|
328
|
+
parentLabel='Deployment level'
|
|
329
|
+
data-testid='filter-cascade-error'
|
|
330
|
+
>
|
|
331
|
+
<FilterCascadeTrigger />
|
|
332
|
+
<ScopeMenu withToggle={false} />
|
|
333
|
+
</FilterCascade>
|
|
334
|
+
);
|
|
335
|
+
|
|
336
|
+
export const Disabled: StoryFn<typeof FilterCascade> = () => (
|
|
337
|
+
<FilterCascade
|
|
338
|
+
label='Region'
|
|
339
|
+
collection={regions}
|
|
340
|
+
defaultValue={['eu', 'fra']}
|
|
341
|
+
disabled
|
|
342
|
+
data-testid='filter-cascade-disabled'
|
|
343
|
+
>
|
|
344
|
+
<FilterCascadeTrigger />
|
|
345
|
+
<FilterCascadeContent />
|
|
346
|
+
</FilterCascade>
|
|
347
|
+
);
|
|
348
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,a){let r,n;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var l,o,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,f=(e,t,a,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))p.call(e,n)||n===a||c(e,n,{get:()=>t[n],enumerable:!(r=s(t,n))||r.enumerable});return e},m={},h={$dispatcherGuard:()=>N,$makeReadOnly:()=>O,$reset:()=>D,$structuralCheck:()=>P,c:()=>C,clearRenderCounterRegistry:()=>x,renderCounterRegistry:()=>M,useRenderCounter:()=>T};for(var y in h)c(m,y,{get:h[y],enumerable:!0});e.exports=f(c({},"__esModule",{value:!0}),m);var g=(n=null!=(r=a("C"))?i(d(r)):{},f(r&&r.__esModule?n:c(n,"default",{value:r,enumerable:!0}),r)),{useRef:b,useEffect:w,isValidElement:S}=g,v=null!=(l=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?l:g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.memo_cache_sentinel"),C="function"==typeof(null==(o=g.__COMPILER_RUNTIME)?void 0:o.c)?g.__COMPILER_RUNTIME.c:function(e){return g.useMemo(()=>{let t=Array(e);for(let a=0;a<e;a++)t[a]=_;return t[_]=!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 R=null;function $(e){return v.ReactCurrentDispatcher.current=e,v.ReactCurrentDispatcher.current}E.useMemoCache=e=>{if(null!=R)return R.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var k=[];function N(e){let t=v.ReactCurrentDispatcher.current;if(0===e){if(k.push(t),1===k.length&&(R=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=k.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===k.length&&(R=null),$(e)}else if(2===e)k.push(t),$(R);else if(3===e){let e=k.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 D(e){for(let t=0;t<e.length;t++)e[t]=_}function O(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var M=new Map;function x(){for(let e of M.values())e.forEach(e=>{e.count=0})}function T(e){let t=b(null);null!=t.current&&(t.current.count+=1),w(()=>{if(null==t.current){let a,r={count:0};null==(a=M.get(e))&&(a=new Set,M.set(e,a)),a.add(r),t.current=r}return()=>{var a;let r;null!==t.current&&(a=t.current,null!=(r=M.get(e))&&r.delete(a))}})}var F=new Set;function P(e,t,a,r,n,l){function o(e,t,o,i){let c=`${r}:${l} [${n}] ${a}${o} changed from ${e} to ${t} at depth ${i}`;F.has(c)||(F.add(c),console.error(c))}!function e(t,a,r,n){if(!(n>2)){if(t!==a)if(typeof t!=typeof a)o(`type ${typeof t}`,`type ${typeof a}`,r,n);else if("object"==typeof t){let l=Array.isArray(t),i=Array.isArray(a);if(null===t&&null!==a)o("null",`type ${typeof a}`,r,n);else if(null===a)o(`type ${typeof t}`,"null",r,n);else if(t instanceof Map)if(a instanceof Map)if(t.size!==a.size)o(`Map instance with size ${t.size}`,`Map instance with size ${a.size}`,r,n);else for(let[l,i]of t)a.has(l)?e(i,a.get(l),`${r}.get(${l})`,n+1):o(`Map instance with key ${l}`,`Map instance without key ${l}`,r,n);else o("Map instance","other value",r,n);else if(a instanceof Map)o("other value","Map instance",r,n);else if(t instanceof Set)if(a instanceof Set)if(t.size!==a.size)o(`Set instance with size ${t.size}`,`Set instance with size ${a.size}`,r,n);else for(let e of a)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,r,n);else o("Set instance","other value",r,n);else if(a instanceof Set)o("other value","Set instance",r,n);else if(l||i)if(l!==i)o(`type ${l?"array":"object"}`,`type ${i?"array":"object"}`,r,n);else if(t.length!==a.length)o(`array with length ${t.length}`,`array with length ${a.length}`,r,n);else for(let l=0;l<t.length;l++)e(t[l],a[l],`${r}[${l}]`,n+1);else if(S(t)||S(a))S(t)!==S(a)?o(`type ${S(t)?"React element":"object"}`,`type ${S(a)?"React element":"object"}`,r,n):t.type!==a.type?o(`React element of type ${t.type}`,`React element of type ${a.type}`,r,n):e(t.props,a.props,`[props of ${r}]`,n+1);else{for(let e in a)e in t||o(`object without key ${e}`,`object with key ${e}`,r,n);for(let l in t)l in a?e(t[l],a[l],`${r}.${l}`,n+1):o(`object with key ${l}`,`object without key ${l}`,r,n)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(a)?isNaN(t)!==isNaN(a)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(a)?"NaN":"non-NaN value"}`,r,n):t!==a&&o(t,a,r,n)}}}(e,t,"",0)}},p(e,t,a){let r=new WeakMap,n=new WeakMap;function l(e,t,a){let l=t,o=a;if("object"==typeof l&&null!==l&&"$$typeof"in l&&l.$$typeof===Symbol.for("react.context")&&"Provider"in l&&(l=l.Provider),"function"==typeof l&&null!=o.ref&&!l.prototype?.isReactComponent){let t=l,a=r.get(e);a||(a=new WeakMap,r.set(e,a));let n=a.get(t);n||((n=e.forwardRef((e,a)=>t({...e,ref:a}))).displayName=t.displayName??t.name,a.set(t,n)),l=n}if("string"==typeof l&&"boolean"==typeof o.inert&&((o={...o}).inert?o.inert="":delete o.inert),"string"==typeof l)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 l&&null!=o.ref&&(l=function(e,t){let a=n.get(e);a||(a=new Map,n.set(e,a));let r=a.get(t);if(r)return r;let l=e.forwardRef((a,r)=>{let n=e.useRef(null);if(!n.current||n.current.original!==r){let e;n.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let a=r(t);e="function"==typeof a?a:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...a,ref:n.current.callback})});return l.displayName=`CanvasHost(${t})`,a.set(t,l),l}(e,l)),{type:l,props:o}}function o(e){let t=(t,a,r)=>{let n=l(e,t,a??{});return e.createElement(n.type,void 0===r?n.props:{...n.props,key:r})};return{jsx:t,jsxs:(t,a,r)=>{let n=l(e,t,a??{}),{children:o,...i}=n.props;return e.createElement(n.type,void 0===r?i:{...i,key:r},...Array.isArray(o)?o:[o])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,a,...r)=>{let n=l(e,t,a??{});return e.createElement(n.type,n.props,...r)},cloneElement:(t,a,...r)=>{let n=e.cloneElement(t,a??void 0,...r),o=n.ref,i=l(e,n.type,{...n.props,ref:o});return i.type===n.type&&"string"!=typeof n.type?n:e.createElement(i.type,{...i.props,key:n.key})}}}a.d(t,{MA:()=>o,YJ:()=>i})},C(e,t,a){a.r(t);let r=(0,a("p").YJ)(window.React),{Children:n,Component:l,Fragment:o,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:p,cloneElement:f,createContext:m,createElement:h,createFactory:y,createRef:g,forwardRef:b,isValidElement:w,lazy:S,memo:v,startTransition:_,unstable_act:C,useCallback:E,useContext:R,useDebugValue:$,useDeferredValue:k,useEffect:N,useId:D,useImperativeHandle:O,useInsertionEffect:M,useLayoutEffect:x,useMemo:T,useReducer:F,useRef:P,useState:j,useSyncExternalStore:I,useTransition:L,version:A,use:z}=r;a.d(t,{},{Children:n,Component:l,Fragment:o,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:p,cloneElement:f,createContext:m,createElement:h,createFactory:y,createRef:g,default:r,forwardRef:b,isValidElement:w,lazy:S,memo:v,startTransition:_,unstable_act:C,use:z,useCallback:E,useContext:R,useDebugValue:$,useDeferredValue:k,useEffect:N,useId:D,useImperativeHandle:O,useInsertionEffect:M,useLayoutEffect:x,useMemo:T,useReducer:F,useRef:P,useState:j,useSyncExternalStore:I,useTransition:L,version:A})}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,a),l.exports}a.d=(e,t,r)=>{var n=(t,r)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[r]:t[n]})};n(t,"get"),n(r,"value")},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:r,Fragment:n}=(0,a("p").MA)(window.React);var l=a("vD"),o=a("C");let i=window.WallarmDS.FilterCascade,c=window.WallarmDS.FilterCascadeClear,s=window.WallarmDS.FilterCascadeContent,u=window.WallarmDS.FilterCascadeGroupLabel,d=window.WallarmDS.FilterCascadeItems,p=window.WallarmDS.FilterCascadeLevels,f=window.WallarmDS.FilterCascadeParentItem,m=window.WallarmDS.FilterCascadeSearch,h=window.WallarmDS.FilterCascadeCheckboxItem,y=window.WallarmDS.FilterCascadeSection,g=window.WallarmDS.FilterCascadeTrigger,b=window.WallarmDS.createFilterCascadeCollection,w={organization:"bg-badge-violet-strong",deployment:"bg-badge-sky-strong",application:"bg-badge-teal-strong"},S=t=>{let a,r=(0,l.c)(2),{kind:n}=t,o=`inline-block size-6 shrink-0 rounded-full ${w[n]}`;return r[0]!==o?(a=e("span",{"aria-hidden":!0,className:o}),r[0]=o,r[1]=a):a=r[1],a},v={kind:"organization",uid:"org",name:"Organization only"},_=["Production US","Production EU","Staging US","Staging EU","Sandbox","QA","Load test","Canary"].map((e,t)=>({kind:"deployment",uid:e.toLowerCase().replace(/ /g,"-"),name:e,policies:t%3==0?t+2:0})),C=e=>new Promise(t=>setTimeout(()=>t(["api","checkout","mobile-gateway"].map((t,a)=>({kind:"application",uid:`${e.uid}-${t}`,name:t,policies:2*(0===a)}))),400)),E={getValue:e=>e.uid,getLabel:e=>e.name,hasChildren:e=>"deployment"===e.kind,getIcon:t=>e(S,{kind:t.kind}),getDescription:e=>{let t;return void 0===(t=e.policies)?void 0:0===t?"No policies":`${t} ${1===t?"policy":"policies"}`}},R=b([v,..._],E),$=b([{value:"eu",label:"Europe",children:[{value:"fra",label:"Frankfurt"},{value:"ams",label:"Amsterdam"}]},{value:"us",label:"United States",children:[{value:"iad",label:"North Virginia"},{value:"sfo",label:"San Francisco"}]},{value:"sg",label:"Singapore"}]),k={title:"Inputs/FilterCascade",component:i,parameters:{layout:"padded",docs:{description:{component:"A filter over a hierarchy — organization › deployment › application, region › zone. The same 36px pill as `FilterDropdown`; each level opens as its own panel beside the option that opened it, and an item at any depth can be picked. The trigger reads the path: «Scope ● a › ● b», the tooltip carries it whole. Items are the consumer’s own objects, read through accessors; a level can load when it is first opened (`loadChildren`), and `parentLabel` adds the option that picks the level’s parent — «Deployment level». The search finds items at every depth. Compose the panels with `FilterCascadeLevels` to add group labels and options set apart; with no children, `FilterCascadeContent` renders the levels by itself. Reach for `FilterDropdown` when the values are flat."}}},args:{label:"Region",collection:$}},N=a=>{let r,n,i,c,u=(0,l.c)(7),{withToggle:d}=a,f=void 0===d||d,[g,b]=(0,o.useState)(!0);return u[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(m,{placeholder:"Search"}),n=e(p,{children:x}),u[0]=r,u[1]=n):(r=u[0],n=u[1]),u[2]!==g||u[3]!==f?(i=f&&e(y,{children:e(h,{icon:e(S,{kind:"organization"}),checked:g,onCheckedChange:b,children:"Show organization policies"})}),u[2]=g,u[3]=f,u[4]=i):i=u[4],u[5]!==i?(c=t(s,{children:[r,n,i]}),u[5]=i,u[6]=c):c=u[6],c},D=b([{kind:"deployment",uid:"eu1",name:"production-eu-central-1-cluster"}],E);function O(e){return e.node.value===v.uid}function M(e){return e.node.value!==v.uid}function x(a){return 0===a.depth?t(n,{children:[e(d,{filter:O}),e(u,{children:"Deployments"}),e(d,{filter:M})]}):t(n,{children:[e(f,{}),e(u,{children:"Applications"}),e(d,{})]})}async function T(){return[{kind:"application",uid:"checkout",name:"checkout-api"}]}function F(){return Promise.reject(Error("Unavailable"))}let P=[{name:"Default",story:()=>{let a,r=(0,l.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(a=t(i,{label:"Region",collection:$,"data-testid":"filter-cascade",children:[e(g,{}),e(s,{})]}),r[0]=a):a=r[0],a},meta:k},{name:"ScopeFilter",story:()=>{let a,r,n,s,u,d,p,f,m=(0,l.c)(13);m[0]===Symbol.for("react.memo_cache_sentinel")?(a=[],m[0]=a):a=m[0];let[h,y]=(0,o.useState)(a);return m[1]===Symbol.for("react.memo_cache_sentinel")?(r=e=>y(e.value),m[1]=r):r=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(n=e(g,{children:e(c,{"data-analytics-id":"SCOPE_CLEAR"})}),s=e(N,{}),m[2]=n,m[3]=s):(n=m[2],s=m[3]),m[4]!==h?(u=t(i,{label:"Scope",collection:R,loadChildren:C,parentLabel:"Deployment level",value:h,onValueChange:r,"data-testid":"filter-cascade-scope",children:[n,s]}),m[4]=h,m[5]=u):u=m[5],m[6]!==h?(d=JSON.stringify(h),m[6]=h,m[7]=d):d=m[7],m[8]!==d?(p=t("code",{className:"text-xs text-text-secondary",children:["value: ",d]}),m[8]=d,m[9]=p):p=m[9],m[10]!==u||m[11]!==p?(f=t("div",{className:"flex flex-col gap-12",children:[u,p]}),m[10]=u,m[11]=p,m[12]=f):f=m[12],f},meta:k},{name:"Picked",story:()=>{let a,r,n=(0,l.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=["eu1","checkout"],n[0]=a):a=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(i,{label:"Scope",collection:D,loadChildren:T,defaultValue:a,"data-testid":"filter-cascade-picked",children:[e(g,{}),e(s,{})]}),n[1]=r):r=n[1],r},meta:k},{name:"ParentPicked",story:()=>{let a,r,n=(0,l.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=["staging-us"],n[0]=a):a=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(i,{label:"Scope",collection:R,loadChildren:C,parentLabel:"Deployment level",defaultValue:a,"data-testid":"filter-cascade-parent",children:[e(g,{}),e(N,{withToggle:!1})]}),n[1]=r):r=n[1],r},meta:k},{name:"LoadError",story:()=>{let a,r=(0,l.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(a=t(i,{label:"Scope",collection:R,loadChildren:F,parentLabel:"Deployment level","data-testid":"filter-cascade-error",children:[e(g,{}),e(N,{withToggle:!1})]}),r[0]=a):a=r[0],a},meta:k},{name:"Disabled",story:()=>{let a,r,n=(0,l.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(a=["eu","fra"],n[0]=a):a=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(i,{label:"Region",collection:$,defaultValue:a,disabled:!0,"data-testid":"filter-cascade-disabled",children:[e(g,{}),e(s,{})]}),n[1]=r):r=n[1],r},meta:k}];function j({entry:e}){let{story:t,meta:a}=e,r={...a.args,...t.args},n="function"==typeof t||t.$$typeof?t:t.render||a.render||a.component,l=()=>o.default.createElement(n,r),i={args:r,globals:{theme:"light"},parameters:{...a.parameters,...t.parameters},viewMode:"story"};for(let e of[...a.decorators||[],...t.decorators||[]].reverse()){let t=l;l=()=>e(t,i)}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(l))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(o.default.createElement(window.WallarmDS.Root,null,P.map((e,t)=>o.default.createElement(j,{key:t,entry:e})))),t}}})();
|