@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,324 @@
|
|
|
1
|
+
An interactive chip for a keyword or attribute the reader can select or remove — a chip that only states a value is a `Badge`. Give it one job: Carbon warns against tags carrying several functions at once, and a chip that both filters and deletes is one people trigger by accident.
|
|
2
|
+
|
|
3
|
+
## Props as canvas attributes
|
|
4
|
+
|
|
5
|
+
Use kebab-case attribute names. Pass non-string values through renderVals holes, including booleans. The full emitted API is in `components/index.d.ts`.
|
|
6
|
+
|
|
7
|
+
| Attribute | Type | Required | Default | Description |
|
|
8
|
+
| --- | --- | --- | --- | --- |
|
|
9
|
+
| `title` | `string \| undefined` | no | — | |
|
|
10
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
12
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `id` | `string \| undefined` | no | — | |
|
|
14
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
15
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
16
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
17
|
+
| `disabled` | `boolean` | no | `false` | |
|
|
18
|
+
| `size` | `"small" \| "medium" \| "large" \| null \| undefined` | no | `medium` | |
|
|
19
|
+
| `as-child` | `boolean \| undefined` | no | `false` | |
|
|
20
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
21
|
+
|
|
22
|
+
## Sub-components
|
|
23
|
+
|
|
24
|
+
- `WallarmDS.TagClose` — `TagCloseProps` in the declaration bundle.
|
|
25
|
+
|
|
26
|
+
## Stories
|
|
27
|
+
|
|
28
|
+
### Basic
|
|
29
|
+
|
|
30
|
+
The default. It is focusable and clickable, which is what separates it from a badge even when
|
|
31
|
+
it looks the same.
|
|
32
|
+
|
|
33
|
+
Source: Tag/Tag.stories.tsx#Basic
|
|
34
|
+
|
|
35
|
+
### Sizes
|
|
36
|
+
|
|
37
|
+
The same two heights as `Badge`, so a row mixing them stays level.
|
|
38
|
+
|
|
39
|
+
Source: Tag/Tag.stories.tsx#Sizes
|
|
40
|
+
|
|
41
|
+
### Disabled
|
|
42
|
+
|
|
43
|
+
Out of the tab order and unclickable, but still readable — a filter that cannot currently
|
|
44
|
+
apply is still information.
|
|
45
|
+
|
|
46
|
+
Source: Tag/Tag.stories.tsx#Disabled
|
|
47
|
+
|
|
48
|
+
### Closable
|
|
49
|
+
|
|
50
|
+
A dismiss control for a value the reader added, such as an applied filter. Removal is the
|
|
51
|
+
only thing the control should do.
|
|
52
|
+
|
|
53
|
+
Source: Tag/Tag.stories.tsx#Closable
|
|
54
|
+
|
|
55
|
+
### Selectable
|
|
56
|
+
|
|
57
|
+
A toggle, for filtering by tapping the values themselves. Selected state has to be visible
|
|
58
|
+
without colour alone.
|
|
59
|
+
|
|
60
|
+
Source: Tag/Tag.stories.tsx#Selectable
|
|
61
|
+
|
|
62
|
+
### WithIcons
|
|
63
|
+
|
|
64
|
+
An icon beside the label, carrying the kind of thing rather than its state.
|
|
65
|
+
|
|
66
|
+
Source: Tag/Tag.stories.tsx#WithIcons
|
|
67
|
+
|
|
68
|
+
### WithOnClick
|
|
69
|
+
|
|
70
|
+
A plain click handler, for a chip that navigates or opens rather than toggling — but not as a
|
|
71
|
+
link, which Carbon rules out for tags.
|
|
72
|
+
|
|
73
|
+
Source: Tag/Tag.stories.tsx#WithOnClick
|
|
74
|
+
|
|
75
|
+
## Story sources
|
|
76
|
+
|
|
77
|
+
### Tag/Tag.stories.tsx
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
import { useState } from 'react';
|
|
81
|
+
import { createListCollection } from '@ark-ui/react/collection';
|
|
82
|
+
import { fn } from 'storybook/test';
|
|
83
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
84
|
+
import { Earth, Info } from '../../icons';
|
|
85
|
+
import {
|
|
86
|
+
Select,
|
|
87
|
+
SelectButtonTag,
|
|
88
|
+
SelectButtonTagValue,
|
|
89
|
+
SelectContent,
|
|
90
|
+
type SelectDataItem,
|
|
91
|
+
SelectOption,
|
|
92
|
+
SelectOptionIndicator,
|
|
93
|
+
SelectOptionText,
|
|
94
|
+
SelectPositioner,
|
|
95
|
+
} from '../Select';
|
|
96
|
+
import { HStack, VStack } from '../Stack';
|
|
97
|
+
import { Tag } from './Tag';
|
|
98
|
+
import { TagClose } from './TagClose';
|
|
99
|
+
|
|
100
|
+
const DESCRIPTION = [
|
|
101
|
+
'An interactive chip for a keyword or attribute the reader can select or remove — a chip that only states a value is a `Badge`.',
|
|
102
|
+
'Give it one job: Carbon warns against tags carrying several functions at once, and a chip that both filters and deletes is one people trigger by accident.',
|
|
103
|
+
].join(' ');
|
|
104
|
+
|
|
105
|
+
const onTagClick = fn().mockName('onTagClick');
|
|
106
|
+
|
|
107
|
+
const meta = {
|
|
108
|
+
title: 'Status Indication/Tag',
|
|
109
|
+
component: Tag,
|
|
110
|
+
subcomponents: { TagClose },
|
|
111
|
+
parameters: {
|
|
112
|
+
layout: 'centered',
|
|
113
|
+
docs: {
|
|
114
|
+
description: {
|
|
115
|
+
component: DESCRIPTION,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
argTypes: {
|
|
121
|
+
size: {
|
|
122
|
+
control: 'select',
|
|
123
|
+
options: ['medium', 'large'],
|
|
124
|
+
},
|
|
125
|
+
disabled: {
|
|
126
|
+
control: 'boolean',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
} satisfies Meta<typeof Tag>;
|
|
130
|
+
|
|
131
|
+
export default meta;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The default. It is focusable and clickable, which is what separates it from a badge even when
|
|
135
|
+
* it looks the same.
|
|
136
|
+
*/
|
|
137
|
+
export const Basic: StoryFn<typeof meta> = ({ ...args }) => <Tag {...args}>Tag</Tag>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The same two heights as `Badge`, so a row mixing them stays level.
|
|
141
|
+
*/
|
|
142
|
+
export const Sizes: StoryFn<typeof meta> = ({ ...args }) => (
|
|
143
|
+
<HStack align='center' gap={8}>
|
|
144
|
+
<Tag {...args} size='medium'>
|
|
145
|
+
Medium Tag
|
|
146
|
+
</Tag>
|
|
147
|
+
<Tag {...args} size='large'>
|
|
148
|
+
Large Tag
|
|
149
|
+
</Tag>
|
|
150
|
+
</HStack>
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Out of the tab order and unclickable, but still readable — a filter that cannot currently
|
|
155
|
+
* apply is still information.
|
|
156
|
+
*/
|
|
157
|
+
export const Disabled: StoryFn<typeof meta> = ({ ...args }) => (
|
|
158
|
+
<HStack gap={8}>
|
|
159
|
+
<Tag {...args} size='medium' disabled>
|
|
160
|
+
Disabled Medium
|
|
161
|
+
</Tag>
|
|
162
|
+
<Tag {...args} size='large' disabled>
|
|
163
|
+
Disabled Large
|
|
164
|
+
</Tag>
|
|
165
|
+
</HStack>
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* A dismiss control for a value the reader added, such as an applied filter. Removal is the
|
|
170
|
+
* only thing the control should do.
|
|
171
|
+
*/
|
|
172
|
+
export const Closable: StoryFn<typeof meta> = ({ ...args }) => {
|
|
173
|
+
const [isVisible, setIsVisible] = useState<boolean>(true);
|
|
174
|
+
|
|
175
|
+
return (
|
|
176
|
+
<>
|
|
177
|
+
{isVisible && (
|
|
178
|
+
<Tag {...args} data-testid='tag'>
|
|
179
|
+
Closable tag
|
|
180
|
+
<TagClose onClick={() => setIsVisible(false)} />
|
|
181
|
+
</Tag>
|
|
182
|
+
)}
|
|
183
|
+
</>
|
|
184
|
+
);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* A toggle, for filtering by tapping the values themselves. Selected state has to be visible
|
|
189
|
+
* without colour alone.
|
|
190
|
+
*/
|
|
191
|
+
export const Selectable: StoryFn<typeof meta> = () => {
|
|
192
|
+
const collection = createListCollection<SelectDataItem>({
|
|
193
|
+
items: [
|
|
194
|
+
{
|
|
195
|
+
value: 'UTC',
|
|
196
|
+
label: 'UTC',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
value: 'UTC+1',
|
|
200
|
+
label: 'UTC+1',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
value: 'UTC+2',
|
|
204
|
+
label: 'UTC+2',
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
value: 'UTC+3',
|
|
208
|
+
label: 'UTC+3',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
value: 'UTC+4',
|
|
212
|
+
label: 'UTC+4',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
value: 'UTC+5',
|
|
216
|
+
label: 'UTC+5',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
value: 'UTC+6',
|
|
220
|
+
label: 'UTC+6',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
value: 'UTC+7',
|
|
224
|
+
label: 'UTC+7',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
isItemDisabled: item => item.value === 'UTC+2',
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
return (
|
|
231
|
+
<VStack gap={8}>
|
|
232
|
+
<Select collection={collection}>
|
|
233
|
+
<SelectButtonTag>
|
|
234
|
+
<Earth />
|
|
235
|
+
<SelectButtonTagValue placeholder='Timezone' />
|
|
236
|
+
</SelectButtonTag>
|
|
237
|
+
|
|
238
|
+
<SelectPositioner>
|
|
239
|
+
<SelectContent>
|
|
240
|
+
{collection.items.map(skill => (
|
|
241
|
+
<SelectOption key={skill.value} item={skill}>
|
|
242
|
+
<SelectOptionText>{skill.label}</SelectOptionText>
|
|
243
|
+
<SelectOptionIndicator />
|
|
244
|
+
</SelectOption>
|
|
245
|
+
))}
|
|
246
|
+
</SelectContent>
|
|
247
|
+
</SelectPositioner>
|
|
248
|
+
</Select>
|
|
249
|
+
|
|
250
|
+
<Select collection={collection}>
|
|
251
|
+
<SelectButtonTag size='large'>
|
|
252
|
+
<Earth />
|
|
253
|
+
<SelectButtonTagValue placeholder='Timezone' />
|
|
254
|
+
</SelectButtonTag>
|
|
255
|
+
|
|
256
|
+
<SelectPositioner>
|
|
257
|
+
<SelectContent>
|
|
258
|
+
{collection.items.map(skill => (
|
|
259
|
+
<SelectOption key={skill.value} item={skill}>
|
|
260
|
+
<SelectOptionText>{skill.label}</SelectOptionText>
|
|
261
|
+
<SelectOptionIndicator />
|
|
262
|
+
</SelectOption>
|
|
263
|
+
))}
|
|
264
|
+
</SelectContent>
|
|
265
|
+
</SelectPositioner>
|
|
266
|
+
</Select>
|
|
267
|
+
</VStack>
|
|
268
|
+
);
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* An icon beside the label, carrying the kind of thing rather than its state.
|
|
273
|
+
*/
|
|
274
|
+
export const WithIcons: StoryFn<typeof meta> = ({ ...args }) => (
|
|
275
|
+
<VStack gap={12} align='stretch'>
|
|
276
|
+
<VStack gap={8}>
|
|
277
|
+
<span className='sb-annotation'>medium</span>
|
|
278
|
+
<HStack gap={8}>
|
|
279
|
+
<Tag {...args} size='medium'>
|
|
280
|
+
<Earth />
|
|
281
|
+
Tag with left icon
|
|
282
|
+
</Tag>
|
|
283
|
+
<Tag {...args} size='medium'>
|
|
284
|
+
Tag with right icon
|
|
285
|
+
<Info />
|
|
286
|
+
</Tag>
|
|
287
|
+
<Tag {...args} size='medium'>
|
|
288
|
+
<Earth />
|
|
289
|
+
Tag with left and right icons
|
|
290
|
+
<Info />
|
|
291
|
+
</Tag>
|
|
292
|
+
</HStack>
|
|
293
|
+
</VStack>
|
|
294
|
+
<VStack gap={8}>
|
|
295
|
+
<span className='sb-annotation'>large</span>
|
|
296
|
+
<HStack gap={8}>
|
|
297
|
+
<Tag {...args} size='large'>
|
|
298
|
+
<Earth />
|
|
299
|
+
Tag with left icon
|
|
300
|
+
</Tag>
|
|
301
|
+
<Tag {...args} size='large'>
|
|
302
|
+
Tag with right icon
|
|
303
|
+
<Info />
|
|
304
|
+
</Tag>
|
|
305
|
+
<Tag {...args} size='large'>
|
|
306
|
+
<Earth />
|
|
307
|
+
Tag with left and right icons
|
|
308
|
+
<Info />
|
|
309
|
+
</Tag>
|
|
310
|
+
</HStack>
|
|
311
|
+
</VStack>
|
|
312
|
+
</VStack>
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* A plain click handler, for a chip that navigates or opens rather than toggling — but not as a
|
|
317
|
+
* link, which Carbon rules out for tags.
|
|
318
|
+
*/
|
|
319
|
+
export const WithOnClick: StoryFn<typeof meta> = ({ ...args }) => (
|
|
320
|
+
<Tag {...args} onClick={onTagClick}>
|
|
321
|
+
Click me
|
|
322
|
+
</Tag>
|
|
323
|
+
);
|
|
324
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,i){let r,n;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var l,s,a=Object.create,o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,h=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,m=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))f.call(e,n)||n===i||o(e,n,{get:()=>t[n],enumerable:!(r=c(t,n))||r.enumerable});return e},p={},d={$dispatcherGuard:()=>O,$makeReadOnly:()=>$,$reset:()=>x,$structuralCheck:()=>V,c:()=>I,clearRenderCounterRegistry:()=>k,renderCounterRegistry:()=>N,useRenderCounter:()=>D};for(var y in d)o(p,y,{get:d[y],enumerable:!0});e.exports=m(o({},"__esModule",{value:!0}),p);var g=(n=null!=(r=i("C"))?a(h(r)):{},m(r&&r.__esModule?n:o(n,"default",{value:r,enumerable:!0}),r)),{useRef:b,useEffect:S,isValidElement:w}=g,v=null!=(l=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?l:g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.memo_cache_sentinel"),I="function"==typeof(null==(s=g.__COMPILER_RUNTIME)?void 0:s.c)?g.__COMPILER_RUNTIME.c:function(e){return g.useMemo(()=>{let t=Array(e);for(let i=0;i<e;i++)t[i]=_;return t[_]=!0,t},[])},C={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{C[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var T=null;function R(e){return v.ReactCurrentDispatcher.current=e,v.ReactCurrentDispatcher.current}C.useMemoCache=e=>{if(null!=T)return T.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var E=[];function O(e){let t=v.ReactCurrentDispatcher.current;if(0===e){if(E.push(t),1===E.length&&(T=t),t===C)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");R(C)}else if(1===e){let e=E.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===E.length&&(T=null),R(e)}else if(2===e)E.push(t),R(T);else if(3===e){let e=E.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");R(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function x(e){for(let t=0;t<e.length;t++)e[t]=_}function $(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var N=new Map;function k(){for(let e of N.values())e.forEach(e=>{e.count=0})}function D(e){let t=b(null);null!=t.current&&(t.current.count+=1),S(()=>{if(null==t.current){let i,r={count:0};null==(i=N.get(e))&&(i=new Set,N.set(e,i)),i.add(r),t.current=r}return()=>{var i;let r;null!==t.current&&(i=t.current,null!=(r=N.get(e))&&r.delete(i))}})}var M=new Set;function V(e,t,i,r,n,l){function s(e,t,s,a){let o=`${r}:${l} [${n}] ${i}${s} changed from ${e} to ${t} at depth ${a}`;M.has(o)||(M.add(o),console.error(o))}!function e(t,i,r,n){if(!(n>2)){if(t!==i)if(typeof t!=typeof i)s(`type ${typeof t}`,`type ${typeof i}`,r,n);else if("object"==typeof t){let l=Array.isArray(t),a=Array.isArray(i);if(null===t&&null!==i)s("null",`type ${typeof i}`,r,n);else if(null===i)s(`type ${typeof t}`,"null",r,n);else if(t instanceof Map)if(i instanceof Map)if(t.size!==i.size)s(`Map instance with size ${t.size}`,`Map instance with size ${i.size}`,r,n);else for(let[l,a]of t)i.has(l)?e(a,i.get(l),`${r}.get(${l})`,n+1):s(`Map instance with key ${l}`,`Map instance without key ${l}`,r,n);else s("Map instance","other value",r,n);else if(i instanceof Map)s("other value","Map instance",r,n);else if(t instanceof Set)if(i instanceof Set)if(t.size!==i.size)s(`Set instance with size ${t.size}`,`Set instance with size ${i.size}`,r,n);else for(let e of i)t.has(e)||s(`Set instance without element ${e}`,`Set instance with element ${e}`,r,n);else s("Set instance","other value",r,n);else if(i instanceof Set)s("other value","Set instance",r,n);else if(l||a)if(l!==a)s(`type ${l?"array":"object"}`,`type ${a?"array":"object"}`,r,n);else if(t.length!==i.length)s(`array with length ${t.length}`,`array with length ${i.length}`,r,n);else for(let l=0;l<t.length;l++)e(t[l],i[l],`${r}[${l}]`,n+1);else if(w(t)||w(i))w(t)!==w(i)?s(`type ${w(t)?"React element":"object"}`,`type ${w(i)?"React element":"object"}`,r,n):t.type!==i.type?s(`React element of type ${t.type}`,`React element of type ${i.type}`,r,n):e(t.props,i.props,`[props of ${r}]`,n+1);else{for(let e in i)e in t||s(`object without key ${e}`,`object with key ${e}`,r,n);for(let l in t)l in i?e(t[l],i[l],`${r}.${l}`,n+1):s(`object with key ${l}`,`object without key ${l}`,r,n)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(i)?isNaN(t)!==isNaN(i)&&s(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(i)?"NaN":"non-NaN value"}`,r,n):t!==i&&s(t,i,r,n)}}}(e,t,"",0)}},p(e,t,i){let r=new WeakMap,n=new WeakMap;function l(e,t,i){let l=t,s=i;if("object"==typeof l&&null!==l&&"$$typeof"in l&&l.$$typeof===Symbol.for("react.context")&&"Provider"in l&&(l=l.Provider),"function"==typeof l&&null!=s.ref&&!l.prototype?.isReactComponent){let t=l,i=r.get(e);i||(i=new WeakMap,r.set(e,i));let n=i.get(t);n||((n=e.forwardRef((e,i)=>t({...e,ref:i}))).displayName=t.displayName??t.name,i.set(t,n)),l=n}if("string"==typeof l&&"boolean"==typeof s.inert&&((s={...s}).inert?s.inert="":delete s.inert),"string"==typeof l)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in s&&(s={...s,[t]:s[e]},delete s[e]);return"string"==typeof l&&null!=s.ref&&(l=function(e,t){let i=n.get(e);i||(i=new Map,n.set(e,i));let r=i.get(t);if(r)return r;let l=e.forwardRef((i,r)=>{let n=e.useRef(null);if(!n.current||n.current.original!==r){let e;n.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let i=r(t);e="function"==typeof i?i:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...i,ref:n.current.callback})});return l.displayName=`CanvasHost(${t})`,i.set(t,l),l}(e,l)),{type:l,props:s}}function s(e){let t=(t,i,r)=>{let n=l(e,t,i??{});return e.createElement(n.type,void 0===r?n.props:{...n.props,key:r})};return{jsx:t,jsxs:(t,i,r)=>{let n=l(e,t,i??{}),{children:s,...a}=n.props;return e.createElement(n.type,void 0===r?a:{...a,key:r},...Array.isArray(s)?s:[s])},jsxDEV:t,Fragment:e.Fragment}}function a(e){return{...e,createElement:(t,i,...r)=>{let n=l(e,t,i??{});return e.createElement(n.type,n.props,...r)},cloneElement:(t,i,...r)=>{let n=e.cloneElement(t,i??void 0,...r),s=n.ref,a=l(e,n.type,{...n.props,ref:s});return a.type===n.type&&"string"!=typeof n.type?n:e.createElement(a.type,{...a.props,key:n.key})}}}i.d(t,{MA:()=>s,YJ:()=>a})},C(e,t,i){i.r(t);let r=(0,i("p").YJ)(window.React),{Children:n,Component:l,Fragment:s,Profiler:a,PureComponent:o,StrictMode:c,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:h,act:f,cloneElement:m,createContext:p,createElement:d,createFactory:y,createRef:g,forwardRef:b,isValidElement:S,lazy:w,memo:v,startTransition:_,unstable_act:I,useCallback:C,useContext:T,useDebugValue:R,useDeferredValue:E,useEffect:O,useId:x,useImperativeHandle:$,useInsertionEffect:N,useLayoutEffect:k,useMemo:D,useReducer:M,useRef:V,useState:j,useSyncExternalStore:z,useTransition:A,version:U,use:W}=r;i.d(t,{},{Children:n,Component:l,Fragment:s,Profiler:a,PureComponent:o,StrictMode:c,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:h,act:f,cloneElement:m,createContext:p,createElement:d,createFactory:y,createRef:g,default:r,forwardRef:b,isValidElement:S,lazy:w,memo:v,startTransition:_,unstable_act:I,use:W,useCallback:C,useContext:T,useDebugValue:R,useDeferredValue:E,useEffect:O,useId:x,useImperativeHandle:$,useInsertionEffect:N,useLayoutEffect:k,useMemo:D,useReducer:M,useRef:V,useState:j,useSyncExternalStore:z,useTransition:A,version:U})}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,i),l.exports}i.d=(e,t,r)=>{var n=(t,r)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[r]:t[n]})};n(t,"get"),n(r,"value")},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:r,Fragment:n}=(0,i("p").MA)(window.React);var l=i("vD"),s=i("C"),a=Object.defineProperty,o=(e,t,i)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?a(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i},c=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),u=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);Function.prototype.toString.call(Object);var h=e=>e?.constructor.name==="Array",f=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(h(e)&&h(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!f(e[i],t[i]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;let i=Object.keys(t??Object.create(null)),r=i.length;for(let t=0;t<r;t++)if(!Reflect.has(e,i[t]))return!1;for(let n=0;n<r;n++){let r=i[n];if(!f(e[r],t[r]))return!1}return!0},m={itemToValue:e=>"string"==typeof e?e:c(e)&&u(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:c(e)&&u(e,"label")?e.label:m.itemToValue(e),isItemDisabled:e=>!!(c(e)&&u(e,"disabled"))&&!!e.disabled},p=class e{constructor(t){o(this,"options",t),o(this,"items"),o(this,"indexMap",null),o(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),o(this,"isEqual",e=>f(this.items,e.items)),o(this,"setItems",e=>this.copy(e)),o(this,"getValues",(e=this.items)=>{let t=[];for(let i of e){let e=this.getItemValue(i);null!=e&&t.push(e)}return t}),o(this,"find",e=>{if(null==e)return null;let t=this.indexOf(e);return -1!==t?this.at(t):null}),o(this,"findMany",e=>{let t=[];for(let i of e){let e=this.find(i);null!=e&&t.push(e)}return t}),o(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;for(let[,i]of this.group())for(let r of i){if(t===e)return r;t++}return null}),o(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),o(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),o(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??m.itemToValue(e)),o(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??m.isItemDisabled(e))),o(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??m.itemToString(e)),o(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),o(this,"stringifyItems",(e,t=", ")=>{let i=[];for(let t of e){let e=this.stringifyItem(t);null!=e&&i.push(e)}return i.join(t)}),o(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),o(this,"has",e=>-1!==this.indexOf(e)),o(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),o(this,"group",()=>{let{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];let i=new Map;this.items.forEach((t,r)=>{let n=e(t,r);i.has(n)||i.set(n,[]),i.get(n).push(t)});let r=Array.from(i.entries());return t&&r.sort(([e],[i])=>{if("function"==typeof t)return t(e,i);if(Array.isArray(t)){let r=t.indexOf(e),n=t.indexOf(i);return -1===r?1:-1===n?-1:r-n}return"asc"===t?e.localeCompare(i):"desc"===t?i.localeCompare(e):0}),r}),o(this,"getNextValue",(e,t=1,i=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=i?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))}),o(this,"getPreviousValue",(e,t=1,i=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=i?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))}),o(this,"indexOf",e=>{if(null==e)return -1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);if(!this.indexMap){this.indexMap=new Map;let e=0;for(let[,t]of this.group())for(let i of t){let t=this.getItemValue(i);null!=t&&this.indexMap.set(t,e),e++}}return this.indexMap.get(e)??-1}),o(this,"getByText",(e,t)=>{let i=null!=t?this.indexOf(t):-1,r=1===e.length;for(let n=0;n<this.items.length;n++){let l=this.items[(i+n+1)%this.items.length];if((!r||this.getItemValue(l)!==t)&&!this.getItemDisabled(l)&&d(this.stringifyItem(l),e))return l}}),o(this,"search",(e,t)=>{let{state:i,currentValue:r,timeout:n=350}=t,l=i.keysSoFar+e,s=l.length>1&&Array.from(l).every(e=>e===l[0])?l[0]:l,a=this.getByText(s,r),o=this.getItemValue(a);function c(){clearTimeout(i.timer),i.timer=-1}return!function e(t){i.keysSoFar=t,c(),""!==t&&(i.timer=+setTimeout(()=>{e(""),c()},n))}(l),o}),o(this,"update",(e,t)=>{let i=this.indexOf(e);return -1===i?this:this.copy([...this.items.slice(0,i),t,...this.items.slice(i+1)])}),o(this,"upsert",(e,t,i="append")=>{let r=this.indexOf(e);return -1===r?("append"===i?this.append:this.prepend)(t):this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),o(this,"insert",(e,...t)=>this.copy(y(this.items,e,...t))),o(this,"insertBefore",(e,...t)=>{let i=this.indexOf(e);if(-1===i)if(0!==this.items.length)return this;else i=0;return this.copy(y(this.items,i,...t))}),o(this,"insertAfter",(e,...t)=>{let i=this.indexOf(e);if(-1===i)if(0!==this.items.length)return this;else i=0;return this.copy(y(this.items,i+1,...t))}),o(this,"prepend",(...e)=>this.copy(y(this.items,0,...e))),o(this,"append",(...e)=>this.copy(y(this.items,this.items.length,...e))),o(this,"filter",e=>{let t=this.items.filter((t,i)=>e(this.stringifyItem(t),i,t));return this.copy(t)}),o(this,"remove",(...e)=>{let t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{let i=this.getItemValue(e);return null!=i&&!t.includes(i)}))}),o(this,"move",(e,t)=>{let i=this.indexOf(e);return -1===i?this:this.copy(g(this.items,[i],t))}),o(this,"moveBefore",(e,...t)=>{let i=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===i)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(g(this.items,r,i))}),o(this,"moveAfter",(e,...t)=>{let i=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===i)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(g(this.items,r,i+1))}),o(this,"reorder",(e,t)=>this.copy(g(this.items,[e],t))),o(this,"compareValue",(e,t)=>{let i=this.indexOf(e),r=this.indexOf(t);return i<r?-1:+(i>r)}),o(this,"range",(e,t)=>{let i=[],r=e;for(;null!=r;){if(this.find(r)&&i.push(r),r===t)return i;r=this.getNextValue(r)}return[]}),o(this,"getValueRange",(e,t)=>e&&t?0>=this.compareValue(e,t)?this.range(e,t):this.range(t,e):[]),o(this,"toString",()=>{let e="";for(let t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),o(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},d=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function y(e,t,...i){return[...e.slice(0,t),...i,...e.slice(t)]}function g(e,t,i){let r=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return i=Math.max(0,i-t.filter(e=>e<i).length),[...e.slice(0,i),...r,...e.slice(i)]}let b=window.WallarmDS.Icons.Earth,S=window.WallarmDS.Icons.Info,w=window.WallarmDS.Select,v=window.WallarmDS.SelectButtonTag,_=window.WallarmDS.SelectButtonTagValue,I=window.WallarmDS.SelectContent,C=window.WallarmDS.SelectOption,T=window.WallarmDS.SelectOptionIndicator,R=window.WallarmDS.SelectOptionText,E=window.WallarmDS.SelectPositioner,O=window.WallarmDS.HStack,x=window.WallarmDS.VStack,$=window.WallarmDS.Tag,N=window.WallarmDS.TagClose,k=(function(e=()=>{}){let t=(...t)=>e(...t);for(let i of["mockName","mockReturnValue","mockResolvedValue","mockImplementation"])t[i]=r=>("mockImplementation"===i?e=r:"mockReturnValue"===i?e=()=>r:"mockResolvedValue"===i&&(e=()=>Promise.resolve(r)),t);return t})().mockName("onTagClick"),D={title:"Status Indication/Tag",component:$,subcomponents:{TagClose:N},parameters:{layout:"centered",docs:{description:{component:"An interactive chip for a keyword or attribute the reader can select or remove — a chip that only states a value is a `Badge`. Give it one job: Carbon warns against tags carrying several functions at once, and a chip that both filters and deletes is one people trigger by accident."}}},argTypes:{size:{control:"select",options:["medium","large"]},disabled:{control:"boolean"}}};function M(e){return"UTC+2"===e.value}function V(i){return t(C,{item:i,children:[e(R,{children:i.label}),e(T,{})]},i.value)}function j(i){return t(C,{item:i,children:[e(R,{children:i.label}),e(T,{})]},i.value)}let z=[{name:"Basic",story:t=>{let i,r,n=(0,l.c)(4);return n[0]!==t?({...i}=t,n[0]=t,n[1]=i):i=n[1],n[2]!==i?(r=e($,{...i,children:"Tag"}),n[2]=i,n[3]=r):r=n[3],r},meta:D},{name:"Sizes",story:i=>{let r,n,s=(0,l.c)(4);return s[0]!==i?({...r}=i,s[0]=i,s[1]=r):r=s[1],s[2]!==r?(n=t(O,{align:"center",gap:8,children:[e($,{...r,size:"medium",children:"Medium Tag"}),e($,{...r,size:"large",children:"Large Tag"})]}),s[2]=r,s[3]=n):n=s[3],n},meta:D},{name:"Disabled",story:i=>{let r,n,s=(0,l.c)(4);return s[0]!==i?({...r}=i,s[0]=i,s[1]=r):r=s[1],s[2]!==r?(n=t(O,{gap:8,children:[e($,{...r,size:"medium",disabled:!0,children:"Disabled Medium"}),e($,{...r,size:"large",disabled:!0,children:"Disabled Large"})]}),s[2]=r,s[3]=n):n=s[3],n},meta:D},{name:"Closable",story:i=>{let r,a,o,c=(0,l.c)(7);c[0]!==i?({...r}=i,c[0]=i,c[1]=r):r=c[1];let[u,h]=(0,s.useState)(!0);return c[2]!==r||c[3]!==u?(a=u&&t($,{...r,"data-testid":"tag",children:["Closable tag",e(N,{onClick:()=>h(!1)})]}),c[2]=r,c[3]=u,c[4]=a):a=c[4],c[5]!==a?(o=e(n,{children:a}),c[5]=a,c[6]=o):o=c[6],o},meta:D},{name:"Selectable",story:()=>{let i,r,n,s,a,o,c=(0,l.c)(6);return c[0]===Symbol.for("react.memo_cache_sentinel")?(r=new p({items:[{value:"UTC",label:"UTC"},{value:"UTC+1",label:"UTC+1"},{value:"UTC+2",label:"UTC+2"},{value:"UTC+3",label:"UTC+3"},{value:"UTC+4",label:"UTC+4"},{value:"UTC+5",label:"UTC+5"},{value:"UTC+6",label:"UTC+6"},{value:"UTC+7",label:"UTC+7"}],isItemDisabled:M}),i=x,n=8,s=t(w,{collection:r,children:[t(v,{children:[e(b,{}),e(_,{placeholder:"Timezone"})]}),e(E,{children:e(I,{children:r.items.map(V)})})]}),c[0]=i,c[1]=r,c[2]=n,c[3]=s):(i=c[0],r=c[1],n=c[2],s=c[3]),c[4]===Symbol.for("react.memo_cache_sentinel")?(a=t(v,{size:"large",children:[e(b,{}),e(_,{placeholder:"Timezone"})]}),c[4]=a):a=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=t(i,{gap:n,children:[s,t(w,{collection:r,children:[a,e(E,{children:e(I,{children:r.items.map(j)})})]})]}),c[5]=o):o=c[5],o},meta:D},{name:"WithIcons",story:i=>{let r,n,s,a,o,c,u,h,f,m,p,d,y,g,w,v,_,I,C,T,R=(0,l.c)(35);return R[0]!==i?({...r}=i,R[0]=i,R[1]=r):r=R[1],R[2]===Symbol.for("react.memo_cache_sentinel")?(n=e("span",{className:"sb-annotation",children:"medium"}),R[2]=n):n=R[2],R[3]===Symbol.for("react.memo_cache_sentinel")?(s=e(b,{}),R[3]=s):s=R[3],R[4]!==r?(a=t($,{...r,size:"medium",children:[s,"Tag with left icon"]}),R[4]=r,R[5]=a):a=R[5],R[6]===Symbol.for("react.memo_cache_sentinel")?(o=e(S,{}),R[6]=o):o=R[6],R[7]!==r?(c=t($,{...r,size:"medium",children:["Tag with right icon",o]}),R[7]=r,R[8]=c):c=R[8],R[9]===Symbol.for("react.memo_cache_sentinel")?(u=e(b,{}),R[9]=u):u=R[9],R[10]===Symbol.for("react.memo_cache_sentinel")?(h=e(S,{}),R[10]=h):h=R[10],R[11]!==r?(f=t($,{...r,size:"medium",children:[u,"Tag with left and right icons",h]}),R[11]=r,R[12]=f):f=R[12],R[13]!==a||R[14]!==c||R[15]!==f?(m=t(x,{gap:8,children:[n,t(O,{gap:8,children:[a,c,f]})]}),R[13]=a,R[14]=c,R[15]=f,R[16]=m):m=R[16],R[17]===Symbol.for("react.memo_cache_sentinel")?(p=e("span",{className:"sb-annotation",children:"large"}),R[17]=p):p=R[17],R[18]===Symbol.for("react.memo_cache_sentinel")?(d=e(b,{}),R[18]=d):d=R[18],R[19]!==r?(y=t($,{...r,size:"large",children:[d,"Tag with left icon"]}),R[19]=r,R[20]=y):y=R[20],R[21]===Symbol.for("react.memo_cache_sentinel")?(g=e(S,{}),R[21]=g):g=R[21],R[22]!==r?(w=t($,{...r,size:"large",children:["Tag with right icon",g]}),R[22]=r,R[23]=w):w=R[23],R[24]===Symbol.for("react.memo_cache_sentinel")?(v=e(b,{}),R[24]=v):v=R[24],R[25]===Symbol.for("react.memo_cache_sentinel")?(_=e(S,{}),R[25]=_):_=R[25],R[26]!==r?(I=t($,{...r,size:"large",children:[v,"Tag with left and right icons",_]}),R[26]=r,R[27]=I):I=R[27],R[28]!==y||R[29]!==w||R[30]!==I?(C=t(x,{gap:8,children:[p,t(O,{gap:8,children:[y,w,I]})]}),R[28]=y,R[29]=w,R[30]=I,R[31]=C):C=R[31],R[32]!==C||R[33]!==m?(T=t(x,{gap:12,align:"stretch",children:[m,C]}),R[32]=C,R[33]=m,R[34]=T):T=R[34],T},meta:D},{name:"WithOnClick",story:t=>{let i,r,n=(0,l.c)(4);return n[0]!==t?({...i}=t,n[0]=t,n[1]=i):i=n[1],n[2]!==i?(r=e($,{...i,onClick:k,children:"Click me"}),n[2]=i,n[3]=r):r=n[3],r},meta:D}];function A({entry:e}){let{story:t,meta:i}=e,r={...i.args,...t.args},n="function"==typeof t||t.$$typeof?t:t.render||i.render||i.component,l=()=>s.default.createElement(n,r),a={args:r,globals:{theme:"light"},parameters:{...i.parameters,...t.parameters},viewMode:"story"};for(let e of[...i.decorators||[],...t.decorators||[]].reverse()){let t=l;l=()=>e(t,a)}return s.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},s.default.createElement("h2",{className:"text-sm mb-12"},e.name),s.default.createElement(l))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(s.default.createElement(window.WallarmDS.Root,null,z.map((e,t)=>s.default.createElement(A,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
Geist for body copy, labels and anything read as prose — reach for `Heading` when the text is a title and `Link` when it navigates. Weight carries emphasis and colour carries de-emphasis, so build hierarchy from those rather than by changing size.
|
|
2
|
+
|
|
3
|
+
## Props as canvas attributes
|
|
4
|
+
|
|
5
|
+
Use kebab-case attribute names. Pass non-string values through renderVals holes, including booleans. The full emitted API is in `components/index.d.ts`.
|
|
6
|
+
|
|
7
|
+
| Attribute | Type | Required | Default | Description |
|
|
8
|
+
| --- | --- | --- | --- | --- |
|
|
9
|
+
| `title` | `string \| undefined` | no | — | |
|
|
10
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
11
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
12
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `id` | `string \| undefined` | no | — | |
|
|
14
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
15
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
16
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
17
|
+
| `color` | `"primary" \| "primary-alt" \| "secondary" \| "secondary-alt" \| "tertiary-alt" \| "danger" \| "inherit"` | no | `inherit` | |
|
|
18
|
+
| `size` | `"xs" \| "sm" \| "md" \| "lg" \| "xl"` | no | `lg` | |
|
|
19
|
+
| `weight` | `"light" \| "regular" \| "medium" \| "bold"` | no | `regular` | |
|
|
20
|
+
| `align` | `"left" \| "center" \| "right"` | no | — | |
|
|
21
|
+
| `inline` | `boolean` | no | — | |
|
|
22
|
+
| `grow` | `boolean` | no | `false` | |
|
|
23
|
+
| `truncate` | `boolean` | no | `false` | |
|
|
24
|
+
| `decoration` | `"dashed"` | no | — | |
|
|
25
|
+
| `line-height` | `"none" \| "tight" \| "snug" \| "normal" \| "relaxed"` | no | — | |
|
|
26
|
+
| `text-transform` | `"uppercase" \| "lowercase" \| "capitalize" \| "none"` | no | — | |
|
|
27
|
+
| `as-child` | `boolean \| undefined` | no | `false` | |
|
|
28
|
+
| `line-clamp` | `number \| undefined` | no | — | |
|
|
29
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
30
|
+
|
|
31
|
+
## Stories
|
|
32
|
+
|
|
33
|
+
### Basic
|
|
34
|
+
|
|
35
|
+
The default step. Text inherits its colour from the surroundings, which is why de-emphasis is
|
|
36
|
+
a deliberate choice rather than the absence of one.
|
|
37
|
+
|
|
38
|
+
Source: Text/Text.stories.tsx#Basic
|
|
39
|
+
|
|
40
|
+
### Sizes
|
|
41
|
+
|
|
42
|
+
The ramp, for density rather than hierarchy — step down in a dense table, not to signal that
|
|
43
|
+
something matters less. `md` matches `sm` (14 / 20); it is the step Card's body text uses.
|
|
44
|
+
|
|
45
|
+
Source: Text/Text.stories.tsx#Sizes
|
|
46
|
+
|
|
47
|
+
### Weights
|
|
48
|
+
|
|
49
|
+
All four weights at one size. Weight is emphasis within a level, never a way to create one.
|
|
50
|
+
|
|
51
|
+
Source: Text/Text.stories.tsx#Weights
|
|
52
|
+
|
|
53
|
+
### Colors
|
|
54
|
+
|
|
55
|
+
The de-emphasis ladder. Colour is how text recedes; a smaller size only makes it harder to
|
|
56
|
+
read.
|
|
57
|
+
|
|
58
|
+
Source: Text/Text.stories.tsx#Colors
|
|
59
|
+
|
|
60
|
+
### AsChild
|
|
61
|
+
|
|
62
|
+
`asChild` puts the typography on your own element, for when the tag matters to the document
|
|
63
|
+
but the styling should still come from here.
|
|
64
|
+
|
|
65
|
+
Source: Text/Text.stories.tsx#AsChild
|
|
66
|
+
|
|
67
|
+
## Story sources
|
|
68
|
+
|
|
69
|
+
### Text/Text.stories.tsx
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
73
|
+
import { VStack } from '../Stack';
|
|
74
|
+
import { Text } from './Text';
|
|
75
|
+
|
|
76
|
+
const DESCRIPTION = [
|
|
77
|
+
'Geist for body copy, labels and anything read as prose — reach for `Heading` when the text is a title and `Link` when it navigates.',
|
|
78
|
+
'Weight carries emphasis and colour carries de-emphasis, so build hierarchy from those rather than by changing size.',
|
|
79
|
+
].join(' ');
|
|
80
|
+
|
|
81
|
+
const meta = {
|
|
82
|
+
title: 'Typography/Text',
|
|
83
|
+
component: Text,
|
|
84
|
+
parameters: {
|
|
85
|
+
layout: 'centered',
|
|
86
|
+
docs: {
|
|
87
|
+
description: {
|
|
88
|
+
component: DESCRIPTION,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
args: {},
|
|
94
|
+
argTypes: {
|
|
95
|
+
size: {
|
|
96
|
+
control: 'select',
|
|
97
|
+
options: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
98
|
+
},
|
|
99
|
+
weight: {
|
|
100
|
+
control: 'select',
|
|
101
|
+
options: ['light', 'regular', 'medium', 'bold'],
|
|
102
|
+
},
|
|
103
|
+
asChild: {
|
|
104
|
+
control: 'boolean',
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
} satisfies Meta<typeof Text>;
|
|
108
|
+
|
|
109
|
+
export default meta;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The default step. Text inherits its colour from the surroundings, which is why de-emphasis is
|
|
113
|
+
* a deliberate choice rather than the absence of one.
|
|
114
|
+
*/
|
|
115
|
+
export const Basic: StoryFn<typeof meta> = ({ ...args }) => (
|
|
116
|
+
<Text {...args}>Default body text</Text>
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
/** Size / leading in px, measured from the rendered component. */
|
|
120
|
+
const SIZES = [
|
|
121
|
+
{ size: 'xl', metrics: '18 / 28' },
|
|
122
|
+
{ size: 'lg', metrics: '16 / 24' },
|
|
123
|
+
{ size: 'md', metrics: '14 / 20' },
|
|
124
|
+
{ size: 'sm', metrics: '14 / 20' },
|
|
125
|
+
{ size: 'xs', metrics: '12 / 16' },
|
|
126
|
+
] as const;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The ramp, for density rather than hierarchy — step down in a dense table, not to signal that
|
|
130
|
+
* something matters less. `md` matches `sm` (14 / 20); it is the step Card's body text uses.
|
|
131
|
+
*/
|
|
132
|
+
export const Sizes: StoryFn<typeof meta> = ({ ...args }) => (
|
|
133
|
+
<VStack gap={24} align='start'>
|
|
134
|
+
{SIZES.map(({ size, metrics }) => (
|
|
135
|
+
<VStack key={size} gap={4} align='start'>
|
|
136
|
+
<Text size='xs' color='secondary'>
|
|
137
|
+
size='{size}' · {metrics}
|
|
138
|
+
</Text>
|
|
139
|
+
<Text {...args} size={size}>
|
|
140
|
+
The quick brown fox jumps over the lazy dog
|
|
141
|
+
</Text>
|
|
142
|
+
</VStack>
|
|
143
|
+
))}
|
|
144
|
+
</VStack>
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* All four weights at one size. Weight is emphasis within a level, never a way to create one.
|
|
149
|
+
*/
|
|
150
|
+
export const Weights: StoryFn<typeof meta> = ({ ...args }) => (
|
|
151
|
+
<VStack align='start'>
|
|
152
|
+
<Text {...args} size='lg' weight='light'>
|
|
153
|
+
Light Weight Body Text
|
|
154
|
+
</Text>
|
|
155
|
+
<Text {...args} size='lg' weight='regular'>
|
|
156
|
+
Regular Weight Body Text
|
|
157
|
+
</Text>
|
|
158
|
+
<Text {...args} size='lg' weight='medium'>
|
|
159
|
+
Medium Weight Body Text
|
|
160
|
+
</Text>
|
|
161
|
+
<Text {...args} size='lg' weight='bold'>
|
|
162
|
+
Bold Weight Body Text
|
|
163
|
+
</Text>
|
|
164
|
+
</VStack>
|
|
165
|
+
);
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The de-emphasis ladder. Colour is how text recedes; a smaller size only makes it harder to
|
|
169
|
+
* read.
|
|
170
|
+
*/
|
|
171
|
+
export const Colors: StoryFn<typeof meta> = ({ ...args }) => (
|
|
172
|
+
<VStack align='start'>
|
|
173
|
+
<Text {...args} color='primary'>
|
|
174
|
+
Primary color text
|
|
175
|
+
</Text>
|
|
176
|
+
<Text {...args} color='primary-alt'>
|
|
177
|
+
Primary alt color text
|
|
178
|
+
</Text>
|
|
179
|
+
<Text {...args} color='secondary'>
|
|
180
|
+
Secondary color text
|
|
181
|
+
</Text>
|
|
182
|
+
<Text {...args} color='secondary-alt'>
|
|
183
|
+
Secondary alt color text
|
|
184
|
+
</Text>
|
|
185
|
+
<Text {...args} color='tertiary-alt'>
|
|
186
|
+
Tertiary alt color text
|
|
187
|
+
</Text>
|
|
188
|
+
</VStack>
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* `asChild` puts the typography on your own element, for when the tag matters to the document
|
|
193
|
+
* but the styling should still come from here.
|
|
194
|
+
*/
|
|
195
|
+
export const AsChild: StoryFn<typeof meta> = ({ ...args }) => (
|
|
196
|
+
<Text {...args} size='lg' weight='medium' asChild>
|
|
197
|
+
<span>Custom Span Element with AsChild</span>
|
|
198
|
+
</Text>
|
|
199
|
+
);
|
|
200
|
+
```
|
|
@@ -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,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,d=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of u(t))p.call(e,l)||l===r||c(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},y={},m={$dispatcherGuard:()=>x,$makeReadOnly:()=>O,$reset:()=>M,$structuralCheck:()=>D,c:()=>v,clearRenderCounterRegistry:()=>z,renderCounterRegistry:()=>k,useRenderCounter:()=>T};for(var h in m)c(y,h,{get:m[h],enumerable:!0});e.exports=d(c({},"__esModule",{value:!0}),y);var g=(l=null!=(n=r("C"))?i(f(n)):{},d(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 x(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 M(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 z(){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:f,act:p,cloneElement:d,createContext:y,createElement:m,createFactory:h,createRef:g,forwardRef:w,isValidElement:R,lazy:E,memo:b,startTransition:$,unstable_act:v,useCallback:_,useContext:S,useDebugValue:C,useDeferredValue:N,useEffect:x,useId:M,useImperativeHandle:O,useInsertionEffect:k,useLayoutEffect:z,useMemo:T,useReducer:j,useRef:D,useState:A,useSyncExternalStore:P,useTransition:I,version:W,use:L}=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:f,act:p,cloneElement:d,createContext:y,createElement:m,createFactory:h,createRef:g,default:n,forwardRef:w,isValidElement:R,lazy:E,memo:b,startTransition:$,unstable_act:v,use:L,useCallback:_,useContext:S,useDebugValue:C,useDeferredValue:N,useEffect:x,useId:M,useImperativeHandle:O,useInsertionEffect:k,useLayoutEffect:z,useMemo:T,useReducer:j,useRef:D,useState:A,useSyncExternalStore:P,useTransition:I,version:W})}},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={title:"Typography/Text",component:i,parameters:{layout:"centered",docs:{description:{component:"Geist for body copy, labels and anything read as prose — reach for `Heading` when the text is a title and `Link` when it navigates. Weight carries emphasis and colour carries de-emphasis, so build hierarchy from those rather than by changing size."}}},args:{},argTypes:{size:{control:"select",options:["xs","sm","md","lg","xl"]},weight:{control:"select",options:["light","regular","medium","bold"]},asChild:{control:"boolean"}}},s=[{size:"xl",metrics:"18 / 28"},{size:"lg",metrics:"16 / 24"},{size:"md",metrics:"14 / 20"},{size:"sm",metrics:"14 / 20"},{size:"xs",metrics:"12 / 16"}];var u=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(i,{...r,children:"Default body text"}),l[2]=r,l[3]=n):n=l[3],n},meta:c},{name:"Sizes",story:r=>{let n,l,c,u=(0,o.c)(6);return u[0]!==r?({...n}=r,u[0]=r,u[1]=n):n=u[1],u[2]!==n?(l=s.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(i,{...n,size:l,children:"The quick brown fox jumps over the lazy dog"})]},l)}),u[2]=n,u[3]=l):l=u[3],u[4]!==l?(c=e(a,{gap:24,align:"start",children:l}),u[4]=l,u[5]=c):c=u[5],c},meta:c},{name:"Weights",story:r=>{let n,l,c=(0,o.c)(4);return c[0]!==r?({...n}=r,c[0]=r,c[1]=n):n=c[1],c[2]!==n?(l=t(a,{align:"start",children:[e(i,{...n,size:"lg",weight:"light",children:"Light Weight Body Text"}),e(i,{...n,size:"lg",weight:"regular",children:"Regular Weight Body Text"}),e(i,{...n,size:"lg",weight:"medium",children:"Medium Weight Body Text"}),e(i,{...n,size:"lg",weight:"bold",children:"Bold Weight Body Text"})]}),c[2]=n,c[3]=l):l=c[3],l},meta:c},{name:"Colors",story:r=>{let n,l,c=(0,o.c)(4);return c[0]!==r?({...n}=r,c[0]=r,c[1]=n):n=c[1],c[2]!==n?(l=t(a,{align:"start",children:[e(i,{...n,color:"primary",children:"Primary color text"}),e(i,{...n,color:"primary-alt",children:"Primary alt color text"}),e(i,{...n,color:"secondary",children:"Secondary color text"}),e(i,{...n,color:"secondary-alt",children:"Secondary alt color text"}),e(i,{...n,color:"tertiary-alt",children:"Tertiary alt color text"})]}),c[2]=n,c[3]=l):l=c[3],l},meta:c},{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("span",{children:"Custom Span Element with AsChild"}),a[2]=n):n=a[2],a[3]!==r?(l=e(i,{...r,size:"lg",weight:"medium",asChild:!0,children:n}),a[3]=r,a[4]=l):l=a[4],l},meta:c}];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=()=>u.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 u.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},u.default.createElement("h2",{className:"text-sm mb-12"},e.name),u.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(u.default.createElement(window.WallarmDS.Root,null,f.map((e,t)=>u.default.createElement(p,{key:t,entry:e})))),t}}})();
|