@wallarm-org/claude-design 0.0.0-stage → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -2
- package/bin/claude-design.js +347 -0
- package/dist/SETUP.md +130 -0
- package/dist/UPDATE.md +84 -0
- package/dist/assets/Icons/activity.svg +1 -0
- package/dist/assets/Icons/alt.svg +1 -0
- package/dist/assets/Icons/android-neutral.svg +1 -0
- package/dist/assets/Icons/android.svg +1 -0
- package/dist/assets/Icons/api.svg +1 -0
- package/dist/assets/Icons/apple-music-neutral.svg +1 -0
- package/dist/assets/Icons/apple-music.svg +1 -0
- package/dist/assets/Icons/apple-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts-neutral.svg +1 -0
- package/dist/assets/Icons/apple-podcasts.svg +1 -0
- package/dist/assets/Icons/apple.svg +1 -0
- package/dist/assets/Icons/archive.svg +1 -0
- package/dist/assets/Icons/arrow-big-up-dash.svg +1 -0
- package/dist/assets/Icons/arrow-big-up.svg +1 -0
- package/dist/assets/Icons/arrow-down-left.svg +1 -0
- package/dist/assets/Icons/arrow-down-right.svg +1 -0
- package/dist/assets/Icons/arrow-down.svg +1 -0
- package/dist/assets/Icons/arrow-left.svg +1 -0
- package/dist/assets/Icons/arrow-right-alt.svg +1 -0
- package/dist/assets/Icons/arrow-right.svg +1 -0
- package/dist/assets/Icons/arrow-up-down.svg +1 -0
- package/dist/assets/Icons/arrow-up-left.svg +1 -0
- package/dist/assets/Icons/arrow-up-right.svg +1 -0
- package/dist/assets/Icons/arrow-up.svg +1 -0
- package/dist/assets/Icons/artstation-neutral.svg +1 -0
- package/dist/assets/Icons/artstation.svg +1 -0
- package/dist/assets/Icons/asterisk.svg +1 -0
- package/dist/assets/Icons/audio-waveform.svg +1 -0
- package/dist/assets/Icons/aws-neutral.svg +1 -0
- package/dist/assets/Icons/aws.svg +1 -0
- package/dist/assets/Icons/badge-check.svg +1 -0
- package/dist/assets/Icons/baidu-neutral.svg +1 -0
- package/dist/assets/Icons/baidu.svg +1 -0
- package/dist/assets/Icons/bandage.svg +1 -0
- package/dist/assets/Icons/behance-neutral.svg +1 -0
- package/dist/assets/Icons/behance.svg +1 -0
- package/dist/assets/Icons/bell-cog.svg +1 -0
- package/dist/assets/Icons/bell.svg +1 -0
- package/dist/assets/Icons/binary.svg +1 -0
- package/dist/assets/Icons/book-open.svg +1 -0
- package/dist/assets/Icons/book.svg +1 -0
- package/dist/assets/Icons/boosty-neutral.svg +1 -0
- package/dist/assets/Icons/boosty.svg +1 -0
- package/dist/assets/Icons/bot.svg +1 -0
- package/dist/assets/Icons/brain.svg +1 -0
- package/dist/assets/Icons/braze-neutral.svg +1 -0
- package/dist/assets/Icons/braze.svg +1 -0
- package/dist/assets/Icons/brevo-neutral.svg +1 -0
- package/dist/assets/Icons/brevo.svg +1 -0
- package/dist/assets/Icons/bug-off.svg +1 -0
- package/dist/assets/Icons/bug-play.svg +1 -0
- package/dist/assets/Icons/bug.svg +1 -0
- package/dist/assets/Icons/building.svg +1 -0
- package/dist/assets/Icons/building2.svg +1 -0
- package/dist/assets/Icons/calendar-check.svg +1 -0
- package/dist/assets/Icons/calendar-check2.svg +1 -0
- package/dist/assets/Icons/calendar-clock.svg +1 -0
- package/dist/assets/Icons/calendar-cog.svg +1 -0
- package/dist/assets/Icons/calendar-days.svg +1 -0
- package/dist/assets/Icons/calendar-fold.svg +1 -0
- package/dist/assets/Icons/calendar-heart.svg +1 -0
- package/dist/assets/Icons/calendar-minus.svg +1 -0
- package/dist/assets/Icons/calendar-minus2.svg +1 -0
- package/dist/assets/Icons/calendar-off.svg +1 -0
- package/dist/assets/Icons/calendar-plus.svg +1 -0
- package/dist/assets/Icons/calendar-plus2.svg +1 -0
- package/dist/assets/Icons/calendar-range.svg +1 -0
- package/dist/assets/Icons/calendar-search.svg +1 -0
- package/dist/assets/Icons/calendar-x.svg +1 -0
- package/dist/assets/Icons/calendar-x2.svg +1 -0
- package/dist/assets/Icons/calendar.svg +1 -0
- package/dist/assets/Icons/chart-area.svg +1 -0
- package/dist/assets/Icons/chart-bar.svg +1 -0
- package/dist/assets/Icons/chart-column.svg +1 -0
- package/dist/assets/Icons/chart-no-axes-column.svg +1 -0
- package/dist/assets/Icons/check-check.svg +1 -0
- package/dist/assets/Icons/check.svg +1 -0
- package/dist/assets/Icons/checkbox-indeterminate.svg +1 -0
- package/dist/assets/Icons/chevron-down.svg +1 -0
- package/dist/assets/Icons/chevron-first.svg +1 -0
- package/dist/assets/Icons/chevron-last.svg +1 -0
- package/dist/assets/Icons/chevron-left.svg +1 -0
- package/dist/assets/Icons/chevron-right.svg +1 -0
- package/dist/assets/Icons/chevron-up-down.svg +1 -0
- package/dist/assets/Icons/chevron-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down-up.svg +1 -0
- package/dist/assets/Icons/chevrons-down.svg +1 -0
- package/dist/assets/Icons/chevrons-left-right.svg +1 -0
- package/dist/assets/Icons/chevrons-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right-left.svg +1 -0
- package/dist/assets/Icons/chevrons-right.svg +1 -0
- package/dist/assets/Icons/chevrons-up-down.svg +1 -0
- package/dist/assets/Icons/chevrons-up.svg +1 -0
- package/dist/assets/Icons/circle-arrow-down.svg +1 -0
- package/dist/assets/Icons/circle-arrow-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-down-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-left.svg +1 -0
- package/dist/assets/Icons/circle-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-right.svg +1 -0
- package/dist/assets/Icons/circle-arrow-up.svg +1 -0
- package/dist/assets/Icons/circle-check-big.svg +1 -0
- package/dist/assets/Icons/circle-check.svg +1 -0
- package/dist/assets/Icons/circle-chevron-down.svg +1 -0
- package/dist/assets/Icons/circle-chevron-left.svg +1 -0
- package/dist/assets/Icons/circle-chevron-right.svg +1 -0
- package/dist/assets/Icons/circle-chevron-up.svg +1 -0
- package/dist/assets/Icons/circle-dashed.svg +1 -0
- package/dist/assets/Icons/circle-dot-dashed.svg +1 -0
- package/dist/assets/Icons/circle-ellipsis.svg +1 -0
- package/dist/assets/Icons/circle-gauge.svg +1 -0
- package/dist/assets/Icons/circle-help.svg +1 -0
- package/dist/assets/Icons/circle-minus.svg +1 -0
- package/dist/assets/Icons/circle-plus.svg +1 -0
- package/dist/assets/Icons/circle-slash.svg +1 -0
- package/dist/assets/Icons/circle-slash2.svg +1 -0
- package/dist/assets/Icons/circle-stop.svg +1 -0
- package/dist/assets/Icons/circle.svg +1 -0
- package/dist/assets/Icons/clipboard-check.svg +1 -0
- package/dist/assets/Icons/clipboard-x.svg +1 -0
- package/dist/assets/Icons/clipboard.svg +1 -0
- package/dist/assets/Icons/clock-fading.svg +1 -0
- package/dist/assets/Icons/clock.svg +1 -0
- package/dist/assets/Icons/cloud-off.svg +1 -0
- package/dist/assets/Icons/cloud-sync.svg +1 -0
- package/dist/assets/Icons/cloud.svg +1 -0
- package/dist/assets/Icons/code.svg +1 -0
- package/dist/assets/Icons/collapse.svg +1 -0
- package/dist/assets/Icons/columns3-cog.svg +1 -0
- package/dist/assets/Icons/command.svg +1 -0
- package/dist/assets/Icons/compass.svg +1 -0
- package/dist/assets/Icons/copy-slash.svg +1 -0
- package/dist/assets/Icons/copy.svg +1 -0
- package/dist/assets/Icons/corner-down-left.svg +1 -0
- package/dist/assets/Icons/corner-down-right.svg +1 -0
- package/dist/assets/Icons/corner-left-down.svg +1 -0
- package/dist/assets/Icons/corner-left-up.svg +1 -0
- package/dist/assets/Icons/corner-right-down.svg +1 -0
- package/dist/assets/Icons/corner-right-up.svg +1 -0
- package/dist/assets/Icons/corner-up-left.svg +1 -0
- package/dist/assets/Icons/corner-up-right.svg +1 -0
- package/dist/assets/Icons/cpu.svg +1 -0
- package/dist/assets/Icons/credit-card.svg +1 -0
- package/dist/assets/Icons/crosshair.svg +1 -0
- package/dist/assets/Icons/ctrl.svg +1 -0
- package/dist/assets/Icons/database.svg +1 -0
- package/dist/assets/Icons/devianart-neutral.svg +1 -0
- package/dist/assets/Icons/devianart.svg +1 -0
- package/dist/assets/Icons/discord-neutral.svg +1 -0
- package/dist/assets/Icons/discord.svg +1 -0
- package/dist/assets/Icons/dollar-sign.svg +1 -0
- package/dist/assets/Icons/dot.svg +1 -0
- package/dist/assets/Icons/download.svg +1 -0
- package/dist/assets/Icons/dprofile-neutral.svg +1 -0
- package/dist/assets/Icons/dprofile.svg +1 -0
- package/dist/assets/Icons/dribbble-neutral.svg +1 -0
- package/dist/assets/Icons/dribbble.svg +1 -0
- package/dist/assets/Icons/droplet.svg +1 -0
- package/dist/assets/Icons/duplicate.svg +1 -0
- package/dist/assets/Icons/dzen-neutral.svg +1 -0
- package/dist/assets/Icons/dzen.svg +1 -0
- package/dist/assets/Icons/earth-lock.svg +1 -0
- package/dist/assets/Icons/earth.svg +1 -0
- package/dist/assets/Icons/ellipsis.svg +1 -0
- package/dist/assets/Icons/expand.svg +1 -0
- package/dist/assets/Icons/external-link.svg +1 -0
- package/dist/assets/Icons/eye-off.svg +1 -0
- package/dist/assets/Icons/eye.svg +1 -0
- package/dist/assets/Icons/facebook-neutral.svg +1 -0
- package/dist/assets/Icons/facebook.svg +1 -0
- package/dist/assets/Icons/fast-forward.svg +1 -0
- package/dist/assets/Icons/figma-neutral.svg +1 -0
- package/dist/assets/Icons/figma.svg +1 -0
- package/dist/assets/Icons/file-down.svg +1 -0
- package/dist/assets/Icons/file-plus.svg +1 -0
- package/dist/assets/Icons/file-text.svg +1 -0
- package/dist/assets/Icons/file.svg +1 -0
- package/dist/assets/Icons/film.svg +1 -0
- package/dist/assets/Icons/filter-x.svg +1 -0
- package/dist/assets/Icons/filter.svg +1 -0
- package/dist/assets/Icons/fingerprint-pattern.svg +1 -0
- package/dist/assets/Icons/flag.svg +1 -0
- package/dist/assets/Icons/flask-conical.svg +1 -0
- package/dist/assets/Icons/folder.svg +1 -0
- package/dist/assets/Icons/funnel-plus.svg +1 -0
- package/dist/assets/Icons/ghost.svg +1 -0
- package/dist/assets/Icons/git-branch.svg +1 -0
- package/dist/assets/Icons/git-commit-horizontal.svg +1 -0
- package/dist/assets/Icons/git-commit-vertical.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows-alt.svg +1 -0
- package/dist/assets/Icons/git-compare-arrows.svg +1 -0
- package/dist/assets/Icons/git-compare.svg +1 -0
- package/dist/assets/Icons/git-fork.svg +1 -0
- package/dist/assets/Icons/git-graph.svg +1 -0
- package/dist/assets/Icons/git-merge.svg +1 -0
- package/dist/assets/Icons/git-pull-request-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-closed.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create-arrow.svg +1 -0
- package/dist/assets/Icons/git-pull-request-create.svg +1 -0
- package/dist/assets/Icons/git-pull-request-draft.svg +1 -0
- package/dist/assets/Icons/git-pull-request.svg +1 -0
- package/dist/assets/Icons/github-neutral.svg +1 -0
- package/dist/assets/Icons/github.svg +1 -0
- package/dist/assets/Icons/globe-lock.svg +1 -0
- package/dist/assets/Icons/globe.svg +1 -0
- package/dist/assets/Icons/gmail-neutral.svg +1 -0
- package/dist/assets/Icons/gmail.svg +1 -0
- package/dist/assets/Icons/google-meet-neutral.svg +1 -0
- package/dist/assets/Icons/google-meet.svg +1 -0
- package/dist/assets/Icons/google-neutral.svg +1 -0
- package/dist/assets/Icons/google-play-neutral.svg +1 -0
- package/dist/assets/Icons/google-play.svg +1 -0
- package/dist/assets/Icons/google-podcast-neutral.svg +1 -0
- package/dist/assets/Icons/google-podcast.svg +1 -0
- package/dist/assets/Icons/google.svg +1 -0
- package/dist/assets/Icons/grip-horizontal.svg +1 -0
- package/dist/assets/Icons/grip-vertical.svg +1 -0
- package/dist/assets/Icons/hammer.svg +1 -0
- package/dist/assets/Icons/heart-pulse.svg +1 -0
- package/dist/assets/Icons/history.svg +1 -0
- package/dist/assets/Icons/home.svg +1 -0
- package/dist/assets/Icons/imo-neutral.svg +1 -0
- package/dist/assets/Icons/imo.svg +1 -0
- package/dist/assets/Icons/infinity.svg +1 -0
- package/dist/assets/Icons/info.svg +1 -0
- package/dist/assets/Icons/infobip-neutral.svg +1 -0
- package/dist/assets/Icons/infobip.svg +1 -0
- package/dist/assets/Icons/instagram-neutral.svg +1 -0
- package/dist/assets/Icons/instagram.svg +1 -0
- package/dist/assets/Icons/key-round.svg +1 -0
- package/dist/assets/Icons/key-square.svg +1 -0
- package/dist/assets/Icons/keyboard.svg +1 -0
- package/dist/assets/Icons/kickstarter-neutral.svg +1 -0
- package/dist/assets/Icons/kickstarter.svg +1 -0
- package/dist/assets/Icons/laptop.svg +1 -0
- package/dist/assets/Icons/layers.svg +1 -0
- package/dist/assets/Icons/layers2.svg +1 -0
- package/dist/assets/Icons/layers3.svg +1 -0
- package/dist/assets/Icons/layout-dashboard.svg +1 -0
- package/dist/assets/Icons/layout-grid.svg +1 -0
- package/dist/assets/Icons/layout-list.svg +1 -0
- package/dist/assets/Icons/layout-panel-left.svg +1 -0
- package/dist/assets/Icons/layout-panel-top.svg +1 -0
- package/dist/assets/Icons/layout-template.svg +1 -0
- package/dist/assets/Icons/library-big.svg +1 -0
- package/dist/assets/Icons/life-buoy.svg +1 -0
- package/dist/assets/Icons/lightbulb-off.svg +1 -0
- package/dist/assets/Icons/lightbulb.svg +1 -0
- package/dist/assets/Icons/line-neutral.svg +1 -0
- package/dist/assets/Icons/line.svg +1 -0
- package/dist/assets/Icons/link.svg +1 -0
- package/dist/assets/Icons/link2-off.svg +1 -0
- package/dist/assets/Icons/link2.svg +1 -0
- package/dist/assets/Icons/linkedin-neutral.svg +1 -0
- package/dist/assets/Icons/linkedin.svg +1 -0
- package/dist/assets/Icons/list-checks.svg +1 -0
- package/dist/assets/Icons/list-collapse.svg +1 -0
- package/dist/assets/Icons/list-filter.svg +1 -0
- package/dist/assets/Icons/list-minus.svg +1 -0
- package/dist/assets/Icons/list-ordered.svg +1 -0
- package/dist/assets/Icons/list-plus.svg +1 -0
- package/dist/assets/Icons/list-restart.svg +1 -0
- package/dist/assets/Icons/list-start.svg +1 -0
- package/dist/assets/Icons/list-todo.svg +1 -0
- package/dist/assets/Icons/list-tree.svg +1 -0
- package/dist/assets/Icons/list-video.svg +1 -0
- package/dist/assets/Icons/list-x.svg +1 -0
- package/dist/assets/Icons/list.svg +1 -0
- package/dist/assets/Icons/loader-circle.svg +1 -0
- package/dist/assets/Icons/loader.svg +1 -0
- package/dist/assets/Icons/lock-open.svg +1 -0
- package/dist/assets/Icons/lock.svg +1 -0
- package/dist/assets/Icons/log-in.svg +1 -0
- package/dist/assets/Icons/log-out.svg +1 -0
- package/dist/assets/Icons/mail-check.svg +1 -0
- package/dist/assets/Icons/mail-minus.svg +1 -0
- package/dist/assets/Icons/mail-open.svg +1 -0
- package/dist/assets/Icons/mail-plus.svg +1 -0
- package/dist/assets/Icons/mail-question.svg +1 -0
- package/dist/assets/Icons/mail-search.svg +1 -0
- package/dist/assets/Icons/mail-warning.svg +1 -0
- package/dist/assets/Icons/mail-x.svg +1 -0
- package/dist/assets/Icons/mail.svg +1 -0
- package/dist/assets/Icons/mailbox.svg +1 -0
- package/dist/assets/Icons/mailersend-neutral.svg +1 -0
- package/dist/assets/Icons/mailersend.svg +1 -0
- package/dist/assets/Icons/mailgun-neutral.svg +1 -0
- package/dist/assets/Icons/mailgun.svg +1 -0
- package/dist/assets/Icons/mailjet-neutral.svg +1 -0
- package/dist/assets/Icons/mailjet.svg +1 -0
- package/dist/assets/Icons/mails.svg +1 -0
- package/dist/assets/Icons/mailtrap-neutral.svg +1 -0
- package/dist/assets/Icons/mailtrap.svg +1 -0
- package/dist/assets/Icons/mandrill-neutral.svg +1 -0
- package/dist/assets/Icons/mandrill.svg +1 -0
- package/dist/assets/Icons/map-pin.svg +1 -0
- package/dist/assets/Icons/maqsam-neutral.svg +1 -0
- package/dist/assets/Icons/maqsam.svg +1 -0
- package/dist/assets/Icons/mattermost-neutral.svg +1 -0
- package/dist/assets/Icons/mattermost.svg +1 -0
- package/dist/assets/Icons/maximize.svg +1 -0
- package/dist/assets/Icons/maximize2.svg +1 -0
- package/dist/assets/Icons/medium-neutral.svg +1 -0
- package/dist/assets/Icons/medium.svg +1 -0
- package/dist/assets/Icons/megaphone-off.svg +1 -0
- package/dist/assets/Icons/megaphone.svg +1 -0
- package/dist/assets/Icons/menu.svg +1 -0
- package/dist/assets/Icons/merge.svg +1 -0
- package/dist/assets/Icons/message-square-code.svg +1 -0
- package/dist/assets/Icons/message-square-dashed.svg +1 -0
- package/dist/assets/Icons/message-square-diff.svg +1 -0
- package/dist/assets/Icons/message-square-dot.svg +1 -0
- package/dist/assets/Icons/message-square-heart.svg +1 -0
- package/dist/assets/Icons/message-square-off.svg +1 -0
- package/dist/assets/Icons/message-square-plus.svg +1 -0
- package/dist/assets/Icons/message-square-quote.svg +1 -0
- package/dist/assets/Icons/message-square-reply.svg +1 -0
- package/dist/assets/Icons/message-square-share.svg +1 -0
- package/dist/assets/Icons/message-square-text.svg +1 -0
- package/dist/assets/Icons/message-square-warning.svg +1 -0
- package/dist/assets/Icons/message-square-x.svg +1 -0
- package/dist/assets/Icons/message-square.svg +1 -0
- package/dist/assets/Icons/messages-square.svg +1 -0
- package/dist/assets/Icons/messenger-neutral.svg +1 -0
- package/dist/assets/Icons/messenger.svg +1 -0
- package/dist/assets/Icons/microsoft-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams-neutral.svg +1 -0
- package/dist/assets/Icons/microsoft-teams.svg +1 -0
- package/dist/assets/Icons/microsoft.svg +1 -0
- package/dist/assets/Icons/minimize.svg +1 -0
- package/dist/assets/Icons/minimize2.svg +1 -0
- package/dist/assets/Icons/minus.svg +1 -0
- package/dist/assets/Icons/moon.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-ban.svg +1 -0
- package/dist/assets/Icons/mouse-pointer-click.svg +1 -0
- package/dist/assets/Icons/mouse-pointer.svg +1 -0
- package/dist/assets/Icons/mouse-pointer2.svg +1 -0
- package/dist/assets/Icons/mouse.svg +1 -0
- package/dist/assets/Icons/move-diagonal.svg +1 -0
- package/dist/assets/Icons/move-diagonal2.svg +1 -0
- package/dist/assets/Icons/move-down-left.svg +1 -0
- package/dist/assets/Icons/move-down-right.svg +1 -0
- package/dist/assets/Icons/move-down.svg +1 -0
- package/dist/assets/Icons/move-horizontal.svg +1 -0
- package/dist/assets/Icons/move-left.svg +1 -0
- package/dist/assets/Icons/move-right.svg +1 -0
- package/dist/assets/Icons/move-up-left.svg +1 -0
- package/dist/assets/Icons/move-up-right.svg +1 -0
- package/dist/assets/Icons/move-up.svg +1 -0
- package/dist/assets/Icons/move-vertical.svg +1 -0
- package/dist/assets/Icons/move3-d.svg +1 -0
- package/dist/assets/Icons/netcore-neutral.svg +1 -0
- package/dist/assets/Icons/netcore.svg +1 -0
- package/dist/assets/Icons/notebook-pen.svg +1 -0
- package/dist/assets/Icons/notebook-tabs.svg +1 -0
- package/dist/assets/Icons/notebook-text.svg +1 -0
- package/dist/assets/Icons/notebook.svg +1 -0
- package/dist/assets/Icons/notepad-text-dashed.svg +1 -0
- package/dist/assets/Icons/notepad-text.svg +1 -0
- package/dist/assets/Icons/notion-neutral.svg +1 -0
- package/dist/assets/Icons/notion.svg +1 -0
- package/dist/assets/Icons/octagon-alert.svg +1 -0
- package/dist/assets/Icons/octagon-pause.svg +1 -0
- package/dist/assets/Icons/octagon-x.svg +1 -0
- package/dist/assets/Icons/octagon.svg +1 -0
- package/dist/assets/Icons/ok-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/ok-only-sign.svg +1 -0
- package/dist/assets/Icons/ok.svg +1 -0
- package/dist/assets/Icons/onlyfans-neutral.svg +1 -0
- package/dist/assets/Icons/onlyfans.svg +1 -0
- package/dist/assets/Icons/option.svg +1 -0
- package/dist/assets/Icons/outlook365-neutral.svg +1 -0
- package/dist/assets/Icons/outlook365.svg +1 -0
- package/dist/assets/Icons/paintbrush.svg +1 -0
- package/dist/assets/Icons/panel-bottom-open.svg +1 -0
- package/dist/assets/Icons/panel-bottom.svg +1 -0
- package/dist/assets/Icons/panel-left-close.svg +1 -0
- package/dist/assets/Icons/panel-left-dashed.svg +1 -0
- package/dist/assets/Icons/panel-left-open.svg +1 -0
- package/dist/assets/Icons/panel-left.svg +1 -0
- package/dist/assets/Icons/panel-right-animated.svg +1 -0
- package/dist/assets/Icons/panel-right-close.svg +1 -0
- package/dist/assets/Icons/panel-right-dashed.svg +1 -0
- package/dist/assets/Icons/panel-right-open.svg +1 -0
- package/dist/assets/Icons/panel-right.svg +1 -0
- package/dist/assets/Icons/panel-top-bottom-dashed.svg +1 -0
- package/dist/assets/Icons/panel-top-close.svg +1 -0
- package/dist/assets/Icons/panel-top-open.svg +1 -0
- package/dist/assets/Icons/panel-top.svg +1 -0
- package/dist/assets/Icons/panels-left-bottom.svg +1 -0
- package/dist/assets/Icons/panels-right-bottom.svg +1 -0
- package/dist/assets/Icons/panels-top-left.svg +1 -0
- package/dist/assets/Icons/paperclip.svg +1 -0
- package/dist/assets/Icons/patreon-neutral.svg +1 -0
- package/dist/assets/Icons/patreon.svg +1 -0
- package/dist/assets/Icons/paypal-neutral.svg +1 -0
- package/dist/assets/Icons/paypal.svg +1 -0
- package/dist/assets/Icons/pen-line.svg +1 -0
- package/dist/assets/Icons/pen-off.svg +1 -0
- package/dist/assets/Icons/pen-tool.svg +1 -0
- package/dist/assets/Icons/pen.svg +1 -0
- package/dist/assets/Icons/pencil-line.svg +1 -0
- package/dist/assets/Icons/pencil-off.svg +1 -0
- package/dist/assets/Icons/pencil-ruler.svg +1 -0
- package/dist/assets/Icons/pencil.svg +1 -0
- package/dist/assets/Icons/pentagon.svg +1 -0
- package/dist/assets/Icons/percentage.svg +1 -0
- package/dist/assets/Icons/phone.svg +1 -0
- package/dist/assets/Icons/pin-off.svg +1 -0
- package/dist/assets/Icons/pin.svg +1 -0
- package/dist/assets/Icons/pinterest-neutral.svg +1 -0
- package/dist/assets/Icons/pinterest.svg +1 -0
- package/dist/assets/Icons/play.svg +1 -0
- package/dist/assets/Icons/plug.svg +1 -0
- package/dist/assets/Icons/plunk-neutral.svg +1 -0
- package/dist/assets/Icons/plunk.svg +1 -0
- package/dist/assets/Icons/plus.svg +1 -0
- package/dist/assets/Icons/postmark-neutral.svg +1 -0
- package/dist/assets/Icons/postmark.svg +1 -0
- package/dist/assets/Icons/product-hunt-neutral.svg +1 -0
- package/dist/assets/Icons/product-hunt.svg +1 -0
- package/dist/assets/Icons/quora-neutral.svg +1 -0
- package/dist/assets/Icons/quora.svg +1 -0
- package/dist/assets/Icons/quote.svg +1 -0
- package/dist/assets/Icons/radar.svg +1 -0
- package/dist/assets/Icons/reddit-neutral.svg +1 -0
- package/dist/assets/Icons/reddit.svg +1 -0
- package/dist/assets/Icons/redo-dot.svg +1 -0
- package/dist/assets/Icons/redo.svg +1 -0
- package/dist/assets/Icons/redo2.svg +1 -0
- package/dist/assets/Icons/refresh-ccw.svg +1 -0
- package/dist/assets/Icons/refresh-cw-off.svg +1 -0
- package/dist/assets/Icons/resend-neutral.svg +1 -0
- package/dist/assets/Icons/resend.svg +1 -0
- package/dist/assets/Icons/rss.svg +1 -0
- package/dist/assets/Icons/rules.svg +1 -0
- package/dist/assets/Icons/scan-line.svg +1 -0
- package/dist/assets/Icons/scroll-text.svg +1 -0
- package/dist/assets/Icons/search-hint.svg +1 -0
- package/dist/assets/Icons/search-x.svg +1 -0
- package/dist/assets/Icons/search.svg +1 -0
- package/dist/assets/Icons/sendgrid-neutral.svg +1 -0
- package/dist/assets/Icons/sendgrid.svg +1 -0
- package/dist/assets/Icons/server.svg +1 -0
- package/dist/assets/Icons/ses-neutral.svg +1 -0
- package/dist/assets/Icons/ses.svg +1 -0
- package/dist/assets/Icons/settings.svg +1 -0
- package/dist/assets/Icons/settings2.svg +1 -0
- package/dist/assets/Icons/shapes.svg +1 -0
- package/dist/assets/Icons/share.svg +1 -0
- package/dist/assets/Icons/sheet.svg +1 -0
- package/dist/assets/Icons/shield-alert.svg +1 -0
- package/dist/assets/Icons/shield-ban.svg +1 -0
- package/dist/assets/Icons/shield-check.svg +1 -0
- package/dist/assets/Icons/shield-ellipsis.svg +1 -0
- package/dist/assets/Icons/shield-half.svg +1 -0
- package/dist/assets/Icons/shield-minus.svg +1 -0
- package/dist/assets/Icons/shield-off.svg +1 -0
- package/dist/assets/Icons/shield-plus.svg +1 -0
- package/dist/assets/Icons/shield-question.svg +1 -0
- package/dist/assets/Icons/shield-user.svg +1 -0
- package/dist/assets/Icons/shield-x.svg +1 -0
- package/dist/assets/Icons/shield.svg +1 -0
- package/dist/assets/Icons/shift.svg +1 -0
- package/dist/assets/Icons/signal-neutral.svg +1 -0
- package/dist/assets/Icons/signal.svg +1 -0
- package/dist/assets/Icons/signpost.svg +1 -0
- package/dist/assets/Icons/sina-weibo-neutral.svg +1 -0
- package/dist/assets/Icons/sina-weibo.svg +1 -0
- package/dist/assets/Icons/skull.svg +1 -0
- package/dist/assets/Icons/skype-neutral.svg +1 -0
- package/dist/assets/Icons/skype.svg +1 -0
- package/dist/assets/Icons/slack-neutral.svg +1 -0
- package/dist/assets/Icons/slack.svg +1 -0
- package/dist/assets/Icons/sliders-horizontal.svg +1 -0
- package/dist/assets/Icons/sliders-vertical.svg +1 -0
- package/dist/assets/Icons/smtp-neutral.svg +1 -0
- package/dist/assets/Icons/smtp.svg +1 -0
- package/dist/assets/Icons/snapchat-neutral.svg +1 -0
- package/dist/assets/Icons/snapchat.svg +1 -0
- package/dist/assets/Icons/soundcloud-neutral.svg +1 -0
- package/dist/assets/Icons/soundcloud.svg +1 -0
- package/dist/assets/Icons/space.svg +1 -0
- package/dist/assets/Icons/sparkpost-neutral.svg +1 -0
- package/dist/assets/Icons/sparkpost.svg +1 -0
- package/dist/assets/Icons/speed.svg +1 -0
- package/dist/assets/Icons/split.svg +1 -0
- package/dist/assets/Icons/spotify-neutral.svg +1 -0
- package/dist/assets/Icons/spotify.svg +1 -0
- package/dist/assets/Icons/square-arrow-out-up-right.svg +1 -0
- package/dist/assets/Icons/square-minus.svg +1 -0
- package/dist/assets/Icons/square-pen.svg +1 -0
- package/dist/assets/Icons/square-plus.svg +1 -0
- package/dist/assets/Icons/square-user-round.svg +1 -0
- package/dist/assets/Icons/stack-overflow-neutral.svg +1 -0
- package/dist/assets/Icons/stack-overflow.svg +1 -0
- package/dist/assets/Icons/star.svg +1 -0
- package/dist/assets/Icons/sun.svg +1 -0
- package/dist/assets/Icons/syringe.svg +1 -0
- package/dist/assets/Icons/tag.svg +1 -0
- package/dist/assets/Icons/target.svg +1 -0
- package/dist/assets/Icons/teams-neutral.svg +1 -0
- package/dist/assets/Icons/teams.svg +1 -0
- package/dist/assets/Icons/telegram-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/telegram-only-sign.svg +1 -0
- package/dist/assets/Icons/telegram.svg +1 -0
- package/dist/assets/Icons/terminal.svg +1 -0
- package/dist/assets/Icons/test-policies.svg +1 -0
- package/dist/assets/Icons/threads-neutral.svg +1 -0
- package/dist/assets/Icons/threads.svg +1 -0
- package/dist/assets/Icons/thumbs-down.svg +1 -0
- package/dist/assets/Icons/thumbs-up.svg +1 -0
- package/dist/assets/Icons/tiktok-neutral.svg +1 -0
- package/dist/assets/Icons/tiktok.svg +1 -0
- package/dist/assets/Icons/tinder-neutral.svg +1 -0
- package/dist/assets/Icons/tinder.svg +1 -0
- package/dist/assets/Icons/trash.svg +1 -0
- package/dist/assets/Icons/trash2.svg +1 -0
- package/dist/assets/Icons/triangle-alert.svg +1 -0
- package/dist/assets/Icons/tumblr-neutral.svg +1 -0
- package/dist/assets/Icons/tumblr.svg +1 -0
- package/dist/assets/Icons/twitch-neutral.svg +1 -0
- package/dist/assets/Icons/twitch.svg +1 -0
- package/dist/assets/Icons/undo-dot.svg +1 -0
- package/dist/assets/Icons/undo.svg +1 -0
- package/dist/assets/Icons/undo2.svg +1 -0
- package/dist/assets/Icons/unplug.svg +1 -0
- package/dist/assets/Icons/user-check.svg +1 -0
- package/dist/assets/Icons/user-minus.svg +1 -0
- package/dist/assets/Icons/user-plus.svg +1 -0
- package/dist/assets/Icons/user-round-x.svg +1 -0
- package/dist/assets/Icons/user-round.svg +1 -0
- package/dist/assets/Icons/user.svg +1 -0
- package/dist/assets/Icons/username.svg +1 -0
- package/dist/assets/Icons/users-round.svg +1 -0
- package/dist/assets/Icons/users.svg +1 -0
- package/dist/assets/Icons/viber-neutral.svg +1 -0
- package/dist/assets/Icons/viber.svg +1 -0
- package/dist/assets/Icons/video.svg +1 -0
- package/dist/assets/Icons/vimeo-neutral.svg +1 -0
- package/dist/assets/Icons/vimeo.svg +1 -0
- package/dist/assets/Icons/vk-music-neutral.svg +1 -0
- package/dist/assets/Icons/vk-music.svg +1 -0
- package/dist/assets/Icons/vk-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign-neutral.svg +1 -0
- package/dist/assets/Icons/vk-only-sign.svg +1 -0
- package/dist/assets/Icons/vk.svg +1 -0
- package/dist/assets/Icons/webhook-neutral.svg +1 -0
- package/dist/assets/Icons/webhook.svg +1 -0
- package/dist/assets/Icons/wechat-neutral.svg +1 -0
- package/dist/assets/Icons/wechat.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp-badge.svg +1 -0
- package/dist/assets/Icons/whatsapp-neutral.svg +1 -0
- package/dist/assets/Icons/whatsapp.svg +1 -0
- package/dist/assets/Icons/workflow.svg +1 -0
- package/dist/assets/Icons/wrap-text.svg +1 -0
- package/dist/assets/Icons/wrench.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter-neutral.svg +1 -0
- package/dist/assets/Icons/x-ex-twitter.svg +1 -0
- package/dist/assets/Icons/x.svg +1 -0
- package/dist/assets/Icons/xing-neutral.svg +1 -0
- package/dist/assets/Icons/xing.svg +1 -0
- package/dist/assets/Icons/yandex-music-neutral.svg +1 -0
- package/dist/assets/Icons/yandex-music.svg +1 -0
- package/dist/assets/Icons/yelp-neutral.svg +1 -0
- package/dist/assets/Icons/yelp.svg +1 -0
- package/dist/assets/Icons/youtube-music-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-music.svg +1 -0
- package/dist/assets/Icons/youtube-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts-neutral.svg +1 -0
- package/dist/assets/Icons/youtube-shorts.svg +1 -0
- package/dist/assets/Icons/youtube.svg +1 -0
- package/dist/assets/Icons/zap.svg +1 -0
- package/dist/assets/Icons/zoom-in.svg +1 -0
- package/dist/assets/Icons/zoom-neutral.svg +1 -0
- package/dist/assets/Icons/zoom-out.svg +1 -0
- package/dist/assets/Icons/zoom.svg +1 -0
- package/dist/assets/Icons/zulip-neutral.svg +1 -0
- package/dist/assets/Icons/zulip.svg +1 -0
- package/dist/assets/Logos/wallarm.svg +1 -0
- package/dist/assets.json +4666 -0
- package/dist/project/README.md +265 -0
- package/dist/project/components/Accordion/README.md +354 -0
- package/dist/project/components/Accordion/preview.html +2 -0
- package/dist/project/components/Accordion/stories.js +12 -0
- package/dist/project/components/AgentAvatar/README.md +127 -0
- package/dist/project/components/AgentAvatar/preview.html +2 -0
- package/dist/project/components/AgentAvatar/stories.js +12 -0
- package/dist/project/components/AgentAvatar/stories.md +1805 -0
- package/dist/project/components/AgentGlyph/README.md +1182 -0
- package/dist/project/components/AgentGlyph/preview.html +2 -0
- package/dist/project/components/AgentGlyph/stories.js +12 -0
- package/dist/project/components/AgentLookBuilder/README.md +269 -0
- package/dist/project/components/AgentLookBuilder/preview.html +2 -0
- package/dist/project/components/AgentLookBuilder/stories.js +12 -0
- package/dist/project/components/Alert/README.md +492 -0
- package/dist/project/components/Alert/preview.html +2 -0
- package/dist/project/components/Alert/stories.js +12 -0
- package/dist/project/components/AnimatedBackground/README.md +124 -0
- package/dist/project/components/AnimatedBackground/preview.html +2 -0
- package/dist/project/components/AnimatedBackground/stories.js +12 -0
- package/dist/project/components/AppShell/README.md +75 -0
- package/dist/project/components/AppShell/preview.html +2 -0
- package/dist/project/components/AppShell/stories.js +28 -0
- package/dist/project/components/AppShell/stories.md +2878 -0
- package/dist/project/components/ApprovalCard/README.md +353 -0
- package/dist/project/components/ApprovalCard/preview.html +2 -0
- package/dist/project/components/ApprovalCard/stories.js +12 -0
- package/dist/project/components/AreaChart/README.md +673 -0
- package/dist/project/components/AreaChart/preview.html +2 -0
- package/dist/project/components/AreaChart/stories.js +12 -0
- package/dist/project/components/AssistantMessage/README.md +724 -0
- package/dist/project/components/AssistantMessage/preview.html +2 -0
- package/dist/project/components/AssistantMessage/stories.js +55 -0
- package/dist/project/components/Attribute/README.md +1174 -0
- package/dist/project/components/Attribute/preview.html +2 -0
- package/dist/project/components/Attribute/stories.js +12 -0
- package/dist/project/components/Avatar/README.md +416 -0
- package/dist/project/components/Avatar/preview.html +2 -0
- package/dist/project/components/Avatar/stories.js +12 -0
- package/dist/project/components/Badge/README.md +853 -0
- package/dist/project/components/Badge/preview.html +2 -0
- package/dist/project/components/Badge/stories.js +12 -0
- package/dist/project/components/Banner/README.md +341 -0
- package/dist/project/components/Banner/preview.html +2 -0
- package/dist/project/components/Banner/stories.js +12 -0
- package/dist/project/components/BarList/README.md +757 -0
- package/dist/project/components/BarList/preview.html +2 -0
- package/dist/project/components/BarList/stories.js +12 -0
- package/dist/project/components/Breadcrumbs/README.md +274 -0
- package/dist/project/components/Breadcrumbs/preview.html +2 -0
- package/dist/project/components/Breadcrumbs/stories.js +12 -0
- package/dist/project/components/BulkBar/README.md +19 -0
- package/dist/project/components/Button/README.md +467 -0
- package/dist/project/components/Button/preview.html +2 -0
- package/dist/project/components/Button/stories.js +12 -0
- package/dist/project/components/Calendar/README.md +654 -0
- package/dist/project/components/Calendar/preview.html +2 -0
- package/dist/project/components/Calendar/stories.js +12 -0
- package/dist/project/components/Card/README.md +367 -0
- package/dist/project/components/Card/preview.html +2 -0
- package/dist/project/components/Card/stories.js +12 -0
- package/dist/project/components/ChainOfThought/README.md +412 -0
- package/dist/project/components/ChainOfThought/preview.html +2 -0
- package/dist/project/components/ChainOfThought/stories.js +12 -0
- package/dist/project/components/Chart/README.md +224 -0
- package/dist/project/components/Chart/preview.html +2 -0
- package/dist/project/components/Chart/stories.js +12 -0
- package/dist/project/components/Chat/README.md +1244 -0
- package/dist/project/components/Chat/preview.html +2 -0
- package/dist/project/components/Chat/stories.js +12 -0
- package/dist/project/components/ChatInput/README.md +378 -0
- package/dist/project/components/ChatInput/preview.html +2 -0
- package/dist/project/components/ChatInput/stories.js +12 -0
- package/dist/project/components/ChatPermissions/README.md +218 -0
- package/dist/project/components/ChatPermissions/preview.html +2 -0
- package/dist/project/components/ChatPermissions/stories.js +12 -0
- package/dist/project/components/Checkbox/README.md +367 -0
- package/dist/project/components/Checkbox/preview.html +2 -0
- package/dist/project/components/Checkbox/stories.js +12 -0
- package/dist/project/components/Code/README.md +243 -0
- package/dist/project/components/Code/preview.html +2 -0
- package/dist/project/components/Code/stories.js +12 -0
- package/dist/project/components/CodeEditor/README.md +280 -0
- package/dist/project/components/CodeEditor/preview.html +2 -0
- package/dist/project/components/CodeEditor/stories.js +162 -0
- package/dist/project/components/CodeEditor/stories.md +1533 -0
- package/dist/project/components/CodeSnippet/README.md +1352 -0
- package/dist/project/components/CodeSnippet/preview.html +2 -0
- package/dist/project/components/CodeSnippet/stories.js +156 -0
- package/dist/project/components/ColumnChart/README.md +521 -0
- package/dist/project/components/ColumnChart/preview.html +2 -0
- package/dist/project/components/ColumnChart/stories.js +12 -0
- package/dist/project/components/Conversation/README.md +314 -0
- package/dist/project/components/Conversation/preview.html +2 -0
- package/dist/project/components/Conversation/stories.js +12 -0
- package/dist/project/components/Copyable/README.md +406 -0
- package/dist/project/components/Copyable/preview.html +2 -0
- package/dist/project/components/Copyable/stories.js +12 -0
- package/dist/project/components/Country/README.md +226 -0
- package/dist/project/components/Country/preview.html +2 -0
- package/dist/project/components/Country/stories.js +12 -0
- package/dist/project/components/Cover/preview.html +43 -0
- package/dist/project/components/DateInput/README.md +458 -0
- package/dist/project/components/DateInput/preview.html +2 -0
- package/dist/project/components/DateInput/stories.js +12 -0
- package/dist/project/components/DateRangeInput/README.md +412 -0
- package/dist/project/components/DateRangeInput/preview.html +2 -0
- package/dist/project/components/DateRangeInput/stories.js +12 -0
- package/dist/project/components/Dialog/README.md +1140 -0
- package/dist/project/components/Dialog/preview.html +2 -0
- package/dist/project/components/Dialog/stories.js +12 -0
- package/dist/project/components/Drawer/README.md +1163 -0
- package/dist/project/components/Drawer/preview.html +2 -0
- package/dist/project/components/Drawer/stories.js +12 -0
- package/dist/project/components/DropdownMenu/README.md +678 -0
- package/dist/project/components/DropdownMenu/preview.html +2 -0
- package/dist/project/components/DropdownMenu/stories.js +12 -0
- package/dist/project/components/EmptyState/README.md +276 -0
- package/dist/project/components/EmptyState/preview.html +2 -0
- package/dist/project/components/EmptyState/stories.js +12 -0
- package/dist/project/components/FeedbackPulse/README.md +125 -0
- package/dist/project/components/FeedbackPulse/preview.html +2 -0
- package/dist/project/components/FeedbackPulse/stories.js +12 -0
- package/dist/project/components/Field/README.md +676 -0
- package/dist/project/components/Field/preview.html +2 -0
- package/dist/project/components/Field/stories.js +12 -0
- package/dist/project/components/FileUpload/README.md +544 -0
- package/dist/project/components/FileUpload/preview.html +2 -0
- package/dist/project/components/FileUpload/stories.js +12 -0
- package/dist/project/components/FilterCascade/README.md +348 -0
- package/dist/project/components/FilterCascade/preview.html +2 -0
- package/dist/project/components/FilterCascade/stories.js +12 -0
- package/dist/project/components/FilterDropdown/README.md +542 -0
- package/dist/project/components/FilterDropdown/preview.html +2 -0
- package/dist/project/components/FilterDropdown/stories.js +12 -0
- package/dist/project/components/FilterInput/README.md +416 -0
- package/dist/project/components/FilterInput/preview.html +2 -0
- package/dist/project/components/FilterInput/stories.js +12 -0
- package/dist/project/components/FilterInput/stories.md +6682 -0
- package/dist/project/components/Flex/README.md +225 -0
- package/dist/project/components/Flex/preview.html +2 -0
- package/dist/project/components/Flex/stories.js +12 -0
- package/dist/project/components/FormatDateTime/README.md +315 -0
- package/dist/project/components/FormatDateTime/preview.html +2 -0
- package/dist/project/components/FormatDateTime/stories.js +12 -0
- package/dist/project/components/FormatNumber/README.md +317 -0
- package/dist/project/components/FormatNumber/preview.html +2 -0
- package/dist/project/components/FormatNumber/stories.js +12 -0
- package/dist/project/components/Heading/README.md +240 -0
- package/dist/project/components/Heading/preview.html +2 -0
- package/dist/project/components/Heading/stories.js +12 -0
- package/dist/project/components/HorizontalBarStack/README.md +281 -0
- package/dist/project/components/HorizontalBarStack/preview.html +2 -0
- package/dist/project/components/HorizontalBarStack/stories.js +12 -0
- package/dist/project/components/HttpMethod/README.md +137 -0
- package/dist/project/components/HttpMethod/preview.html +2 -0
- package/dist/project/components/HttpMethod/stories.js +12 -0
- package/dist/project/components/ImageCropper/README.md +332 -0
- package/dist/project/components/ImageCropper/preview.html +2 -0
- package/dist/project/components/ImageCropper/stories.js +33 -0
- package/dist/project/components/Indicator/README.md +110 -0
- package/dist/project/components/Indicator/preview.html +2 -0
- package/dist/project/components/Indicator/stories.js +12 -0
- package/dist/project/components/InlineEdit/README.md +977 -0
- package/dist/project/components/InlineEdit/preview.html +2 -0
- package/dist/project/components/InlineEdit/stories.js +12 -0
- package/dist/project/components/Input/README.md +187 -0
- package/dist/project/components/Input/preview.html +2 -0
- package/dist/project/components/Input/stories.js +12 -0
- package/dist/project/components/InputGroup/README.md +423 -0
- package/dist/project/components/InputGroup/preview.html +2 -0
- package/dist/project/components/InputGroup/stories.js +12 -0
- package/dist/project/components/InputOTP/README.md +201 -0
- package/dist/project/components/InputOTP/preview.html +2 -0
- package/dist/project/components/InputOTP/stories.js +12 -0
- package/dist/project/components/Ip/README.md +226 -0
- package/dist/project/components/Ip/preview.html +2 -0
- package/dist/project/components/Ip/stories.js +12 -0
- package/dist/project/components/Kbd/README.md +126 -0
- package/dist/project/components/Kbd/preview.html +2 -0
- package/dist/project/components/Kbd/stories.js +12 -0
- package/dist/project/components/LineChart/README.md +1479 -0
- package/dist/project/components/LineChart/preview.html +2 -0
- package/dist/project/components/LineChart/stories.js +12 -0
- package/dist/project/components/Link/README.md +160 -0
- package/dist/project/components/Link/preview.html +2 -0
- package/dist/project/components/Link/stories.js +12 -0
- package/dist/project/components/List/README.md +181 -0
- package/dist/project/components/List/preview.html +2 -0
- package/dist/project/components/List/stories.js +12 -0
- package/dist/project/components/Loader/README.md +145 -0
- package/dist/project/components/Loader/preview.html +2 -0
- package/dist/project/components/Loader/stories.js +12 -0
- package/dist/project/components/Logo/README.md +183 -0
- package/dist/project/components/Logo/preview.html +2 -0
- package/dist/project/components/Logo/stories.js +12 -0
- package/dist/project/components/MessageActions/README.md +255 -0
- package/dist/project/components/MessageActions/preview.html +2 -0
- package/dist/project/components/MessageActions/stories.js +12 -0
- package/dist/project/components/Metric/README.md +324 -0
- package/dist/project/components/Metric/preview.html +2 -0
- package/dist/project/components/Metric/stories.js +12 -0
- package/dist/project/components/NavRail/README.md +25 -0
- package/dist/project/components/NotificationCenter/README.md +91 -0
- package/dist/project/components/NotificationCenter/preview.html +2 -0
- package/dist/project/components/NotificationCenter/stories.js +12 -0
- package/dist/project/components/NotificationCenter/stories.md +2170 -0
- package/dist/project/components/NumberInput/README.md +177 -0
- package/dist/project/components/NumberInput/preview.html +2 -0
- package/dist/project/components/NumberInput/stories.js +12 -0
- package/dist/project/components/NumericBadge/README.md +252 -0
- package/dist/project/components/NumericBadge/preview.html +2 -0
- package/dist/project/components/NumericBadge/stories.js +12 -0
- package/dist/project/components/OverflowList/README.md +324 -0
- package/dist/project/components/OverflowList/preview.html +2 -0
- package/dist/project/components/OverflowList/stories.js +12 -0
- package/dist/project/components/OverflowTooltip/README.md +421 -0
- package/dist/project/components/OverflowTooltip/preview.html +2 -0
- package/dist/project/components/OverflowTooltip/stories.js +12 -0
- package/dist/project/components/Overlay/README.md +95 -0
- package/dist/project/components/Overlay/preview.html +2 -0
- package/dist/project/components/Overlay/stories.js +12 -0
- package/dist/project/components/Overview/README.md +445 -0
- package/dist/project/components/Overview/preview.html +2 -0
- package/dist/project/components/Overview/stories.js +12 -0
- package/dist/project/components/Page/README.md +215 -0
- package/dist/project/components/Page/preview.html +2 -0
- package/dist/project/components/Page/stories.js +12 -0
- package/dist/project/components/Pagination/README.md +302 -0
- package/dist/project/components/Pagination/preview.html +2 -0
- package/dist/project/components/Pagination/stories.js +12 -0
- package/dist/project/components/ParameterPath/README.md +284 -0
- package/dist/project/components/ParameterPath/preview.html +2 -0
- package/dist/project/components/ParameterPath/stories.js +12 -0
- package/dist/project/components/PasswordComplexity/README.md +171 -0
- package/dist/project/components/PasswordComplexity/preview.html +2 -0
- package/dist/project/components/PasswordComplexity/stories.js +12 -0
- package/dist/project/components/PasswordInput/README.md +254 -0
- package/dist/project/components/PasswordInput/preview.html +2 -0
- package/dist/project/components/PasswordInput/stories.js +12 -0
- package/dist/project/components/PieChart/README.md +895 -0
- package/dist/project/components/PieChart/preview.html +2 -0
- package/dist/project/components/PieChart/stories.js +12 -0
- package/dist/project/components/Popover/README.md +282 -0
- package/dist/project/components/Popover/preview.html +2 -0
- package/dist/project/components/Popover/stories.js +12 -0
- package/dist/project/components/Progress/README.md +174 -0
- package/dist/project/components/Progress/preview.html +2 -0
- package/dist/project/components/Progress/stories.js +12 -0
- package/dist/project/components/Radio/README.md +264 -0
- package/dist/project/components/Radio/preview.html +2 -0
- package/dist/project/components/Radio/stories.js +12 -0
- package/dist/project/components/RemoteShell/README.md +1758 -0
- package/dist/project/components/RemoteShell/preview.html +2 -0
- package/dist/project/components/RemoteShell/stories.js +28 -0
- package/dist/project/components/Resizable/README.md +290 -0
- package/dist/project/components/Resizable/preview.html +2 -0
- package/dist/project/components/Resizable/stories.js +12 -0
- package/dist/project/components/ResponseCode/README.md +205 -0
- package/dist/project/components/ResponseCode/preview.html +2 -0
- package/dist/project/components/ResponseCode/stories.js +12 -0
- package/dist/project/components/ScrollArea/README.md +234 -0
- package/dist/project/components/ScrollArea/preview.html +2 -0
- package/dist/project/components/ScrollArea/stories.js +12 -0
- package/dist/project/components/SearchInput/README.md +158 -0
- package/dist/project/components/SearchInput/preview.html +2 -0
- package/dist/project/components/SearchInput/stories.js +12 -0
- package/dist/project/components/SearchModal/README.md +836 -0
- package/dist/project/components/SearchModal/preview.html +2 -0
- package/dist/project/components/SearchModal/stories.js +12 -0
- package/dist/project/components/SegmentedControl/README.md +382 -0
- package/dist/project/components/SegmentedControl/preview.html +2 -0
- package/dist/project/components/SegmentedControl/stories.js +12 -0
- package/dist/project/components/SegmentedTabs/README.md +390 -0
- package/dist/project/components/SegmentedTabs/preview.html +2 -0
- package/dist/project/components/SegmentedTabs/stories.js +12 -0
- package/dist/project/components/Select/README.md +1311 -0
- package/dist/project/components/Select/preview.html +2 -0
- package/dist/project/components/Select/stories.js +12 -0
- package/dist/project/components/Selection/README.md +648 -0
- package/dist/project/components/Selection/preview.html +2 -0
- package/dist/project/components/Selection/stories.js +12 -0
- package/dist/project/components/Separator/README.md +77 -0
- package/dist/project/components/Separator/preview.html +2 -0
- package/dist/project/components/Separator/stories.js +12 -0
- package/dist/project/components/Skeleton/README.md +358 -0
- package/dist/project/components/Skeleton/preview.html +2 -0
- package/dist/project/components/Skeleton/stories.js +12 -0
- package/dist/project/components/Slider/README.md +433 -0
- package/dist/project/components/Slider/preview.html +2 -0
- package/dist/project/components/Slider/stories.js +12 -0
- package/dist/project/components/SplashScreen/README.md +192 -0
- package/dist/project/components/SplashScreen/preview.html +2 -0
- package/dist/project/components/SplashScreen/stories.js +12 -0
- package/dist/project/components/SplitButton/README.md +402 -0
- package/dist/project/components/SplitButton/preview.html +2 -0
- package/dist/project/components/SplitButton/stories.js +12 -0
- package/dist/project/components/Stack/README.md +269 -0
- package/dist/project/components/Stack/preview.html +2 -0
- package/dist/project/components/Stack/stories.js +12 -0
- package/dist/project/components/Stepper/README.md +682 -0
- package/dist/project/components/Stepper/preview.html +2 -0
- package/dist/project/components/Stepper/stories.js +12 -0
- package/dist/project/components/Switch/README.md +236 -0
- package/dist/project/components/Switch/preview.html +2 -0
- package/dist/project/components/Switch/stories.js +12 -0
- package/dist/project/components/Table/README.md +471 -0
- package/dist/project/components/Table/preview.html +2 -0
- package/dist/project/components/Table/stories.js +12 -0
- package/dist/project/components/Table/stories.md +3697 -0
- package/dist/project/components/Tabs/README.md +443 -0
- package/dist/project/components/Tabs/preview.html +2 -0
- package/dist/project/components/Tabs/stories.js +12 -0
- package/dist/project/components/Tag/README.md +324 -0
- package/dist/project/components/Tag/preview.html +2 -0
- package/dist/project/components/Tag/stories.js +12 -0
- package/dist/project/components/Text/README.md +200 -0
- package/dist/project/components/Text/preview.html +2 -0
- package/dist/project/components/Text/stories.js +12 -0
- package/dist/project/components/Textarea/README.md +273 -0
- package/dist/project/components/Textarea/preview.html +2 -0
- package/dist/project/components/Textarea/stories.js +12 -0
- package/dist/project/components/TimeInput/README.md +359 -0
- package/dist/project/components/TimeInput/preview.html +2 -0
- package/dist/project/components/TimeInput/stories.js +12 -0
- package/dist/project/components/Timeline/README.md +204 -0
- package/dist/project/components/Timeline/preview.html +2 -0
- package/dist/project/components/Timeline/stories.js +12 -0
- package/dist/project/components/Toast/README.md +718 -0
- package/dist/project/components/Toast/preview.html +2 -0
- package/dist/project/components/Toast/stories.js +12 -0
- package/dist/project/components/ToggleButton/README.md +292 -0
- package/dist/project/components/ToggleButton/preview.html +2 -0
- package/dist/project/components/ToggleButton/stories.js +12 -0
- package/dist/project/components/Tooltip/README.md +199 -0
- package/dist/project/components/Tooltip/preview.html +2 -0
- package/dist/project/components/Tooltip/stories.js +12 -0
- package/dist/project/components/TopHeader/README.md +21 -0
- package/dist/project/components/Tour/README.md +532 -0
- package/dist/project/components/Tour/preview.html +2 -0
- package/dist/project/components/Tour/stories.js +12 -0
- package/dist/project/components/Tree/README.md +450 -0
- package/dist/project/components/Tree/preview.html +2 -0
- package/dist/project/components/Tree/stories.js +12 -0
- package/dist/project/components/TreeView/README.md +531 -0
- package/dist/project/components/TreeView/preview.html +2 -0
- package/dist/project/components/TreeView/stories.js +12 -0
- package/dist/project/components/UTILITIES.md +647 -0
- package/dist/project/components/UserMessage/README.md +166 -0
- package/dist/project/components/UserMessage/preview.html +2 -0
- package/dist/project/components/UserMessage/stories.js +12 -0
- package/dist/project/components/UtilityPage/README.md +147 -0
- package/dist/project/components/UtilityPage/preview.html +2 -0
- package/dist/project/components/UtilityPage/stories.js +12 -0
- package/dist/project/components/WallyAssistant/README.md +1380 -0
- package/dist/project/components/WallyAssistant/preview.html +2 -0
- package/dist/project/components/WallyAssistant/stories.js +12 -0
- package/dist/project/components/WallyIcon/README.md +130 -0
- package/dist/project/components/WallyIcon/preview.html +2 -0
- package/dist/project/components/WallyIcon/stories.js +12 -0
- package/dist/project/components/WallySkeleton/README.md +96 -0
- package/dist/project/components/WallySkeleton/preview.html +2 -0
- package/dist/project/components/WallySkeleton/stories.js +12 -0
- package/dist/project/components/bundle.css +18734 -0
- package/dist/project/components/bundle.js +167 -0
- package/dist/project/components/index.d.ts +27226 -0
- package/dist/project/design-system.json +35 -0
- package/dist/project/fonts/Geist-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistMono-Variable.woff2 +0 -0
- package/dist/project/fonts/GeistPixel-Square.woff2 +0 -0
- package/dist/project/sampler.dc.html +238 -0
- package/dist/project/tokens.css +1395 -0
- package/dist/project/tokens.json +5235 -0
- package/dist/wallarm-sampler.dc.html +239 -0
- package/package.json +67 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,n){let r,l;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var o,a,c=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,u=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,h=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of d(t))m.call(e,l)||l===n||i(e,l,{get:()=>t[l],enumerable:!(r=s(t,l))||r.enumerable});return e},f={},p={$dispatcherGuard:()=>N,$makeReadOnly:()=>x,$reset:()=>D,$structuralCheck:()=>j,c:()=>R,clearRenderCounterRegistry:()=>M,renderCounterRegistry:()=>O,useRenderCounter:()=>A};for(var y in p)i(f,y,{get:p[y],enumerable:!0});e.exports=h(i({},"__esModule",{value:!0}),f);var _=(l=null!=(r=n("C"))?c(u(r)):{},h(r&&r.__esModule?l:i(l,"default",{value:r,enumerable:!0}),r)),{useRef:b,useEffect:S,isValidElement:v}=_,w=null!=(o=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?o:_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,g=Symbol.for("react.memo_cache_sentinel"),R="function"==typeof(null==(a=_.__COMPILER_RUNTIME)?void 0:a.c)?_.__COMPILER_RUNTIME.c:function(e){return _.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=g;return t[g]=!0,t},[])},k={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{k[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var E=null;function $(e){return w.ReactCurrentDispatcher.current=e,w.ReactCurrentDispatcher.current}k.useMemoCache=e=>{if(null!=E)return E.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var C=[];function N(e){let t=w.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&(E=t),t===k)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");$(k)}else if(1===e){let e=C.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===C.length&&(E=null),$(e)}else if(2===e)C.push(t),$(E);else if(3===e){let e=C.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]=g}function x(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var O=new Map;function M(){for(let e of O.values())e.forEach(e=>{e.count=0})}function A(e){let t=b(null);null!=t.current&&(t.current.count+=1),S(()=>{if(null==t.current){let n,r={count:0};null==(n=O.get(e))&&(n=new Set,O.set(e,n)),n.add(r),t.current=r}return()=>{var n;let r;null!==t.current&&(n=t.current,null!=(r=O.get(e))&&r.delete(n))}})}var T=new Set;function j(e,t,n,r,l,o){function a(e,t,a,c){let i=`${r}:${o} [${l}] ${n}${a} changed from ${e} to ${t} at depth ${c}`;T.has(i)||(T.add(i),console.error(i))}!function e(t,n,r,l){if(!(l>2)){if(t!==n)if(typeof t!=typeof n)a(`type ${typeof t}`,`type ${typeof n}`,r,l);else if("object"==typeof t){let o=Array.isArray(t),c=Array.isArray(n);if(null===t&&null!==n)a("null",`type ${typeof n}`,r,l);else if(null===n)a(`type ${typeof t}`,"null",r,l);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,l);else for(let[o,c]of t)n.has(o)?e(c,n.get(o),`${r}.get(${o})`,l+1):a(`Map instance with key ${o}`,`Map instance without key ${o}`,r,l);else a("Map instance","other value",r,l);else if(n instanceof Map)a("other value","Map instance",r,l);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,l);else for(let e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,l);else a("Set instance","other value",r,l);else if(n instanceof Set)a("other value","Set instance",r,l);else if(o||c)if(o!==c)a(`type ${o?"array":"object"}`,`type ${c?"array":"object"}`,r,l);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,l);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,l+1);else if(v(t)||v(n))v(t)!==v(n)?a(`type ${v(t)?"React element":"object"}`,`type ${v(n)?"React element":"object"}`,r,l):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,r,l):e(t.props,n.props,`[props of ${r}]`,l+1);else{for(let e in n)e in t||a(`object without key ${e}`,`object with key ${e}`,r,l);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,l+1):a(`object with key ${o}`,`object without key ${o}`,r,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,l):t!==n&&a(t,n,r,l)}}}(e,t,"",0)}},p(e,t,n){let r=new WeakMap,l=new WeakMap;function o(e,t,n){let o=t,a=n;if("object"==typeof o&&null!==o&&"$$typeof"in o&&o.$$typeof===Symbol.for("react.context")&&"Provider"in o&&(o=o.Provider),"function"==typeof o&&null!=a.ref&&!o.prototype?.isReactComponent){let t=o,n=r.get(e);n||(n=new WeakMap,r.set(e,n));let l=n.get(t);l||((l=e.forwardRef((e,n)=>t({...e,ref:n}))).displayName=t.displayName??t.name,n.set(t,l)),o=l}if("string"==typeof o&&"boolean"==typeof a.inert&&((a={...a}).inert?a.inert="":delete a.inert),"string"==typeof o)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in a&&(a={...a,[t]:a[e]},delete a[e]);return"string"==typeof o&&null!=a.ref&&(o=function(e,t){let n=l.get(e);n||(n=new Map,l.set(e,n));let r=n.get(t);if(r)return r;let o=e.forwardRef((n,r)=>{let l=e.useRef(null);if(!l.current||l.current.original!==r){let e;l.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let n=r(t);e="function"==typeof n?n:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...n,ref:l.current.callback})});return o.displayName=`CanvasHost(${t})`,n.set(t,o),o}(e,o)),{type:o,props:a}}function a(e){let t=(t,n,r)=>{let l=o(e,t,n??{});return e.createElement(l.type,void 0===r?l.props:{...l.props,key:r})};return{jsx:t,jsxs:(t,n,r)=>{let l=o(e,t,n??{}),{children:a,...c}=l.props;return e.createElement(l.type,void 0===r?c:{...c,key:r},...Array.isArray(a)?a:[a])},jsxDEV:t,Fragment:e.Fragment}}function c(e){return{...e,createElement:(t,n,...r)=>{let l=o(e,t,n??{});return e.createElement(l.type,l.props,...r)},cloneElement:(t,n,...r)=>{let l=e.cloneElement(t,n??void 0,...r),a=l.ref,c=o(e,l.type,{...l.props,ref:a});return c.type===l.type&&"string"!=typeof l.type?l:e.createElement(c.type,{...c.props,key:l.key})}}}n.d(t,{MA:()=>a,YJ:()=>c})},C(e,t,n){n.r(t);let r=(0,n("p").YJ)(window.React),{Children:l,Component:o,Fragment:a,Profiler:c,PureComponent:i,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u,act:m,cloneElement:h,createContext:f,createElement:p,createFactory:y,createRef:_,forwardRef:b,isValidElement:S,lazy:v,memo:w,startTransition:g,unstable_act:R,useCallback:k,useContext:E,useDebugValue:$,useDeferredValue:C,useEffect:N,useId:D,useImperativeHandle:x,useInsertionEffect:O,useLayoutEffect:M,useMemo:A,useReducer:T,useRef:j,useState:I,useSyncExternalStore:W,useTransition:P,version:L,use:V}=r;n.d(t,{},{Children:l,Component:o,Fragment:a,Profiler:c,PureComponent:i,StrictMode:s,Suspense:d,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:u,act:m,cloneElement:h,createContext:f,createElement:p,createFactory:y,createRef:_,default:r,forwardRef:b,isValidElement:S,lazy:v,memo:w,startTransition:g,unstable_act:R,use:V,useCallback:k,useContext:E,useDebugValue:$,useDeferredValue:C,useEffect:N,useId:D,useImperativeHandle:x,useInsertionEffect:O,useLayoutEffect:M,useMemo:A,useReducer:T,useRef:j,useState:I,useSyncExternalStore:W,useTransition:P,version:L})}},t={};function n(r){var l=t[r];if(void 0!==l)return l.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t,r)=>{var l=(t,r)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[r]:t[l]})};l(t,"get"),l(r,"value")},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:r,Fragment:l}=(0,n("p").MA)(window.React);var o=n("vD");let a=window.WallarmDS.Icons.Info,c=window.WallarmDS.Field,i=window.WallarmDS.FieldDescription,s=window.WallarmDS.FieldLabel,d=window.WallarmDS.HStack,u=window.WallarmDS.VStack,m=window.WallarmDS.Tooltip,h=window.WallarmDS.TooltipContent,f=window.WallarmDS.TooltipTrigger,p=window.WallarmDS.Checkbox,y=window.WallarmDS.CheckboxDescription,_=window.WallarmDS.CheckboxGroup,b=window.WallarmDS.CheckboxIndicator,S=window.WallarmDS.CheckboxLabel,v={title:"Inputs/Checkbox",component:p,subcomponents:{CheckboxGroup:_,CheckboxIndicator:b,CheckboxLabel:S,CheckboxDescription:y},parameters:{layout:"centered",docs:{description:{component:"Collects any number of choices from a limited set, or turns a single option on or off — reach for `Radio` when only one choice is allowed, and `Switch` when the change takes effect immediately instead of on submit. Past roughly ten options, a `Select` reads better than a long column of boxes."}}}};var w=n("C");let g=[{name:"Basic",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{"data-testid":"checkbox",children:[e(b,{}),e(S,{children:"Accept terms and conditions"})]}),r[0]=n):n=r[0],n},meta:v},{name:"Checked",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{checked:!0,children:[e(b,{}),e(S,{children:"Accept terms and conditions"})]}),r[0]=n):n=r[0],n},meta:v},{name:"Indeterminate",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{checked:"indeterminate",children:[e(b,{}),e(S,{children:"Accept terms and conditions"})]}),r[0]=n):n=r[0],n},meta:v},{name:"Disabled",story:()=>{let n,r,l,a=(0,o.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{disabled:!0,children:[e(b,{}),e(S,{children:"Accept terms and conditions"})]}),a[0]=n):n=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(p,{checked:!0,disabled:!0,children:[e(b,{}),e(S,{children:"Accept terms and conditions"})]}),a[1]=r):r=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(u,{children:[n,r,t(p,{checked:"indeterminate",disabled:!0,children:[e(b,{}),e(S,{children:"Accept terms and conditions"})]})]}),a[2]=l):l=a[2],l},meta:v},{name:"WithDescription",story:()=>{let n,r,l=(0,o.c)(2);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=e(b,{}),l[0]=n):n=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(p,{children:[n,t(S,{children:["Accept terms and conditions",t(m,{children:[e(f,{children:e(a,{})}),e(h,{children:"Additional information"})]})]}),e(y,{children:"By clicking this checkbox, you agree to the terms and conditions."})]}),l[1]=r):r=l[1],r},meta:v},{name:"Group",story:()=>{let n,r,l,a,c,i=(0,o.c)(5);return i[0]===Symbol.for("react.memo_cache_sentinel")?(n=["vue"],i[0]=n):n=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(p,{value:"react",children:[e(b,{}),e(S,{children:"React"})]}),i[1]=r):r=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(l=t(p,{value:"solid",children:[e(b,{}),e(S,{children:"Solid"})]}),i[2]=l):l=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(a=t(p,{value:"vue",children:[e(b,{}),e(S,{children:"Vue"})]}),i[3]=a):a=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(c=t(_,{name:"framework",defaultValue:n,children:[r,l,a,t(p,{value:"svelte",children:[e(b,{}),e(S,{children:"Svelte"})]})]}),i[4]=c):c=i[4],c},meta:v},{name:"Card",story:()=>{let n,r,l,c,i,s,d,u=(0,o.c)(7);return u[0]===Symbol.for("react.memo_cache_sentinel")?(n=["vue","angular"],u[0]=n):n=u[0],u[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(p,{value:"react",children:[e(b,{}),e(S,{children:"React"}),e(y,{children:"By clicking this checkbox, you agree to the terms and conditions."})]}),u[1]=r):r=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(l=e(b,{}),u[2]=l):l=u[2],u[3]===Symbol.for("react.memo_cache_sentinel")?(c=t(p,{value:"solid",children:[l,t(S,{children:["Solid",t(m,{children:[e(f,{children:e(a,{})}),e(h,{children:"Additional information"})]})]}),e(y,{children:"By clicking this checkbox, you agree to the terms and conditions."})]}),u[3]=c):c=u[3],u[4]===Symbol.for("react.memo_cache_sentinel")?(i=t(p,{value:"vue",children:[e(b,{}),e(S,{children:"Vue"}),e(y,{children:"By clicking this checkbox, you agree to the terms and conditions."})]}),u[4]=i):i=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(s=t(p,{value:"svelte",disabled:!0,children:[e(b,{}),e(S,{children:"Svelte"}),e(y,{children:"By clicking this checkbox, you agree to the terms and conditions."})]}),u[5]=s):s=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(d=t(_,{variant:"card",name:"framework",defaultValue:n,children:[r,c,i,s,t(p,{value:"angular",disabled:!0,children:[e(b,{}),e(S,{children:"Angular"}),e(y,{children:"By clicking this checkbox, you agree to the terms and conditions."})]})]}),u[6]=d):d=u[6],d},meta:v},{name:"FormField",story:()=>{let n,r,l,u,y,v,w,g,R,k,E,$,C,N,D=(0,o.c)(14);return D[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(s,{children:["Label"," ",t(m,{children:[e(f,{children:e(a,{})}),e(h,{children:"Additional information"})]})]}),r=e(i,{children:"This is an input description."}),D[0]=n,D[1]=r):(n=D[0],r=D[1]),D[2]===Symbol.for("react.memo_cache_sentinel")?(l=["vue"],D[2]=l):l=D[2],D[3]===Symbol.for("react.memo_cache_sentinel")?(u=t(p,{value:"react",children:[e(b,{}),e(S,{children:"React"})]}),D[3]=u):u=D[3],D[4]===Symbol.for("react.memo_cache_sentinel")?(y=t(p,{value:"solid",children:[e(b,{}),e(S,{children:"Solid"})]}),D[4]=y):y=D[4],D[5]===Symbol.for("react.memo_cache_sentinel")?(v=t(p,{value:"vue",children:[e(b,{}),e(S,{children:"Vue"})]}),D[5]=v):v=D[5],D[6]===Symbol.for("react.memo_cache_sentinel")?(w=t(c,{children:[n,r,t(_,{name:"framework",defaultValue:l,children:[u,y,v,t(p,{value:"svelte",children:[e(b,{}),e(S,{children:"Svelte"})]})]})]}),D[6]=w):w=D[6],D[7]===Symbol.for("react.memo_cache_sentinel")?(g=t(s,{children:["Label",t(m,{children:[e(f,{children:e(a,{})}),e(h,{children:"Additional information"})]})]}),R=e(i,{children:"This is an input description."}),D[7]=g,D[8]=R):(g=D[7],R=D[8]),D[9]===Symbol.for("react.memo_cache_sentinel")?(k=["vue"],D[9]=k):k=D[9],D[10]===Symbol.for("react.memo_cache_sentinel")?(E=t(p,{value:"react",children:[e(b,{}),e(S,{children:"React"})]}),D[10]=E):E=D[10],D[11]===Symbol.for("react.memo_cache_sentinel")?($=t(p,{value:"solid",children:[e(b,{}),e(S,{children:"Solid"})]}),D[11]=$):$=D[11],D[12]===Symbol.for("react.memo_cache_sentinel")?(C=t(p,{value:"vue",children:[e(b,{}),e(S,{children:"Vue"})]}),D[12]=C):C=D[12],D[13]===Symbol.for("react.memo_cache_sentinel")?(N=t(d,{align:"start",gap:40,children:[w,t(c,{children:[g,R,t(_,{variant:"card",name:"framework",defaultValue:k,children:[E,$,C,t(p,{value:"svelte",children:[e(b,{}),e(S,{children:"Svelte"})]})]})]})]}),D[13]=N):N=D[13],N},meta:v}];function R({entry:e}){let{story:t,meta:n}=e,r={...n.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,o=()=>w.default.createElement(l,r),a={args:r,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=o;o=()=>e(t,a)}return w.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},w.default.createElement("h2",{className:"text-sm mb-12"},e.name),w.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(w.default.createElement(window.WallarmDS.Root,null,g.map((e,t)=>w.default.createElement(R,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
Geist Mono for code, identifiers and machine-readable values — anything read as literal rather than as prose. This ramp is for inline fragments; multi-line blocks are `CodeSnippet`, drawn with looser leading so stacked lines breathe.
|
|
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
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
10
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
11
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
12
|
+
| `id` | `string \| undefined` | no | — | |
|
|
13
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
14
|
+
| `title` | `string \| undefined` | no | — | |
|
|
15
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
16
|
+
| `color` | `"primary" \| "primary-alt" \| "secondary" \| "destructive"` | no | `primary` | |
|
|
17
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
18
|
+
| `size` | `"xs" \| "s" \| "m" \| "l"` | no | `l` | |
|
|
19
|
+
| `weight` | `"light" \| "regular" \| "medium" \| "bold"` | no | `regular` | |
|
|
20
|
+
| `truncate` | `boolean` | no | `false` | |
|
|
21
|
+
| `italic` | `boolean` | no | `false` | |
|
|
22
|
+
| `as-child` | `boolean \| undefined` | no | `false` | |
|
|
23
|
+
| `line-clamp` | `number \| undefined` | no | — | |
|
|
24
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
25
|
+
|
|
26
|
+
## Stories
|
|
27
|
+
|
|
28
|
+
### Basic
|
|
29
|
+
|
|
30
|
+
An inline fragment in running text. It keeps the surrounding line height, so a paragraph
|
|
31
|
+
containing code does not open up.
|
|
32
|
+
|
|
33
|
+
Source: Code/Code.stories.tsx#Basic
|
|
34
|
+
|
|
35
|
+
### Sizes
|
|
36
|
+
|
|
37
|
+
The ramp. Never add letter-spacing to it — monospace depends on a fixed character cell, and
|
|
38
|
+
tracking breaks alignment in diffs, terminal output and anything measured in `ch`.
|
|
39
|
+
|
|
40
|
+
Source: Code/Code.stories.tsx#Sizes
|
|
41
|
+
|
|
42
|
+
### Weights
|
|
43
|
+
|
|
44
|
+
Weight for emphasis within code, which buys less here than elsewhere: in a monospace run,
|
|
45
|
+
bold is harder to spot than colour.
|
|
46
|
+
|
|
47
|
+
Source: Code/Code.stories.tsx#Weights
|
|
48
|
+
|
|
49
|
+
### Colors
|
|
50
|
+
|
|
51
|
+
The same de-emphasis ladder as `Text`, for dimming part of an identifier rather than all of
|
|
52
|
+
it.
|
|
53
|
+
|
|
54
|
+
Source: Code/Code.stories.tsx#Colors
|
|
55
|
+
|
|
56
|
+
### Multiline
|
|
57
|
+
|
|
58
|
+
What happens when code wraps in this ramp — tight leading, because it is drawn for one line.
|
|
59
|
+
Past a couple of lines, reach for `CodeSnippet`.
|
|
60
|
+
|
|
61
|
+
Source: Code/Code.stories.tsx#Multiline
|
|
62
|
+
|
|
63
|
+
### Italic
|
|
64
|
+
|
|
65
|
+
`italic` is a modifier rather than a step, pairing with any size and weight. Conventionally
|
|
66
|
+
it marks a placeholder the reader is meant to replace.
|
|
67
|
+
|
|
68
|
+
Source: Code/Code.stories.tsx#Italic
|
|
69
|
+
|
|
70
|
+
### AsChild
|
|
71
|
+
|
|
72
|
+
`asChild` puts the monospace styling on your own element, for when the tag carries meaning
|
|
73
|
+
the styling should not override.
|
|
74
|
+
|
|
75
|
+
Source: Code/Code.stories.tsx#AsChild
|
|
76
|
+
|
|
77
|
+
## Story sources
|
|
78
|
+
|
|
79
|
+
### Code/Code.stories.tsx
|
|
80
|
+
|
|
81
|
+
```tsx
|
|
82
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
83
|
+
import { VStack } from '../Stack';
|
|
84
|
+
import { Text } from '../Text';
|
|
85
|
+
import { Code } from './Code';
|
|
86
|
+
|
|
87
|
+
const DESCRIPTION = [
|
|
88
|
+
'Geist Mono for code, identifiers and machine-readable values — anything read as literal rather than as prose.',
|
|
89
|
+
'This ramp is for inline fragments; multi-line blocks are `CodeSnippet`, drawn with looser leading so stacked lines breathe.',
|
|
90
|
+
].join(' ');
|
|
91
|
+
|
|
92
|
+
const meta = {
|
|
93
|
+
title: 'Typography/Code',
|
|
94
|
+
component: Code,
|
|
95
|
+
parameters: {
|
|
96
|
+
layout: 'centered',
|
|
97
|
+
docs: {
|
|
98
|
+
description: {
|
|
99
|
+
component: DESCRIPTION,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
args: {},
|
|
105
|
+
argTypes: {
|
|
106
|
+
size: {
|
|
107
|
+
control: 'select',
|
|
108
|
+
options: ['xs', 's', 'm', 'l'],
|
|
109
|
+
},
|
|
110
|
+
weight: {
|
|
111
|
+
control: 'select',
|
|
112
|
+
options: ['light', 'regular', 'medium', 'bold'],
|
|
113
|
+
},
|
|
114
|
+
asChild: {
|
|
115
|
+
control: 'boolean',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
} satisfies Meta<typeof Code>;
|
|
119
|
+
|
|
120
|
+
export default meta;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* An inline fragment in running text. It keeps the surrounding line height, so a paragraph
|
|
124
|
+
* containing code does not open up.
|
|
125
|
+
*/
|
|
126
|
+
export const Basic: StoryFn<typeof meta> = ({ ...args }) => (
|
|
127
|
+
<Code {...args}>const example = 'code'</Code>
|
|
128
|
+
);
|
|
129
|
+
|
|
130
|
+
/** Size / leading in px, measured from the rendered component. */
|
|
131
|
+
const SIZES = [
|
|
132
|
+
{ size: 'xs', metrics: '10 / 12' },
|
|
133
|
+
{ size: 's', metrics: '12 / 16' },
|
|
134
|
+
{ size: 'm', metrics: '14 / 20' },
|
|
135
|
+
{ size: 'l', metrics: '16 / 20' },
|
|
136
|
+
] as const;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The ramp. Never add letter-spacing to it — monospace depends on a fixed character cell, and
|
|
140
|
+
* tracking breaks alignment in diffs, terminal output and anything measured in `ch`.
|
|
141
|
+
*/
|
|
142
|
+
export const Sizes: StoryFn<typeof meta> = ({ ...args }) => (
|
|
143
|
+
<VStack gap={24} align='start'>
|
|
144
|
+
{SIZES.map(({ size, metrics }) => (
|
|
145
|
+
<VStack key={size} gap={4} align='start'>
|
|
146
|
+
<Text size='xs' color='secondary'>
|
|
147
|
+
size='{size}' · {metrics}
|
|
148
|
+
</Text>
|
|
149
|
+
<Code {...args} size={size}>
|
|
150
|
+
console.log('hello world');
|
|
151
|
+
</Code>
|
|
152
|
+
</VStack>
|
|
153
|
+
))}
|
|
154
|
+
</VStack>
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Weight for emphasis within code, which buys less here than elsewhere: in a monospace run,
|
|
159
|
+
* bold is harder to spot than colour.
|
|
160
|
+
*/
|
|
161
|
+
export const Weights: StoryFn<typeof meta> = ({ ...args }) => (
|
|
162
|
+
<VStack align='start'>
|
|
163
|
+
<Code {...args} size='m' weight='light'>
|
|
164
|
+
const light = 'Light weight code';
|
|
165
|
+
</Code>
|
|
166
|
+
<Code {...args} size='m' weight='regular'>
|
|
167
|
+
const regular = 'Regular weight code';
|
|
168
|
+
</Code>
|
|
169
|
+
<Code {...args} size='m' weight='medium'>
|
|
170
|
+
const medium = 'Medium weight code';
|
|
171
|
+
</Code>
|
|
172
|
+
<Code {...args} size='m' weight='bold'>
|
|
173
|
+
const bold = 'Bold weight code';
|
|
174
|
+
</Code>
|
|
175
|
+
</VStack>
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The same de-emphasis ladder as `Text`, for dimming part of an identifier rather than all of
|
|
180
|
+
* it.
|
|
181
|
+
*/
|
|
182
|
+
export const Colors: StoryFn<typeof meta> = ({ ...args }) => (
|
|
183
|
+
<VStack align='start'>
|
|
184
|
+
<Code {...args} color='primary'>
|
|
185
|
+
const light = 'Primary color code';
|
|
186
|
+
</Code>
|
|
187
|
+
<Code {...args} color='secondary'>
|
|
188
|
+
const regular = 'Secondary color code';
|
|
189
|
+
</Code>
|
|
190
|
+
</VStack>
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* What happens when code wraps in this ramp — tight leading, because it is drawn for one line.
|
|
195
|
+
* Past a couple of lines, reach for `CodeSnippet`.
|
|
196
|
+
*/
|
|
197
|
+
export const Multiline: StoryFn<typeof meta> = ({ ...args }) => (
|
|
198
|
+
<Code {...args} size='m'>
|
|
199
|
+
{`function example() {
|
|
200
|
+
const message = 'Hello, World!';
|
|
201
|
+
console.log(message);
|
|
202
|
+
return message;
|
|
203
|
+
}`}
|
|
204
|
+
</Code>
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* `italic` is a modifier rather than a step, pairing with any size and weight. Conventionally
|
|
209
|
+
* it marks a placeholder the reader is meant to replace.
|
|
210
|
+
*/
|
|
211
|
+
export const Italic: StoryFn<typeof meta> = ({ ...args }) => (
|
|
212
|
+
<VStack align='start'>
|
|
213
|
+
<Code {...args} size='s' italic>
|
|
214
|
+
{'// Italic small code comment'}
|
|
215
|
+
</Code>
|
|
216
|
+
<Code {...args} size='m' italic>
|
|
217
|
+
{'// Italic medium code comment'}
|
|
218
|
+
</Code>
|
|
219
|
+
<Code {...args} size='l' italic>
|
|
220
|
+
{'// Italic large code comment'}
|
|
221
|
+
</Code>
|
|
222
|
+
<Code {...args} size='s' weight='bold' italic>
|
|
223
|
+
{'// Bold italic small'}
|
|
224
|
+
</Code>
|
|
225
|
+
<Code {...args} size='m' weight='bold' italic>
|
|
226
|
+
{'// Bold italic medium'}
|
|
227
|
+
</Code>
|
|
228
|
+
<Code {...args} size='l' weight='bold' italic>
|
|
229
|
+
{'// Bold italic large'}
|
|
230
|
+
</Code>
|
|
231
|
+
</VStack>
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* `asChild` puts the monospace styling on your own element, for when the tag carries meaning
|
|
236
|
+
* the styling should not override.
|
|
237
|
+
*/
|
|
238
|
+
export const AsChild: StoryFn<typeof meta> = ({ ...args }) => (
|
|
239
|
+
<Code {...args} size='m' weight='medium' asChild>
|
|
240
|
+
<code>{'<CustomCodeElement />'}</code>
|
|
241
|
+
</Code>
|
|
242
|
+
);
|
|
243
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,r){let n,l;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var o,a,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of u(t))f.call(e,l)||l===r||c(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},m={},h={$dispatcherGuard:()=>M,$makeReadOnly:()=>O,$reset:()=>z,$structuralCheck:()=>D,c:()=>v,clearRenderCounterRegistry:()=>x,renderCounterRegistry:()=>k,useRenderCounter:()=>T};for(var y in h)c(m,y,{get:h[y],enumerable:!0});e.exports=p(c({},"__esModule",{value:!0}),m);var g=(l=null!=(n=r("C"))?i(d(n)):{},p(n&&n.__esModule?l:c(l,"default",{value:n,enumerable:!0}),n)),{useRef:w,useEffect:R,isValidElement:E}=g,b=null!=(o=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?o:g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$=Symbol.for("react.memo_cache_sentinel"),v="function"==typeof(null==(a=g.__COMPILER_RUNTIME)?void 0:a.c)?g.__COMPILER_RUNTIME.c:function(e){return g.useMemo(()=>{let t=Array(e);for(let r=0;r<e;r++)t[r]=$;return t[$]=!0,t},[])},_={};["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]=()=>{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 S=null;function C(e){return b.ReactCurrentDispatcher.current=e,b.ReactCurrentDispatcher.current}_.useMemoCache=e=>{if(null!=S)return S.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var N=[];function M(e){let t=b.ReactCurrentDispatcher.current;if(0===e){if(N.push(t),1===N.length&&(S=t),t===_)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");C(_)}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&&(S=null),C(e)}else if(2===e)N.push(t),C(S);else if(3===e){let e=N.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");C(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function z(e){for(let t=0;t<e.length;t++)e[t]=$}function O(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var k=new Map;function x(){for(let e of k.values())e.forEach(e=>{e.count=0})}function T(e){let t=w(null);null!=t.current&&(t.current.count+=1),R(()=>{if(null==t.current){let r,n={count:0};null==(r=k.get(e))&&(r=new Set,k.set(e,r)),r.add(n),t.current=n}return()=>{var r;let n;null!==t.current&&(r=t.current,null!=(n=k.get(e))&&n.delete(r))}})}var j=new Set;function D(e,t,r,n,l,o){function a(e,t,a,i){let c=`${n}:${o} [${l}] ${r}${a} changed from ${e} to ${t} at depth ${i}`;j.has(c)||(j.add(c),console.error(c))}!function e(t,r,n,l){if(!(l>2)){if(t!==r)if(typeof t!=typeof r)a(`type ${typeof t}`,`type ${typeof r}`,n,l);else if("object"==typeof t){let o=Array.isArray(t),i=Array.isArray(r);if(null===t&&null!==r)a("null",`type ${typeof r}`,n,l);else if(null===r)a(`type ${typeof t}`,"null",n,l);else if(t instanceof Map)if(r instanceof Map)if(t.size!==r.size)a(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,l);else for(let[o,i]of t)r.has(o)?e(i,r.get(o),`${n}.get(${o})`,l+1):a(`Map instance with key ${o}`,`Map instance without key ${o}`,n,l);else a("Map instance","other value",n,l);else if(r instanceof Map)a("other value","Map instance",n,l);else if(t instanceof Set)if(r instanceof Set)if(t.size!==r.size)a(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,l);else for(let e of r)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,n,l);else a("Set instance","other value",n,l);else if(r instanceof Set)a("other value","Set instance",n,l);else if(o||i)if(o!==i)a(`type ${o?"array":"object"}`,`type ${i?"array":"object"}`,n,l);else if(t.length!==r.length)a(`array with length ${t.length}`,`array with length ${r.length}`,n,l);else for(let o=0;o<t.length;o++)e(t[o],r[o],`${n}[${o}]`,l+1);else if(E(t)||E(r))E(t)!==E(r)?a(`type ${E(t)?"React element":"object"}`,`type ${E(r)?"React element":"object"}`,n,l):t.type!==r.type?a(`React element of type ${t.type}`,`React element of type ${r.type}`,n,l):e(t.props,r.props,`[props of ${n}]`,l+1);else{for(let e in r)e in t||a(`object without key ${e}`,`object with key ${e}`,n,l);for(let o in t)o in r?e(t[o],r[o],`${n}.${o}`,l+1):a(`object with key ${o}`,`object without key ${o}`,n,l)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&a(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,l):t!==r&&a(t,r,n,l)}}}(e,t,"",0)}},p(e,t,r){let n=new WeakMap,l=new WeakMap;function o(e,t,r){let o=t,a=r;if("object"==typeof o&&null!==o&&"$$typeof"in o&&o.$$typeof===Symbol.for("react.context")&&"Provider"in o&&(o=o.Provider),"function"==typeof o&&null!=a.ref&&!o.prototype?.isReactComponent){let t=o,r=n.get(e);r||(r=new WeakMap,n.set(e,r));let l=r.get(t);l||((l=e.forwardRef((e,r)=>t({...e,ref:r}))).displayName=t.displayName??t.name,r.set(t,l)),o=l}if("string"==typeof o&&"boolean"==typeof a.inert&&((a={...a}).inert?a.inert="":delete a.inert),"string"==typeof o)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in a&&(a={...a,[t]:a[e]},delete a[e]);return"string"==typeof o&&null!=a.ref&&(o=function(e,t){let r=l.get(e);r||(r=new Map,l.set(e,r));let n=r.get(t);if(n)return n;let o=e.forwardRef((r,n)=>{let l=e.useRef(null);if(!l.current||l.current.original!==n){let e;l.current={original:n,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof n){let r=n(t);e="function"==typeof r?r:void 0}else n&&(n.current=t)}}}return e.createElement(t,{...r,ref:l.current.callback})});return o.displayName=`CanvasHost(${t})`,r.set(t,o),o}(e,o)),{type:o,props:a}}function a(e){let t=(t,r,n)=>{let l=o(e,t,r??{});return e.createElement(l.type,void 0===n?l.props:{...l.props,key:n})};return{jsx:t,jsxs:(t,r,n)=>{let l=o(e,t,r??{}),{children:a,...i}=l.props;return e.createElement(l.type,void 0===n?i:{...i,key:n},...Array.isArray(a)?a:[a])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,r,...n)=>{let l=o(e,t,r??{});return e.createElement(l.type,l.props,...n)},cloneElement:(t,r,...n)=>{let l=e.cloneElement(t,r??void 0,...n),a=l.ref,i=o(e,l.type,{...l.props,ref:a});return i.type===l.type&&"string"!=typeof l.type?l:e.createElement(i.type,{...i.props,key:l.key})}}}r.d(t,{MA:()=>a,YJ:()=>i})},C(e,t,r){r.r(t);let n=(0,r("p").YJ)(window.React),{Children:l,Component:o,Fragment:a,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:f,cloneElement:p,createContext:m,createElement:h,createFactory:y,createRef:g,forwardRef:w,isValidElement:R,lazy:E,memo:b,startTransition:$,unstable_act:v,useCallback:_,useContext:S,useDebugValue:C,useDeferredValue:N,useEffect:M,useId:z,useImperativeHandle:O,useInsertionEffect:k,useLayoutEffect:x,useMemo:T,useReducer:j,useRef:D,useState:I,useSyncExternalStore:A,useTransition:P,version:L,use:W}=n;r.d(t,{},{Children:l,Component:o,Fragment:a,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:f,cloneElement:p,createContext:m,createElement:h,createFactory:y,createRef:g,default:n,forwardRef:w,isValidElement:R,lazy:E,memo:b,startTransition:$,unstable_act:v,use:W,useCallback:_,useContext:S,useDebugValue:C,useDeferredValue:N,useEffect:M,useId:z,useImperativeHandle:O,useInsertionEffect:k,useLayoutEffect:x,useMemo:T,useReducer:j,useRef:D,useState:I,useSyncExternalStore:A,useTransition:P,version:L})}},t={};function r(n){var l=t[n];if(void 0!==l)return l.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=(e,t,n)=>{var l=(t,n)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,[n]:t[l]})};l(t,"get"),l(n,"value")},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:n,Fragment:l}=(0,r("p").MA)(window.React);var o=r("vD");let a=window.WallarmDS.VStack,i=window.WallarmDS.Text,c=window.WallarmDS.Code,s={title:"Typography/Code",component:c,parameters:{layout:"centered",docs:{description:{component:"Geist Mono for code, identifiers and machine-readable values — anything read as literal rather than as prose. This ramp is for inline fragments; multi-line blocks are `CodeSnippet`, drawn with looser leading so stacked lines breathe."}}},args:{},argTypes:{size:{control:"select",options:["xs","s","m","l"]},weight:{control:"select",options:["light","regular","medium","bold"]},asChild:{control:"boolean"}}},u=[{size:"xs",metrics:"10 / 12"},{size:"s",metrics:"12 / 16"},{size:"m",metrics:"14 / 20"},{size:"l",metrics:"16 / 20"}];var d=r("C");let f=[{name:"Basic",story:t=>{let r,n,l=(0,o.c)(4);return l[0]!==t?({...r}=t,l[0]=t,l[1]=r):r=l[1],l[2]!==r?(n=e(c,{...r,children:"const example = 'code'"}),l[2]=r,l[3]=n):n=l[3],n},meta:s},{name:"Sizes",story:r=>{let n,l,s,d=(0,o.c)(6);return d[0]!==r?({...n}=r,d[0]=r,d[1]=n):n=d[1],d[2]!==n?(l=u.map(r=>{let{size:l,metrics:o}=r;return t(a,{gap:4,align:"start",children:[t(i,{size:"xs",color:"secondary",children:["size='",l,"' · ",o]}),e(c,{...n,size:l,children:"console.log('hello world');"})]},l)}),d[2]=n,d[3]=l):l=d[3],d[4]!==l?(s=e(a,{gap:24,align:"start",children:l}),d[4]=l,d[5]=s):s=d[5],s},meta:s},{name:"Weights",story:r=>{let n,l,i=(0,o.c)(4);return i[0]!==r?({...n}=r,i[0]=r,i[1]=n):n=i[1],i[2]!==n?(l=t(a,{align:"start",children:[e(c,{...n,size:"m",weight:"light",children:"const light = 'Light weight code';"}),e(c,{...n,size:"m",weight:"regular",children:"const regular = 'Regular weight code';"}),e(c,{...n,size:"m",weight:"medium",children:"const medium = 'Medium weight code';"}),e(c,{...n,size:"m",weight:"bold",children:"const bold = 'Bold weight code';"})]}),i[2]=n,i[3]=l):l=i[3],l},meta:s},{name:"Colors",story:r=>{let n,l,i=(0,o.c)(4);return i[0]!==r?({...n}=r,i[0]=r,i[1]=n):n=i[1],i[2]!==n?(l=t(a,{align:"start",children:[e(c,{...n,color:"primary",children:"const light = 'Primary color code';"}),e(c,{...n,color:"secondary",children:"const regular = 'Secondary color code';"})]}),i[2]=n,i[3]=l):l=i[3],l},meta:s},{name:"Multiline",story:t=>{let r,n,l=(0,o.c)(4);return l[0]!==t?({...r}=t,l[0]=t,l[1]=r):r=l[1],l[2]!==r?(n=e(c,{...r,size:"m",children:"function example() {\n const message = 'Hello, World!';\n console.log(message);\n return message;\n}"}),l[2]=r,l[3]=n):n=l[3],n},meta:s},{name:"Italic",story:r=>{let n,l,i=(0,o.c)(4);return i[0]!==r?({...n}=r,i[0]=r,i[1]=n):n=i[1],i[2]!==n?(l=t(a,{align:"start",children:[e(c,{...n,size:"s",italic:!0,children:"// Italic small code comment"}),e(c,{...n,size:"m",italic:!0,children:"// Italic medium code comment"}),e(c,{...n,size:"l",italic:!0,children:"// Italic large code comment"}),e(c,{...n,size:"s",weight:"bold",italic:!0,children:"// Bold italic small"}),e(c,{...n,size:"m",weight:"bold",italic:!0,children:"// Bold italic medium"}),e(c,{...n,size:"l",weight:"bold",italic:!0,children:"// Bold italic large"})]}),i[2]=n,i[3]=l):l=i[3],l},meta:s},{name:"AsChild",story:t=>{let r,n,l,a=(0,o.c)(5);return a[0]!==t?({...r}=t,a[0]=t,a[1]=r):r=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n=e("code",{children:"<CustomCodeElement />"}),a[2]=n):n=a[2],a[3]!==r?(l=e(c,{...r,size:"m",weight:"medium",asChild:!0,children:n}),a[3]=r,a[4]=l):l=a[4],l},meta:s}];function p({entry:e}){let{story:t,meta:r}=e,n={...r.args,...t.args},l="function"==typeof t||t.$$typeof?t:t.render||r.render||r.component,o=()=>d.default.createElement(l,n),a={args:n,globals:{theme:"light"},parameters:{...r.parameters,...t.parameters},viewMode:"story"};for(let e of[...r.decorators||[],...t.decorators||[]].reverse()){let t=o;o=()=>e(t,a)}return d.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},d.default.createElement("h2",{className:"text-sm mb-12"},e.name),d.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(d.default.createElement(window.WallarmDS.Root,null,f.map((e,t)=>d.default.createElement(p,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
An editable code surface that is visually the same component as `CodeSnippet` and reuses its header, tabs, actions and show-more — reach for `CodeSnippet` whenever the code is only read, since a page that never renders `CodeEditorContent` never loads the editor engine. Colours come from the same `CodeSnippetAdapterProvider` (plain text without one), so a read-only editor matches the snippet except for a native thin scrollbar, a caret and selection drawn by the editor, and an HTTP JSON body that stays coloured when `Content-Type` has parameters or the body has blank lines. The adapter re-tokenizes the whole document after each pause in typing, which stays within a frame up to about 2 000 lines with Prism; longer documents still edit smoothly, their colours just settle a moment later. Like the snippet, the editor sits inside a `display: contents` wrapper that keeps it mounted across fullscreen, so space editors with their own `className` (for example `mt-16`) or a `gap` on the parent — not `space-*`, `divide-*` or child selectors on the parent. `lines`, `folds`, `completions` and `schema` are compared by identity, so memoise them or hoist them to module constants — a new value on every render reconfigures the editor. Autocomplete suggests language keywords and words already in the document for every language; HTTP methods and headers and JSON Schema values have their own contextual suggestions. Pass `completions` to add application-specific results. Syntax errors are best-effort: JSON reports the `JSON.parse` message, JavaScript and TypeScript use Babel, Lua uses luaparse (first error only), YAML and Python use their Lezer parsers, which still flag a few valid Python forms such as `lambda a, /, b` and parenthesised `with` items. `lines` and `folds` stay on their line numbers while typing; to keep a decoration on a piece of text, recompute it from `value` (for example `useMemo(() => linesFor(value), [value])`, or a `folds` function such as `getHttpFolds`). The editor injects `<style>` tags, so under a strict Content Security Policy pass `cspNonce`. Tab indents, so keyboard users leave with Escape, then Tab, or press Ctrl+M (Alt+Shift+M on macOS) to switch Tab between indenting and moving focus — point `aria-describedby` at text holding `CODE_EDITOR_KEYBOARD_HINT` to tell screen-reader users.
|
|
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
|
+
| `value` | `string \| undefined` | no | — | Controlled document |
|
|
10
|
+
| `default-value` | `string \| undefined` | no | — | Uncontrolled initial document (controlled vs uncontrolled is locked on first render) |
|
|
11
|
+
| `on-change` | `((value: string) => void) \| undefined` | no | — | Fired for user edits only, never for external `value` syncs |
|
|
12
|
+
| `language` | `CodeEditorLanguage \| undefined` | no | — | Passed verbatim to the syntax adapter; selects the structural parser |
|
|
13
|
+
| `document-id` | `string \| undefined` | no | — | Document identity: changing it swaps to that document's cached state (undo history, selection, folds). Requires a controlled `value`: when the id changes, `value` must already hold that document's text (an uncached id starts from `value`). In uncontrolled mode the new document would be seeded with the previous document's text. |
|
|
14
|
+
| `read-only` | `boolean \| undefined` | no | — | Non-editable and unfocusable content; text remains selectable, searchable and copyable |
|
|
15
|
+
| `starting-line-number` | `number \| undefined` | no | — | Offsets gutter numbers; `lines`, `folds`, `diagnostics` use absolute numbers |
|
|
16
|
+
| `lines` | `Record<number, LineConfig> \| undefined` | no | — | Per-line configuration keyed by absolute line number (static, see spec D6). Compared by identity: memoise it (or hoist it to a constant) — a new object every render reconfigures the lines and gutters on every render. |
|
|
17
|
+
| `folds` | `CodeEditorFolds \| undefined` | no | — | Fold regions, or a function re-run after edits; collapsed state is kept by `id`. Compared by identity: memoise the array or pass a stable function (e.g. `getHttpFolds`) — an inline array/arrow reconfigures folds on every render and bypasses the re-run debounce. |
|
|
18
|
+
| `wrap-lines` | `boolean` | no | `false` | Controlled line wrapping |
|
|
19
|
+
| `default-wrap-lines` | `boolean \| undefined` | no | — | Uncontrolled initial line wrapping |
|
|
20
|
+
| `on-wrap-lines-change` | `((wrap: boolean) => void) \| undefined` | no | — | Fired when the wrap button toggles wrapping |
|
|
21
|
+
| `max-lines` | `number \| undefined` | no | — | Height clamp in rows; auto-renders `CodeSnippetShowMoreButton` unless one is a direct child |
|
|
22
|
+
| `original` | `string \| undefined` | no | — | Enables diff mode against this text |
|
|
23
|
+
| `schema` | `JsonSchema \| undefined` | no | — | JSON Schema for the document (`json`) or the JSON body (`http`) |
|
|
24
|
+
| `completions` | `CodeEditorCompletionSource[] \| undefined` | no | — | Consumer completion sources, added after the built-in ones. Compared by identity: a new array reconfigures autocomplete and closes an open list, so keep it stable (module constant or `useMemo`). |
|
|
25
|
+
| `diagnostics` | `CodeEditorDiagnostic[] \| undefined` | no | — | External diagnostics, merged with syntax and schema ones |
|
|
26
|
+
| `on-diagnostics-change` | `((diagnostics: CodeEditorDiagnostic[]) => void) \| undefined` | no | — | Fired when the merged diagnostics change |
|
|
27
|
+
| `api-ref` | `Ref<CodeEditorApi> \| undefined` | no | — | Imperative handle |
|
|
28
|
+
| `csp-nonce` | `string \| undefined` | no | — | Nonce for the style tags the editor injects |
|
|
29
|
+
| `on-copy` | `((value: string) => void) \| undefined` | no | — | Fired by `CodeSnippetCopyButton` after a copy, with the current document |
|
|
30
|
+
| `title` | `string \| undefined` | no | — | |
|
|
31
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
32
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
33
|
+
| `id` | `string \| undefined` | no | — | |
|
|
34
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
35
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
36
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
37
|
+
| `size` | `"sm" \| "md" \| "lg"` | no | — | |
|
|
38
|
+
|
|
39
|
+
## Sub-components
|
|
40
|
+
|
|
41
|
+
- `WallarmDS.CodeEditorContent` — `CodeEditorContentProps` in the declaration bundle.
|
|
42
|
+
- `WallarmDS.CodeEditorRoot` — `CodeEditorRootProps` in the declaration bundle.
|
|
43
|
+
|
|
44
|
+
## Stories
|
|
45
|
+
|
|
46
|
+
### Default
|
|
47
|
+
|
|
48
|
+
A controlled editor: `value` plus `onChange`, like any input. With no adapter in scope the
|
|
49
|
+
text is plain, exactly as `CodeSnippet` renders it without a provider.
|
|
50
|
+
|
|
51
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Default
|
|
52
|
+
|
|
53
|
+
### WithHeader
|
|
54
|
+
|
|
55
|
+
The `CodeSnippet` header works unchanged: a title and the copy, wrap and fullscreen buttons.
|
|
56
|
+
Copy puts the edited value on the clipboard, and fullscreen keeps the undo history.
|
|
57
|
+
|
|
58
|
+
Source: CodeEditor/CodeEditor.stories.tsx#WithHeader
|
|
59
|
+
|
|
60
|
+
### FloatingActions
|
|
61
|
+
|
|
62
|
+
Without a header, `CodeSnippetActions` as a direct child floats over the top-right of the
|
|
63
|
+
editor, as it does over a snippet.
|
|
64
|
+
|
|
65
|
+
Source: CodeEditor/CodeEditor.stories.tsx#FloatingActions
|
|
66
|
+
|
|
67
|
+
### LineNumbersAndStartingLine
|
|
68
|
+
|
|
69
|
+
`lineNumbers` on `CodeEditorContent` is the equivalent of `CodeSnippetLineNumbers`, and
|
|
70
|
+
`startingLineNumber` renumbers the gutter for a fragment taken from a longer file.
|
|
71
|
+
|
|
72
|
+
Source: CodeEditor/CodeEditor.stories.tsx#LineNumbersAndStartingLine
|
|
73
|
+
|
|
74
|
+
### LineColorsAndPrefixes
|
|
75
|
+
|
|
76
|
+
`lines` uses the same `LineConfig` as CodeSnippet: seven semantic colours, text prefixes for a
|
|
77
|
+
hand-made diff, and ReactNode prefixes such as a tooltipped icon. Lines are static and tied
|
|
78
|
+
to line numbers, so they stay on their number while you type.
|
|
79
|
+
|
|
80
|
+
Source: CodeEditor/CodeEditor.stories.tsx#LineColorsAndPrefixes
|
|
81
|
+
|
|
82
|
+
### Ranges
|
|
83
|
+
|
|
84
|
+
`ranges` colours character offsets inside a line (start inclusive, end exclusive). The line
|
|
85
|
+
keeps its background, and only the range gets the colour.
|
|
86
|
+
|
|
87
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Ranges
|
|
88
|
+
|
|
89
|
+
### HttpRequestWithPrism
|
|
90
|
+
|
|
91
|
+
`language='http'` under Prism. The colours come from the adapter and the structure (start
|
|
92
|
+
line, headers, JSON body) comes from the editor's own HTTP grammar.
|
|
93
|
+
|
|
94
|
+
Source: CodeEditor/CodeEditor.stories.tsx#HttpRequestWithPrism
|
|
95
|
+
|
|
96
|
+
### HttpResponseWithShiki
|
|
97
|
+
|
|
98
|
+
The response side under Shiki. After an edit, highlighting is repainted in the background,
|
|
99
|
+
so for a moment you may see the previous colours mapped through your change.
|
|
100
|
+
|
|
101
|
+
Source: CodeEditor/CodeEditor.stories.tsx#HttpResponseWithShiki
|
|
102
|
+
|
|
103
|
+
### HttpFolds
|
|
104
|
+
|
|
105
|
+
`folds` as a function of the value: `getHttpFolds` runs again after edits, so adding a header
|
|
106
|
+
grows the headers fold. Collapsed state is kept by fold `id`. The second editor starts at
|
|
107
|
+
line 100, and the fold function gets the same offset.
|
|
108
|
+
|
|
109
|
+
Source: CodeEditor/CodeEditor.stories.tsx#HttpFolds
|
|
110
|
+
|
|
111
|
+
### ShowMore
|
|
112
|
+
|
|
113
|
+
`maxLines` limits the height, and the editor scrolls inside it (no rows are removed). The
|
|
114
|
+
button appears on its own when at least three lines are hidden. Render
|
|
115
|
+
`CodeSnippetShowMoreButton` yourself only to pass props to the real button.
|
|
116
|
+
|
|
117
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ShowMore
|
|
118
|
+
|
|
119
|
+
### Wrap
|
|
120
|
+
|
|
121
|
+
Wrapping can be uncontrolled (`defaultWrapLines`, driven by the wrap button) or controlled
|
|
122
|
+
(`wrapLines` plus `onWrapLinesChange`). Colour sticks and prefixes stay on the first visual row.
|
|
123
|
+
|
|
124
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Wrap
|
|
125
|
+
|
|
126
|
+
### Sizes
|
|
127
|
+
|
|
128
|
+
The same three sizes as CodeSnippet: `sm` (12px, default), `md` (14px) and `lg` (16px), each
|
|
129
|
+
on 20px rows.
|
|
130
|
+
|
|
131
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Sizes
|
|
132
|
+
|
|
133
|
+
### ReadOnly
|
|
134
|
+
|
|
135
|
+
`readOnly` lets you select, search and copy without focusing the code or showing a caret. Use it when the value
|
|
136
|
+
can change elsewhere but not here. If it never changes, use `CodeSnippet`.
|
|
137
|
+
|
|
138
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ReadOnly
|
|
139
|
+
|
|
140
|
+
### Tabs
|
|
141
|
+
|
|
142
|
+
Tabs swap `value`, and `documentId` swaps the editor's whole state with it, so each tab keeps
|
|
143
|
+
its own undo history, selection and collapsed folds.
|
|
144
|
+
|
|
145
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Tabs
|
|
146
|
+
|
|
147
|
+
### ParityDefault
|
|
148
|
+
|
|
149
|
+
Parity check: the same code and props in CodeSnippet and in a read-only CodeEditor should look
|
|
150
|
+
identical. Accepted differences: a native thin scrollbar, and CodeMirror's caret and selection
|
|
151
|
+
layer (shown only while focused).
|
|
152
|
+
|
|
153
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityDefault
|
|
154
|
+
|
|
155
|
+
### ParityLineColors
|
|
156
|
+
|
|
157
|
+
Parity check with line colours, text prefixes and a tooltipped icon prefix: same stick, same
|
|
158
|
+
tint, same prefix column.
|
|
159
|
+
|
|
160
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityLineColors
|
|
161
|
+
|
|
162
|
+
### ParityFoldsCollapsed
|
|
163
|
+
|
|
164
|
+
Parity check with the headers fold collapsed: same chevrons and the same summary row in place
|
|
165
|
+
of the hidden lines.
|
|
166
|
+
|
|
167
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityFoldsCollapsed
|
|
168
|
+
|
|
169
|
+
### ParityHttpPrism
|
|
170
|
+
|
|
171
|
+
Parity check for an HTTP request with a JSON body, both under the same Prism provider: token
|
|
172
|
+
colours come from the same adapter.
|
|
173
|
+
|
|
174
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityHttpPrism
|
|
175
|
+
|
|
176
|
+
### ParityRanges
|
|
177
|
+
|
|
178
|
+
Parity check for `ranges`: the same bold, coloured spans inside the same tinted lines.
|
|
179
|
+
|
|
180
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityRanges
|
|
181
|
+
|
|
182
|
+
### ParityWrap
|
|
183
|
+
|
|
184
|
+
Parity check for wrapped lines: long lines break at the same points and line numbers stay on
|
|
185
|
+
the first row of each wrapped line.
|
|
186
|
+
|
|
187
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityWrap
|
|
188
|
+
|
|
189
|
+
### ParitySizes
|
|
190
|
+
|
|
191
|
+
Parity check for the three sizes: the same font size, line height and gutter padding per size.
|
|
192
|
+
|
|
193
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParitySizes
|
|
194
|
+
|
|
195
|
+
### ParityFrame
|
|
196
|
+
|
|
197
|
+
Parity check for the shared frame: a header with tabs and actions, and floating actions
|
|
198
|
+
without a header, sit in the same place with the same spacing.
|
|
199
|
+
|
|
200
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityFrame
|
|
201
|
+
|
|
202
|
+
### ParityShowMore
|
|
203
|
+
|
|
204
|
+
Parity check for `maxLines`: the same clamped height and the same "Show N more lines" button.
|
|
205
|
+
|
|
206
|
+
Source: CodeEditor/CodeEditor.stories.tsx#ParityShowMore
|
|
207
|
+
|
|
208
|
+
### Languages
|
|
209
|
+
|
|
210
|
+
Colours come from the adapter (Shiki here); JavaScript, TypeScript, Python and Lua parsers load
|
|
211
|
+
on first use.
|
|
212
|
+
|
|
213
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Languages
|
|
214
|
+
|
|
215
|
+
### SyntaxErrors
|
|
216
|
+
|
|
217
|
+
Syntax errors for every language with a structure parser: JSON and an HTTP JSON body use the
|
|
218
|
+
precise `JSON.parse` message, JavaScript and TypeScript use Babel, Lua uses luaparse (first error only), YAML and Python report
|
|
219
|
+
Lezer error nodes. Hover an underline to read the message; the count below each editor comes from
|
|
220
|
+
`onDiagnosticsChange`. Bash and plain text have no syntax diagnostics.
|
|
221
|
+
|
|
222
|
+
Source: CodeEditor/CodeEditor.stories.tsx#SyntaxErrors
|
|
223
|
+
|
|
224
|
+
### Diff
|
|
225
|
+
|
|
226
|
+
`original` turns on diff mode: added and changed lines read as `success` lines with a `+`,
|
|
227
|
+
removed lines as `danger` rows with a `-` and no line number. The rows stay editable, and the
|
|
228
|
+
diff updates as you type.
|
|
229
|
+
|
|
230
|
+
Source: CodeEditor/CodeEditor.stories.tsx#Diff
|
|
231
|
+
|
|
232
|
+
### DiffWrapLines
|
|
233
|
+
|
|
234
|
+
With wrapping on, a removed line longer than the frame wraps inside its `danger` row and its
|
|
235
|
+
`-` marker stays on the first visual row, beside where the line starts.
|
|
236
|
+
|
|
237
|
+
Source: CodeEditor/CodeEditor.stories.tsx#DiffWrapLines
|
|
238
|
+
|
|
239
|
+
### AnalyticsAttributes
|
|
240
|
+
|
|
241
|
+
Where analytics attributes land. `data-*` / `aria-*` / `id` on `CodeEditorContent`
|
|
242
|
+
reach the typing surface (`role="textbox"`), chrome buttons take them directly, and
|
|
243
|
+
fold buttons take them through `toggleProps` / `summaryProps`. Popups drawn by the
|
|
244
|
+
editor (autocomplete, tooltips, search panel) are not attributable — see
|
|
245
|
+
`CodeEditor/ANALYTICS_GAPS.md`.
|
|
246
|
+
|
|
247
|
+
Source: CodeEditor/CodeEditor.stories.tsx#AnalyticsAttributes
|
|
248
|
+
|
|
249
|
+
### EditingWorkflow
|
|
250
|
+
|
|
251
|
+
A controlled HTTP request with header and body folds and a JSON Schema on the body —
|
|
252
|
+
`retries` breaks the schema's maximum on purpose, so the underline and its hover message
|
|
253
|
+
are part of the example. The editor's description points at `CODE_EDITOR_KEYBOARD_HINT`.
|
|
254
|
+
|
|
255
|
+
Source: CodeEditor/CodeEditor.stories.tsx#EditingWorkflow
|
|
256
|
+
|
|
257
|
+
### TabsKeepHistory
|
|
258
|
+
|
|
259
|
+
Each tab passes its own `documentId`, so switching swaps in that document's undo history,
|
|
260
|
+
selection and collapsed folds instead of replacing the text of one shared document.
|
|
261
|
+
|
|
262
|
+
Source: CodeEditor/CodeEditor.stories.tsx#TabsKeepHistory
|
|
263
|
+
|
|
264
|
+
### LongDocument
|
|
265
|
+
|
|
266
|
+
2 000 read-only lines clamped by `maxLines` — the top of the envelope the colour painter is
|
|
267
|
+
built for, where `readOnly` still lets the text be selected, searched and copied.
|
|
268
|
+
|
|
269
|
+
Source: CodeEditor/CodeEditor.stories.tsx#LongDocument
|
|
270
|
+
|
|
271
|
+
### FullscreenInsideDrawer
|
|
272
|
+
|
|
273
|
+
Fullscreen opened from a modal `Drawer` stacks above it: the editor and its buttons take
|
|
274
|
+
pointer and keyboard input, and Escape leaves fullscreen while the drawer stays open.
|
|
275
|
+
|
|
276
|
+
Source: CodeEditor/CodeEditor.stories.tsx#FullscreenInsideDrawer
|
|
277
|
+
|
|
278
|
+
## Story sources
|
|
279
|
+
|
|
280
|
+
The story files and their local imports are in [stories.md](./stories.md), verbatim.
|