@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,215 @@
|
|
|
1
|
+
The frame a microfrontend page renders into — a header carrying the title and its actions, then the content below. It tells the host shell how it wants to be laid out (`fullSize`, `fixedHeight`) through context and falls back to sensible behaviour when there is no host, so the same page works inside the console and on its own.
|
|
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
|
+
| `name` | `string \| undefined` | no | — | |
|
|
10
|
+
| `title` | `string \| undefined` | no | — | |
|
|
11
|
+
| `full-size` | `boolean \| undefined` | no | — | |
|
|
12
|
+
| `fixed-height` | `boolean \| undefined` | no | — | |
|
|
13
|
+
| `contained` | `boolean \| undefined` | no | — | |
|
|
14
|
+
| `default-checked` | `boolean \| undefined` | no | — | |
|
|
15
|
+
| `default-value` | `string \| number \| readonly string[] \| undefined` | no | — | |
|
|
16
|
+
| `auto-focus` | `boolean \| undefined` | no | — | |
|
|
17
|
+
| `id` | `string \| undefined` | no | — | |
|
|
18
|
+
| `tab-index` | `number \| undefined` | no | — | |
|
|
19
|
+
| `rel` | `string \| undefined` | no | — | |
|
|
20
|
+
| `on-change` | `ChangeEventHandler<T, Element> \| undefined` | no | — | |
|
|
21
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
22
|
+
|
|
23
|
+
## Sub-components
|
|
24
|
+
|
|
25
|
+
- `WallarmDS.PageActions` — `PageActionsProps` in the declaration bundle.
|
|
26
|
+
- `WallarmDS.PageContent` — `PageContentProps` in the declaration bundle.
|
|
27
|
+
- `WallarmDS.PageDescription` — `PageDescriptionProps` in the declaration bundle.
|
|
28
|
+
- `WallarmDS.PageHeader` — `PageHeaderProps` in the declaration bundle.
|
|
29
|
+
- `WallarmDS.PageHeaderGroup` — `PageHeaderGroupProps` in the declaration bundle.
|
|
30
|
+
- `WallarmDS.PageTitle` — `PageTitleProps` in the declaration bundle.
|
|
31
|
+
- `WallarmDS.PageToolbar` — `PageToolbarProps` in the declaration bundle.
|
|
32
|
+
|
|
33
|
+
## Stories
|
|
34
|
+
|
|
35
|
+
### Basic
|
|
36
|
+
|
|
37
|
+
The whole frame: `PageTitle` with a count beside it, `PageActions` on the right, `PageContent` below, asking the shell for the full width and a fixed height.
|
|
38
|
+
|
|
39
|
+
Source: Page/Page.stories.tsx#Basic
|
|
40
|
+
|
|
41
|
+
### StickyHeader
|
|
42
|
+
|
|
43
|
+
`contained` gives the page its own scroll container, which is what lets `PageHeader sticky` stick. Without it the shell does the scrolling and the header leaves with the content.
|
|
44
|
+
|
|
45
|
+
Source: Page/Page.stories.tsx#StickyHeader
|
|
46
|
+
|
|
47
|
+
### WithDescriptionAndToolbar
|
|
48
|
+
|
|
49
|
+
`PageHeaderGroup` stacks the title over a `PageDescription`; `PageToolbar` adds a filter row between the header and the content.
|
|
50
|
+
|
|
51
|
+
Source: Page/Page.stories.tsx#WithDescriptionAndToolbar
|
|
52
|
+
|
|
53
|
+
## Story sources
|
|
54
|
+
|
|
55
|
+
### Page/Page.stories.tsx
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import { useState } from 'react';
|
|
59
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
60
|
+
import { Badge } from '../Badge';
|
|
61
|
+
import { Button } from '../Button';
|
|
62
|
+
import { NumericBadge } from '../NumericBadge';
|
|
63
|
+
import { SearchInput } from '../SearchInput';
|
|
64
|
+
import { SegmentedTabs, SegmentedTabsList, SegmentedTabsTrigger } from '../SegmentedTabs';
|
|
65
|
+
import { Page, type PageProps } from './Page';
|
|
66
|
+
import { PageActions } from './PageActions';
|
|
67
|
+
import { PageContent } from './PageContent';
|
|
68
|
+
import { PageDescription } from './PageDescription';
|
|
69
|
+
import { PageHeader } from './PageHeader';
|
|
70
|
+
import { PageHeaderGroup } from './PageHeaderGroup';
|
|
71
|
+
import { PageTitle } from './PageTitle';
|
|
72
|
+
import { PageToolbar } from './PageToolbar';
|
|
73
|
+
|
|
74
|
+
const DESCRIPTION = [
|
|
75
|
+
'The frame a microfrontend page renders into — a header carrying the title and its actions, then the content below.',
|
|
76
|
+
'It tells the host shell how it wants to be laid out (`fullSize`, `fixedHeight`) through context and falls back to sensible behaviour when there is no host, so the same page works inside the console and on its own.',
|
|
77
|
+
].join(' ');
|
|
78
|
+
|
|
79
|
+
const meta = {
|
|
80
|
+
title: 'Layout/Page',
|
|
81
|
+
component: Page,
|
|
82
|
+
subcomponents: {
|
|
83
|
+
PageActions,
|
|
84
|
+
PageContent,
|
|
85
|
+
PageDescription,
|
|
86
|
+
PageHeader,
|
|
87
|
+
PageHeaderGroup,
|
|
88
|
+
PageTitle,
|
|
89
|
+
PageToolbar,
|
|
90
|
+
},
|
|
91
|
+
parameters: {
|
|
92
|
+
layout: 'fullscreen',
|
|
93
|
+
docs: {
|
|
94
|
+
description: {
|
|
95
|
+
component: DESCRIPTION,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
argTypes: {
|
|
100
|
+
name: {
|
|
101
|
+
control: { type: 'text' },
|
|
102
|
+
description: 'Unique page identifier communicated to the host shell',
|
|
103
|
+
},
|
|
104
|
+
fullSize: {
|
|
105
|
+
control: { type: 'boolean' },
|
|
106
|
+
description: 'Whether the page should occupy full available width',
|
|
107
|
+
},
|
|
108
|
+
fixedHeight: {
|
|
109
|
+
control: { type: 'boolean' },
|
|
110
|
+
description: 'Whether the page should have a fixed height',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
} satisfies Meta<typeof Page>;
|
|
114
|
+
|
|
115
|
+
export default meta;
|
|
116
|
+
|
|
117
|
+
/** The whole frame: `PageTitle` with a count beside it, `PageActions` on the right, `PageContent` below, asking the shell for the full width and a fixed height. */
|
|
118
|
+
export const Basic: StoryFn<PageProps> = () => {
|
|
119
|
+
return (
|
|
120
|
+
<Page name='full-featured' fullSize fixedHeight>
|
|
121
|
+
<PageHeader>
|
|
122
|
+
<PageTitle>Page title</PageTitle>
|
|
123
|
+
|
|
124
|
+
<Badge>1000</Badge>
|
|
125
|
+
|
|
126
|
+
<PageActions>
|
|
127
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
128
|
+
Export
|
|
129
|
+
</Button>
|
|
130
|
+
<Button size='small'>Settings</Button>
|
|
131
|
+
</PageActions>
|
|
132
|
+
</PageHeader>
|
|
133
|
+
|
|
134
|
+
<PageContent>
|
|
135
|
+
<p>Full-featured page with header actions, tabs (including disabled), and content area.</p>
|
|
136
|
+
</PageContent>
|
|
137
|
+
</Page>
|
|
138
|
+
);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/** `contained` gives the page its own scroll container, which is what lets `PageHeader sticky` stick. Without it the shell does the scrolling and the header leaves with the content. */
|
|
142
|
+
export const StickyHeader: StoryFn<PageProps> = () => {
|
|
143
|
+
return (
|
|
144
|
+
<Page name='sticky-header' contained>
|
|
145
|
+
<PageHeader sticky>
|
|
146
|
+
<PageTitle>Sticky header</PageTitle>
|
|
147
|
+
|
|
148
|
+
<PageActions>
|
|
149
|
+
<Button variant='secondary' color='neutral' size='small'>
|
|
150
|
+
Export
|
|
151
|
+
</Button>
|
|
152
|
+
<Button size='small'>Settings</Button>
|
|
153
|
+
</PageActions>
|
|
154
|
+
</PageHeader>
|
|
155
|
+
|
|
156
|
+
<PageContent>
|
|
157
|
+
{Array.from({ length: 40 }, (_, i) => (
|
|
158
|
+
<p key={`row-${i + 1}`} className='py-8'>
|
|
159
|
+
Content row {i + 1}
|
|
160
|
+
</p>
|
|
161
|
+
))}
|
|
162
|
+
</PageContent>
|
|
163
|
+
</Page>
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/** `PageHeaderGroup` stacks the title over a `PageDescription`; `PageToolbar` adds a filter row between the header and the content. */
|
|
168
|
+
export const WithDescriptionAndToolbar: StoryFn<PageProps> = () => {
|
|
169
|
+
const [search, setSearch] = useState('');
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
<Page name='with-description-and-toolbar' fixedHeight>
|
|
173
|
+
<PageHeader>
|
|
174
|
+
<PageHeaderGroup>
|
|
175
|
+
<PageTitle>Service accounts</PageTitle>
|
|
176
|
+
<PageDescription>
|
|
177
|
+
Identities for automation and API access — they sign in with keys or tokens instead of a
|
|
178
|
+
password.
|
|
179
|
+
</PageDescription>
|
|
180
|
+
</PageHeaderGroup>
|
|
181
|
+
|
|
182
|
+
<PageActions>
|
|
183
|
+
<Button size='medium'>Create service account</Button>
|
|
184
|
+
</PageActions>
|
|
185
|
+
</PageHeader>
|
|
186
|
+
|
|
187
|
+
<PageToolbar>
|
|
188
|
+
<SearchInput
|
|
189
|
+
value={search}
|
|
190
|
+
onChange={setSearch}
|
|
191
|
+
placeholder='Search name'
|
|
192
|
+
className='w-[320px]'
|
|
193
|
+
/>
|
|
194
|
+
<SegmentedTabs defaultValue='all'>
|
|
195
|
+
<SegmentedTabsList>
|
|
196
|
+
<SegmentedTabsTrigger value='all'>
|
|
197
|
+
All <NumericBadge>2</NumericBadge>
|
|
198
|
+
</SegmentedTabsTrigger>
|
|
199
|
+
<SegmentedTabsTrigger value='active'>
|
|
200
|
+
Active <NumericBadge>1</NumericBadge>
|
|
201
|
+
</SegmentedTabsTrigger>
|
|
202
|
+
<SegmentedTabsTrigger value='deactivated'>
|
|
203
|
+
Deactivated <NumericBadge>1</NumericBadge>
|
|
204
|
+
</SegmentedTabsTrigger>
|
|
205
|
+
</SegmentedTabsList>
|
|
206
|
+
</SegmentedTabs>
|
|
207
|
+
</PageToolbar>
|
|
208
|
+
|
|
209
|
+
<PageContent>
|
|
210
|
+
<p>Table goes here.</p>
|
|
211
|
+
</PageContent>
|
|
212
|
+
</Page>
|
|
213
|
+
);
|
|
214
|
+
};
|
|
215
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,r){let n,a;/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @lightSyntaxTransform
|
|
8
|
+
* @noflow
|
|
9
|
+
* @nolint
|
|
10
|
+
* @preventMunge
|
|
11
|
+
* @preserve-invariant-messages
|
|
12
|
+
*/var l,o,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of u(t))f.call(e,a)||a===r||c(e,a,{get:()=>t[a],enumerable:!(n=s(t,a))||n.enumerable});return e},m={},h={$dispatcherGuard:()=>D,$makeReadOnly:()=>O,$reset:()=>k,$structuralCheck:()=>W,c:()=>E,clearRenderCounterRegistry:()=>x,renderCounterRegistry:()=>M,useRenderCounter:()=>T};for(var y in h)c(m,y,{get:h[y],enumerable:!0});e.exports=p(c({},"__esModule",{value:!0}),m);var w=(a=null!=(n=r("C"))?i(d(n)):{},p(n&&n.__esModule?a:c(a,"default",{value:n,enumerable:!0}),n)),{useRef:g,useEffect:S,isValidElement:b}=w,_=null!=(l=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?l:w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,v=Symbol.for("react.memo_cache_sentinel"),E="function"==typeof(null==(o=w.__COMPILER_RUNTIME)?void 0:o.c)?w.__COMPILER_RUNTIME.c:function(e){return w.useMemo(()=>{let t=Array(e);for(let r=0;r<e;r++)t[r]=v;return t[v]=!0,t},[])},R={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{R[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var $=null;function N(e){return _.ReactCurrentDispatcher.current=e,_.ReactCurrentDispatcher.current}R.useMemoCache=e=>{if(null!=$)return $.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var C=[];function D(e){let t=_.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&($=t),t===R)throw Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");N(R)}else if(1===e){let e=C.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===C.length&&($=null),N(e)}else if(2===e)C.push(t),N($);else if(3===e){let e=C.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");N(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function k(e){for(let t=0;t<e.length;t++)e[t]=v}function O(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var M=new Map;function x(){for(let e of M.values())e.forEach(e=>{e.count=0})}function T(e){let t=g(null);null!=t.current&&(t.current.count+=1),S(()=>{if(null==t.current){let r,n={count:0};null==(r=M.get(e))&&(r=new Set,M.set(e,r)),r.add(n),t.current=n}return()=>{var r;let n;null!==t.current&&(r=t.current,null!=(n=M.get(e))&&n.delete(r))}})}var P=new Set;function W(e,t,r,n,a,l){function o(e,t,o,i){let c=`${n}:${l} [${a}] ${r}${o} changed from ${e} to ${t} at depth ${i}`;P.has(c)||(P.add(c),console.error(c))}!function e(t,r,n,a){if(!(a>2)){if(t!==r)if(typeof t!=typeof r)o(`type ${typeof t}`,`type ${typeof r}`,n,a);else if("object"==typeof t){let l=Array.isArray(t),i=Array.isArray(r);if(null===t&&null!==r)o("null",`type ${typeof r}`,n,a);else if(null===r)o(`type ${typeof t}`,"null",n,a);else if(t instanceof Map)if(r instanceof Map)if(t.size!==r.size)o(`Map instance with size ${t.size}`,`Map instance with size ${r.size}`,n,a);else for(let[l,i]of t)r.has(l)?e(i,r.get(l),`${n}.get(${l})`,a+1):o(`Map instance with key ${l}`,`Map instance without key ${l}`,n,a);else o("Map instance","other value",n,a);else if(r instanceof Map)o("other value","Map instance",n,a);else if(t instanceof Set)if(r instanceof Set)if(t.size!==r.size)o(`Set instance with size ${t.size}`,`Set instance with size ${r.size}`,n,a);else for(let e of r)t.has(e)||o(`Set instance without element ${e}`,`Set instance with element ${e}`,n,a);else o("Set instance","other value",n,a);else if(r instanceof Set)o("other value","Set instance",n,a);else if(l||i)if(l!==i)o(`type ${l?"array":"object"}`,`type ${i?"array":"object"}`,n,a);else if(t.length!==r.length)o(`array with length ${t.length}`,`array with length ${r.length}`,n,a);else for(let l=0;l<t.length;l++)e(t[l],r[l],`${n}[${l}]`,a+1);else if(b(t)||b(r))b(t)!==b(r)?o(`type ${b(t)?"React element":"object"}`,`type ${b(r)?"React element":"object"}`,n,a):t.type!==r.type?o(`React element of type ${t.type}`,`React element of type ${r.type}`,n,a):e(t.props,r.props,`[props of ${n}]`,a+1);else{for(let e in r)e in t||o(`object without key ${e}`,`object with key ${e}`,n,a);for(let l in t)l in r?e(t[l],r[l],`${n}.${l}`,a+1):o(`object with key ${l}`,`object without key ${l}`,n,a)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(r)?isNaN(t)!==isNaN(r)&&o(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(r)?"NaN":"non-NaN value"}`,n,a):t!==r&&o(t,r,n,a)}}}(e,t,"",0)}},p(e,t,r){let n=new WeakMap,a=new WeakMap;function l(e,t,r){let l=t,o=r;if("object"==typeof l&&null!==l&&"$$typeof"in l&&l.$$typeof===Symbol.for("react.context")&&"Provider"in l&&(l=l.Provider),"function"==typeof l&&null!=o.ref&&!l.prototype?.isReactComponent){let t=l,r=n.get(e);r||(r=new WeakMap,n.set(e,r));let a=r.get(t);a||((a=e.forwardRef((e,r)=>t({...e,ref:r}))).displayName=t.displayName??t.name,r.set(t,a)),l=a}if("string"==typeof l&&"boolean"==typeof o.inert&&((o={...o}).inert?o.inert="":delete o.inert),"string"==typeof l)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in o&&(o={...o,[t]:o[e]},delete o[e]);return"string"==typeof l&&null!=o.ref&&(l=function(e,t){let r=a.get(e);r||(r=new Map,a.set(e,r));let n=r.get(t);if(n)return n;let l=e.forwardRef((r,n)=>{let a=e.useRef(null);if(!a.current||a.current.original!==n){let e;a.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:a.current.callback})});return l.displayName=`CanvasHost(${t})`,r.set(t,l),l}(e,l)),{type:l,props:o}}function o(e){let t=(t,r,n)=>{let a=l(e,t,r??{});return e.createElement(a.type,void 0===n?a.props:{...a.props,key:n})};return{jsx:t,jsxs:(t,r,n)=>{let a=l(e,t,r??{}),{children:o,...i}=a.props;return e.createElement(a.type,void 0===n?i:{...i,key:n},...Array.isArray(o)?o:[o])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,r,...n)=>{let a=l(e,t,r??{});return e.createElement(a.type,a.props,...n)},cloneElement:(t,r,...n)=>{let a=e.cloneElement(t,r??void 0,...n),o=a.ref,i=l(e,a.type,{...a.props,ref:o});return i.type===a.type&&"string"!=typeof a.type?a:e.createElement(i.type,{...i.props,key:a.key})}}}r.d(t,{MA:()=>o,YJ:()=>i})},C(e,t,r){r.r(t);let n=(0,r("p").YJ)(window.React),{Children:a,Component:l,Fragment:o,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:f,cloneElement:p,createContext:m,createElement:h,createFactory:y,createRef:w,forwardRef:g,isValidElement:S,lazy:b,memo:_,startTransition:v,unstable_act:E,useCallback:R,useContext:$,useDebugValue:N,useDeferredValue:C,useEffect:D,useId:k,useImperativeHandle:O,useInsertionEffect:M,useLayoutEffect:x,useMemo:T,useReducer:P,useRef:W,useState:j,useSyncExternalStore:A,useTransition:I,version:z,use:L}=n;r.d(t,{},{Children:a,Component:l,Fragment:o,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:d,act:f,cloneElement:p,createContext:m,createElement:h,createFactory:y,createRef:w,default:n,forwardRef:g,isValidElement:S,lazy:b,memo:_,startTransition:v,unstable_act:E,use:L,useCallback:R,useContext:$,useDebugValue:N,useDeferredValue:C,useEffect:D,useId:k,useImperativeHandle:O,useInsertionEffect:M,useLayoutEffect:x,useMemo:T,useReducer:P,useRef:W,useState:j,useSyncExternalStore:A,useTransition:I,version:z})}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}r.d=(e,t,n)=>{var a=(t,n)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,[n]:t[a]})};a(t,"get"),a(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:a}=(0,r("p").MA)(window.React);var l=r("vD"),o=r("C");let i=window.WallarmDS.Badge,c=window.WallarmDS.Button,s=window.WallarmDS.NumericBadge,u=window.WallarmDS.SearchInput,d=window.WallarmDS.SegmentedTabs,f=window.WallarmDS.SegmentedTabsList,p=window.WallarmDS.SegmentedTabsTrigger,m=window.WallarmDS.Page,h=window.WallarmDS.PageActions,y=window.WallarmDS.PageContent,w=window.WallarmDS.PageDescription,g=window.WallarmDS.PageHeader,S=window.WallarmDS.PageHeaderGroup,b=window.WallarmDS.PageTitle,_=window.WallarmDS.PageToolbar,v={title:"Layout/Page",component:m,subcomponents:{PageActions:h,PageContent:y,PageDescription:w,PageHeader:g,PageHeaderGroup:S,PageTitle:b,PageToolbar:_},parameters:{layout:"fullscreen",docs:{description:{component:"The frame a microfrontend page renders into — a header carrying the title and its actions, then the content below. It tells the host shell how it wants to be laid out (`fullSize`, `fixedHeight`) through context and falls back to sensible behaviour when there is no host, so the same page works inside the console and on its own."}}},argTypes:{name:{control:{type:"text"},description:"Unique page identifier communicated to the host shell"},fullSize:{control:{type:"boolean"},description:"Whether the page should occupy full available width"},fixedHeight:{control:{type:"boolean"},description:"Whether the page should have a fixed height"}}};function E(e,r){return t("p",{className:"py-8",children:["Content row ",r+1]},`row-${r+1}`)}let R=[{name:"Basic",story:()=>{let r,n,a,o,s=(0,l.c)(4);return s[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(b,{children:"Page title"}),n=e(i,{children:"1000"}),s[0]=r,s[1]=n):(r=s[0],n=s[1]),s[2]===Symbol.for("react.memo_cache_sentinel")?(a=t(g,{children:[r,n,t(h,{children:[e(c,{variant:"secondary",color:"neutral",size:"small",children:"Export"}),e(c,{size:"small",children:"Settings"})]})]}),s[2]=a):a=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(o=t(m,{name:"full-featured",fullSize:!0,fixedHeight:!0,children:[a,e(y,{children:e("p",{children:"Full-featured page with header actions, tabs (including disabled), and content area."})})]}),s[3]=o):o=s[3],o},meta:v},{name:"StickyHeader",story:()=>{let r,n,a,o=(0,l.c)(3);return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=e(b,{children:"Sticky header"}),o[0]=r):r=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(g,{sticky:!0,children:[r,t(h,{children:[e(c,{variant:"secondary",color:"neutral",size:"small",children:"Export"}),e(c,{size:"small",children:"Settings"})]})]}),o[1]=n):n=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(a=t(m,{name:"sticky-header",contained:!0,children:[n,e(y,{children:Array.from({length:40},E)})]}),o[2]=a):a=o[2],a},meta:v},{name:"WithDescriptionAndToolbar",story:()=>{let r,n,a,i,v,E,R,$,N,C=(0,l.c)(12),[D,k]=(0,o.useState)("");return C[0]===Symbol.for("react.memo_cache_sentinel")?(r=t(S,{children:[e(b,{children:"Service accounts"}),e(w,{children:"Identities for automation and API access — they sign in with keys or tokens instead of a password."})]}),C[0]=r):r=C[0],C[1]===Symbol.for("react.memo_cache_sentinel")?(n=t(g,{children:[r,e(h,{children:e(c,{size:"medium",children:"Create service account"})})]}),C[1]=n):n=C[1],C[2]!==D?(a=e(u,{value:D,onChange:k,placeholder:"Search name",className:"w-[320px]"}),C[2]=D,C[3]=a):a=C[3],C[4]===Symbol.for("react.memo_cache_sentinel")?(i=t(p,{value:"all",children:["All ",e(s,{children:"2"})]}),C[4]=i):i=C[4],C[5]===Symbol.for("react.memo_cache_sentinel")?(v=t(p,{value:"active",children:["Active ",e(s,{children:"1"})]}),C[5]=v):v=C[5],C[6]===Symbol.for("react.memo_cache_sentinel")?(E=e(d,{defaultValue:"all",children:t(f,{children:[i,v,t(p,{value:"deactivated",children:["Deactivated ",e(s,{children:"1"})]})]})}),C[6]=E):E=C[6],C[7]!==a?(R=t(_,{children:[a,E]}),C[7]=a,C[8]=R):R=C[8],C[9]===Symbol.for("react.memo_cache_sentinel")?($=e(y,{children:e("p",{children:"Table goes here."})}),C[9]=$):$=C[9],C[10]!==R?(N=t(m,{name:"with-description-and-toolbar",fixedHeight:!0,children:[n,R,$]}),C[10]=R,C[11]=N):N=C[11],N},meta:v}];function $({entry:e}){let{story:t,meta:r}=e,n={...r.args,...t.args},a="function"==typeof t||t.$$typeof?t:t.render||r.render||r.component,l=()=>o.default.createElement(a,n),i={args:n,globals:{theme:"light"},parameters:{...r.parameters,...t.parameters},viewMode:"story"};for(let e of[...r.decorators||[],...t.decorators||[]].reverse()){let t=l;l=()=>e(t,i)}return o.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},o.default.createElement("h2",{className:"text-sm mb-12"},e.name),o.default.createElement(l))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(o.default.createElement(window.WallarmDS.Root,null,R.map((e,t)=>o.default.createElement($,{key:t,entry:e})))),t}}})();
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
Page-through navigation for a bounded set — previous and next, numbered pages with automatic ellipsis, and an optional rows-per-page selector. Infinite scroll is the house default for long data, so this is the deliberate alternative: reach for it when knowing and controlling your position genuinely helps — jumping to a page, coming back to page two, choosing a page size. “Lots of rows” on its own is not the cue. It is compound, so render only the parts you want, in the order you want.
|
|
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
|
+
| `count` | `number \| undefined` | no | — | Total number of data items (Ark `count`). |
|
|
10
|
+
| `page` | `number \| undefined` | no | — | Controlled current page (1-based). |
|
|
11
|
+
| `default-page` | `number \| undefined` | no | — | Uncontrolled initial page. |
|
|
12
|
+
| `page-size` | `number \| undefined` | no | — | Controlled items-per-page. |
|
|
13
|
+
| `default-page-size` | `number \| undefined` | no | — | Uncontrolled initial items-per-page. |
|
|
14
|
+
| `sibling-count` | `number \| undefined` | no | — | Pages shown beside the active page. |
|
|
15
|
+
| `boundary-count` | `number \| undefined` | no | — | Pages shown at the start/end. |
|
|
16
|
+
| `on-page-change` | `((details: PaginationPageChangeDetails) => void) \| undefined` | no | — | |
|
|
17
|
+
| `on-page-size-change` | `((details: PaginationPageSizeChangeDetails) => void) \| undefined` | no | — | |
|
|
18
|
+
| `type` | `"button" \| "link" \| undefined` | no | — | Trigger element type. |
|
|
19
|
+
| `get-page-url` | `((details: PaginationPageChangeDetails) => string) \| undefined` | no | — | |
|
|
20
|
+
| `size` | `"medium" \| "small"` | no | `medium` | Visual size. |
|
|
21
|
+
| `align` | `"left" \| "center" \| "right"` | no | `left` | Horizontal alignment of the row. |
|
|
22
|
+
| `aria-label` | `string \| undefined` | no | `PAGINATION_ROOT_LABEL` | |
|
|
23
|
+
| `data-testid` | `string \| undefined` | no | — | |
|
|
24
|
+
|
|
25
|
+
## Sub-components
|
|
26
|
+
|
|
27
|
+
- `WallarmDS.PaginationEllipsis` — `PaginationEllipsisProps` in the declaration bundle.
|
|
28
|
+
- `WallarmDS.PaginationItem` — `PaginationItemProps` in the declaration bundle.
|
|
29
|
+
- `WallarmDS.PaginationList` — `PaginationListProps` in the declaration bundle.
|
|
30
|
+
- `WallarmDS.PaginationNext` — `PaginationNextProps` in the declaration bundle.
|
|
31
|
+
- `WallarmDS.PaginationPageSize` — `PaginationPageSizeProps` in the declaration bundle.
|
|
32
|
+
- `WallarmDS.PaginationPrevious` — `PaginationPreviousProps` in the declaration bundle.
|
|
33
|
+
|
|
34
|
+
## Stories
|
|
35
|
+
|
|
36
|
+
### Full
|
|
37
|
+
|
|
38
|
+
The complete set — previous, the numbered list, next — which is what most collections want.
|
|
39
|
+
|
|
40
|
+
Source: Pagination/Pagination.stories.tsx#Full
|
|
41
|
+
|
|
42
|
+
### Simple
|
|
43
|
+
|
|
44
|
+
Numbers only. Fine where the reader is scanning to a known page rather than stepping through.
|
|
45
|
+
|
|
46
|
+
Source: Pagination/Pagination.stories.tsx#Simple
|
|
47
|
+
|
|
48
|
+
### LinksOnly
|
|
49
|
+
|
|
50
|
+
Previous and next with no numbers, for a set whose page count means nothing to the reader.
|
|
51
|
+
|
|
52
|
+
Source: Pagination/Pagination.stories.tsx#LinksOnly
|
|
53
|
+
|
|
54
|
+
### WithPageSize
|
|
55
|
+
|
|
56
|
+
`PaginationPageSize` puts rows-per-page in the same row. Offering it is the strongest reason to choose pagination over infinite scroll.
|
|
57
|
+
|
|
58
|
+
Source: Pagination/Pagination.stories.tsx#WithPageSize
|
|
59
|
+
|
|
60
|
+
### Sizes
|
|
61
|
+
|
|
62
|
+
`medium` and `small`. Small is the one to use in a `Table` footer, where the pager should not outweigh the data.
|
|
63
|
+
|
|
64
|
+
Source: Pagination/Pagination.stories.tsx#Sizes
|
|
65
|
+
|
|
66
|
+
### Alignment
|
|
67
|
+
|
|
68
|
+
`align` places the row left, centre or right — right for a table footer, centre for a standalone list.
|
|
69
|
+
|
|
70
|
+
Source: Pagination/Pagination.stories.tsx#Alignment
|
|
71
|
+
|
|
72
|
+
### ManyPages
|
|
73
|
+
|
|
74
|
+
`siblingCount` and `boundaryCount` decide how much of a 50-page set stays visible; the ellipsis is inserted for you.
|
|
75
|
+
|
|
76
|
+
Source: Pagination/Pagination.stories.tsx#ManyPages
|
|
77
|
+
|
|
78
|
+
### Playground
|
|
79
|
+
|
|
80
|
+
Controlled mode with both `page` and `pageSize` held outside, which is how it behaves against a real query.
|
|
81
|
+
|
|
82
|
+
Source: Pagination/Pagination.stories.tsx#Playground
|
|
83
|
+
|
|
84
|
+
### InTable
|
|
85
|
+
|
|
86
|
+
The pager below a `Table`, sharing its state through `useClientPagination` — the composition to copy for a paged grid.
|
|
87
|
+
|
|
88
|
+
Source: Pagination/Pagination.stories.tsx#InTable
|
|
89
|
+
|
|
90
|
+
## Story sources
|
|
91
|
+
|
|
92
|
+
### Pagination/Pagination.stories.tsx
|
|
93
|
+
|
|
94
|
+
```tsx
|
|
95
|
+
import { useState } from 'react';
|
|
96
|
+
import type { Meta, StoryFn } from 'storybook-react-rsbuild';
|
|
97
|
+
import { VStack } from '../Stack';
|
|
98
|
+
import { createTableColumnHelper, Table, type TableColumnDef } from '../Table';
|
|
99
|
+
import { Text } from '../Text';
|
|
100
|
+
import { useClientPagination } from './lib';
|
|
101
|
+
import { Pagination } from './Pagination';
|
|
102
|
+
import { PaginationEllipsis } from './PaginationEllipsis';
|
|
103
|
+
import { PaginationItem } from './PaginationItem';
|
|
104
|
+
import { PaginationList } from './PaginationList';
|
|
105
|
+
import { PaginationNext } from './PaginationNext';
|
|
106
|
+
import { PaginationPageSize } from './PaginationPageSize';
|
|
107
|
+
import { PaginationPrevious } from './PaginationPrevious';
|
|
108
|
+
|
|
109
|
+
const DESCRIPTION = [
|
|
110
|
+
'Page-through navigation for a bounded set — previous and next, numbered pages with automatic ellipsis, and an optional rows-per-page selector.',
|
|
111
|
+
'Infinite scroll is the house default for long data, so this is the deliberate alternative: reach for it when knowing and controlling your position genuinely helps — jumping to a page, coming back to page two, choosing a page size. “Lots of rows” on its own is not the cue.',
|
|
112
|
+
'It is compound, so render only the parts you want, in the order you want.',
|
|
113
|
+
].join(' ');
|
|
114
|
+
|
|
115
|
+
const meta = {
|
|
116
|
+
title: 'Navigation/Pagination',
|
|
117
|
+
component: Pagination,
|
|
118
|
+
subcomponents: {
|
|
119
|
+
PaginationPageSize,
|
|
120
|
+
PaginationPrevious,
|
|
121
|
+
PaginationList,
|
|
122
|
+
PaginationItem,
|
|
123
|
+
PaginationEllipsis,
|
|
124
|
+
PaginationNext,
|
|
125
|
+
},
|
|
126
|
+
parameters: {
|
|
127
|
+
layout: 'centered',
|
|
128
|
+
docs: {
|
|
129
|
+
description: {
|
|
130
|
+
component: DESCRIPTION,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
} satisfies Meta<typeof Pagination>;
|
|
135
|
+
|
|
136
|
+
export default meta;
|
|
137
|
+
|
|
138
|
+
/** The complete set — previous, the numbered list, next — which is what most collections want. */
|
|
139
|
+
export const Full: StoryFn<typeof Pagination> = () => (
|
|
140
|
+
<Pagination count={120} pageSize={10} defaultPage={2} align='center' aria-label='Search results'>
|
|
141
|
+
<PaginationPrevious />
|
|
142
|
+
<PaginationList />
|
|
143
|
+
<PaginationNext />
|
|
144
|
+
</Pagination>
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
// Simple = page numbers only (no prev/next links)
|
|
148
|
+
/** Numbers only. Fine where the reader is scanning to a known page rather than stepping through. */
|
|
149
|
+
export const Simple: StoryFn<typeof Pagination> = () => (
|
|
150
|
+
<Pagination count={120} pageSize={10} defaultPage={2} align='center'>
|
|
151
|
+
<PaginationList />
|
|
152
|
+
</Pagination>
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
// Links only = Previous/Next links only (no page numbers)
|
|
156
|
+
/** Previous and next with no numbers, for a set whose page count means nothing to the reader. */
|
|
157
|
+
export const LinksOnly: StoryFn<typeof Pagination> = () => (
|
|
158
|
+
<Pagination count={120} pageSize={10} defaultPage={2} align='center'>
|
|
159
|
+
<PaginationPrevious />
|
|
160
|
+
<PaginationNext />
|
|
161
|
+
</Pagination>
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
/** `PaginationPageSize` puts rows-per-page in the same row. Offering it is the strongest reason to choose pagination over infinite scroll. */
|
|
165
|
+
export const WithPageSize: StoryFn<typeof Pagination> = () => (
|
|
166
|
+
<Pagination count={120} defaultPageSize={25} defaultPage={2} align='right'>
|
|
167
|
+
<PaginationPageSize options={[10, 25, 50]} />
|
|
168
|
+
<PaginationPrevious />
|
|
169
|
+
<PaginationList />
|
|
170
|
+
<PaginationNext />
|
|
171
|
+
</Pagination>
|
|
172
|
+
);
|
|
173
|
+
|
|
174
|
+
/** `medium` and `small`. Small is the one to use in a `Table` footer, where the pager should not outweigh the data. */
|
|
175
|
+
export const Sizes: StoryFn<typeof Pagination> = () => (
|
|
176
|
+
<VStack gap={24}>
|
|
177
|
+
<Pagination count={120} pageSize={10} defaultPage={2} size='medium' align='center'>
|
|
178
|
+
<PaginationPrevious />
|
|
179
|
+
<PaginationList />
|
|
180
|
+
<PaginationNext />
|
|
181
|
+
</Pagination>
|
|
182
|
+
<Pagination count={120} pageSize={10} defaultPage={2} size='small' align='center'>
|
|
183
|
+
<PaginationPrevious />
|
|
184
|
+
<PaginationList />
|
|
185
|
+
<PaginationNext />
|
|
186
|
+
</Pagination>
|
|
187
|
+
</VStack>
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
/** `align` places the row left, centre or right — right for a table footer, centre for a standalone list. */
|
|
191
|
+
export const Alignment: StoryFn<typeof Pagination> = () => (
|
|
192
|
+
<VStack gap={24} className='w-600'>
|
|
193
|
+
{(['left', 'center', 'right'] as const).map(align => (
|
|
194
|
+
<Pagination key={align} count={120} pageSize={10} defaultPage={2} align={align}>
|
|
195
|
+
<PaginationList />
|
|
196
|
+
</Pagination>
|
|
197
|
+
))}
|
|
198
|
+
</VStack>
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
/** `siblingCount` and `boundaryCount` decide how much of a 50-page set stays visible; the ellipsis is inserted for you. */
|
|
202
|
+
export const ManyPages: StoryFn<typeof Pagination> = () => (
|
|
203
|
+
<Pagination
|
|
204
|
+
count={500}
|
|
205
|
+
pageSize={10}
|
|
206
|
+
defaultPage={6}
|
|
207
|
+
siblingCount={1}
|
|
208
|
+
boundaryCount={1}
|
|
209
|
+
align='center'
|
|
210
|
+
>
|
|
211
|
+
<PaginationPrevious />
|
|
212
|
+
<PaginationList />
|
|
213
|
+
<PaginationNext />
|
|
214
|
+
</Pagination>
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
/** Controlled mode with both `page` and `pageSize` held outside, which is how it behaves against a real query. */
|
|
218
|
+
export const Playground: StoryFn<typeof Pagination> = () => {
|
|
219
|
+
const [page, setPage] = useState(1);
|
|
220
|
+
const [pageSize, setPageSize] = useState(10);
|
|
221
|
+
return (
|
|
222
|
+
<Pagination
|
|
223
|
+
count={120}
|
|
224
|
+
page={page}
|
|
225
|
+
pageSize={pageSize}
|
|
226
|
+
align='left'
|
|
227
|
+
onPageChange={({ page }) => setPage(page)}
|
|
228
|
+
onPageSizeChange={({ pageSize }) => setPageSize(pageSize)}
|
|
229
|
+
>
|
|
230
|
+
<PaginationPageSize options={[10, 25, 50]} />
|
|
231
|
+
<PaginationPrevious />
|
|
232
|
+
<PaginationList />
|
|
233
|
+
<PaginationNext />
|
|
234
|
+
</Pagination>
|
|
235
|
+
);
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
// --- Table + Pagination footer -------------------------------------------------
|
|
239
|
+
|
|
240
|
+
interface ApiEndpoint {
|
|
241
|
+
id: string;
|
|
242
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
243
|
+
path: string;
|
|
244
|
+
requests: number;
|
|
245
|
+
status: 'Active' | 'Deprecated';
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const METHODS = ['GET', 'POST', 'PUT', 'DELETE'] as const;
|
|
249
|
+
|
|
250
|
+
const apiEndpoints: ApiEndpoint[] = Array.from({ length: 47 }, (_, i) => ({
|
|
251
|
+
id: `ep-${i + 1}`,
|
|
252
|
+
method: METHODS[i % METHODS.length] as ApiEndpoint['method'],
|
|
253
|
+
path: `/api/v2/resource/${i + 1}`,
|
|
254
|
+
requests: (i + 1) * 137,
|
|
255
|
+
status: i % 3 === 0 ? 'Deprecated' : 'Active',
|
|
256
|
+
}));
|
|
257
|
+
|
|
258
|
+
const endpointColumnHelper = createTableColumnHelper<ApiEndpoint>();
|
|
259
|
+
|
|
260
|
+
const endpointColumns: TableColumnDef<ApiEndpoint>[] = [
|
|
261
|
+
endpointColumnHelper.accessor('method', {
|
|
262
|
+
header: 'Method',
|
|
263
|
+
size: 120,
|
|
264
|
+
cell: ({ getValue }) => <Text size='sm'>{getValue()}</Text>,
|
|
265
|
+
}),
|
|
266
|
+
endpointColumnHelper.accessor('path', {
|
|
267
|
+
header: 'Endpoint',
|
|
268
|
+
size: 320,
|
|
269
|
+
cell: ({ getValue }) => <Text size='sm'>{getValue()}</Text>,
|
|
270
|
+
}),
|
|
271
|
+
endpointColumnHelper.accessor('requests', {
|
|
272
|
+
header: 'Requests',
|
|
273
|
+
size: 160,
|
|
274
|
+
cell: ({ getValue }) => <Text size='sm'>{getValue().toLocaleString()}</Text>,
|
|
275
|
+
}),
|
|
276
|
+
endpointColumnHelper.accessor('status', {
|
|
277
|
+
header: 'Status',
|
|
278
|
+
size: 160,
|
|
279
|
+
cell: ({ getValue }) => <Text size='sm'>{getValue()}</Text>,
|
|
280
|
+
}),
|
|
281
|
+
];
|
|
282
|
+
|
|
283
|
+
// "Rows per page" + page navigation share a right-aligned footer below the table.
|
|
284
|
+
/** The pager below a `Table`, sharing its state through `useClientPagination` — the composition to copy for a paged grid. */
|
|
285
|
+
export const InTable: StoryFn<typeof Pagination> = () => {
|
|
286
|
+
const { pageData, ...pagination } = useClientPagination(apiEndpoints, 10);
|
|
287
|
+
|
|
288
|
+
return (
|
|
289
|
+
<div className='w-800'>
|
|
290
|
+
<VStack gap={12}>
|
|
291
|
+
<Table data={pageData} columns={endpointColumns} getRowId={row => row.id} />
|
|
292
|
+
<Pagination {...pagination} align='right' aria-label='API endpoints'>
|
|
293
|
+
<PaginationPageSize options={[5, 10, 25]} />
|
|
294
|
+
<PaginationPrevious />
|
|
295
|
+
<PaginationList />
|
|
296
|
+
<PaginationNext />
|
|
297
|
+
</Pagination>
|
|
298
|
+
</VStack>
|
|
299
|
+
</div>
|
|
300
|
+
);
|
|
301
|
+
};
|
|
302
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var e={vD(e,t,n){let r,a;/**
|
|
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,l,i=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,m=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of u(t))p.call(e,a)||a===n||c(e,a,{get:()=>t[a],enumerable:!(r=s(t,a))||r.enumerable});return e},d={},y={$dispatcherGuard:()=>C,$makeReadOnly:()=>O,$reset:()=>z,$structuralCheck:()=>j,c:()=>R,clearRenderCounterRegistry:()=>D,renderCounterRegistry:()=>M,useRenderCounter:()=>k};for(var h in y)c(d,h,{get:y[h],enumerable:!0});e.exports=m(c({},"__esModule",{value:!0}),d);var g=(a=null!=(r=n("C"))?i(f(r)):{},m(r&&r.__esModule?a:c(a,"default",{value:r,enumerable:!0}),r)),{useRef:S,useEffect:w,isValidElement:_}=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,E=Symbol.for("react.memo_cache_sentinel"),R="function"==typeof(null==(l=g.__COMPILER_RUNTIME)?void 0:l.c)?g.__COMPILER_RUNTIME.c:function(e){return g.useMemo(()=>{let t=Array(e);for(let n=0;n<e;n++)t[n]=E;return t[E]=!0,t},[])},v={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{v[e]=()=>{throw Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var $=null;function N(e){return b.ReactCurrentDispatcher.current=e,b.ReactCurrentDispatcher.current}v.useMemoCache=e=>{if(null!=$)return $.useMemoCache(e);throw Error("React Compiler internal invariant violation: unexpected null dispatcher")};var P=[];function C(e){let t=b.ReactCurrentDispatcher.current;if(0===e){if(P.push(t),1===P.length&&($=t),t===v)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.");N(v)}else if(1===e){let e=P.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");0===P.length&&($=null),N(e)}else if(2===e)P.push(t),N($);else if(3===e){let e=P.pop();if(null==e)throw Error("React Compiler internal error: unexpected null in guard stack");N(e)}else throw Error("React Compiler internal error: unreachable block"+e)}function z(e){for(let t=0;t<e.length;t++)e[t]=E}function O(){throw Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var M=new Map;function D(){for(let e of M.values())e.forEach(e=>{e.count=0})}function k(e){let t=S(null);null!=t.current&&(t.current.count+=1),w(()=>{if(null==t.current){let n,r={count:0};null==(n=M.get(e))&&(n=new Set,M.set(e,n)),n.add(r),t.current=r}return()=>{var n;let r;null!==t.current&&(n=t.current,null!=(r=M.get(e))&&r.delete(n))}})}var T=new Set;function j(e,t,n,r,a,o){function l(e,t,l,i){let c=`${r}:${o} [${a}] ${n}${l} changed from ${e} to ${t} at depth ${i}`;T.has(c)||(T.add(c),console.error(c))}!function e(t,n,r,a){if(!(a>2)){if(t!==n)if(typeof t!=typeof n)l(`type ${typeof t}`,`type ${typeof n}`,r,a);else if("object"==typeof t){let o=Array.isArray(t),i=Array.isArray(n);if(null===t&&null!==n)l("null",`type ${typeof n}`,r,a);else if(null===n)l(`type ${typeof t}`,"null",r,a);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)l(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,a);else for(let[o,i]of t)n.has(o)?e(i,n.get(o),`${r}.get(${o})`,a+1):l(`Map instance with key ${o}`,`Map instance without key ${o}`,r,a);else l("Map instance","other value",r,a);else if(n instanceof Map)l("other value","Map instance",r,a);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)l(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,a);else for(let e of n)t.has(e)||l(`Set instance without element ${e}`,`Set instance with element ${e}`,r,a);else l("Set instance","other value",r,a);else if(n instanceof Set)l("other value","Set instance",r,a);else if(o||i)if(o!==i)l(`type ${o?"array":"object"}`,`type ${i?"array":"object"}`,r,a);else if(t.length!==n.length)l(`array with length ${t.length}`,`array with length ${n.length}`,r,a);else for(let o=0;o<t.length;o++)e(t[o],n[o],`${r}[${o}]`,a+1);else if(_(t)||_(n))_(t)!==_(n)?l(`type ${_(t)?"React element":"object"}`,`type ${_(n)?"React element":"object"}`,r,a):t.type!==n.type?l(`React element of type ${t.type}`,`React element of type ${n.type}`,r,a):e(t.props,n.props,`[props of ${r}]`,a+1);else{for(let e in n)e in t||l(`object without key ${e}`,`object with key ${e}`,r,a);for(let o in t)o in n?e(t[o],n[o],`${r}.${o}`,a+1):l(`object with key ${o}`,`object without key ${o}`,r,a)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&l(`${isNaN(t)?"NaN":"non-NaN value"}`,`${isNaN(n)?"NaN":"non-NaN value"}`,r,a):t!==n&&l(t,n,r,a)}}}(e,t,"",0)}},p(e,t,n){let r=new WeakMap,a=new WeakMap;function o(e,t,n){let o=t,l=n;if("object"==typeof o&&null!==o&&"$$typeof"in o&&o.$$typeof===Symbol.for("react.context")&&"Provider"in o&&(o=o.Provider),"function"==typeof o&&null!=l.ref&&!o.prototype?.isReactComponent){let t=o,n=r.get(e);n||(n=new WeakMap,r.set(e,n));let a=n.get(t);a||((a=e.forwardRef((e,n)=>t({...e,ref:n}))).displayName=t.displayName??t.name,n.set(t,a)),o=a}if("string"==typeof o&&"boolean"==typeof l.inert&&((l={...l}).inert?l.inert="":delete l.inert),"string"==typeof o)for(let[e,t]of[["fill-rule","fillRule"],["clip-rule","clipRule"]])e in l&&(l={...l,[t]:l[e]},delete l[e]);return"string"==typeof o&&null!=l.ref&&(o=function(e,t){let n=a.get(e);n||(n=new Map,a.set(e,n));let r=n.get(t);if(r)return r;let o=e.forwardRef((n,r)=>{let a=e.useRef(null);if(!a.current||a.current.original!==r){let e;a.current={original:r,callback:t=>{if(null==t&&e){let t=e;e=void 0,t();return}if("function"==typeof r){let n=r(t);e="function"==typeof n?n:void 0}else r&&(r.current=t)}}}return e.createElement(t,{...n,ref:a.current.callback})});return o.displayName=`CanvasHost(${t})`,n.set(t,o),o}(e,o)),{type:o,props:l}}function l(e){let t=(t,n,r)=>{let a=o(e,t,n??{});return e.createElement(a.type,void 0===r?a.props:{...a.props,key:r})};return{jsx:t,jsxs:(t,n,r)=>{let a=o(e,t,n??{}),{children:l,...i}=a.props;return e.createElement(a.type,void 0===r?i:{...i,key:r},...Array.isArray(l)?l:[l])},jsxDEV:t,Fragment:e.Fragment}}function i(e){return{...e,createElement:(t,n,...r)=>{let a=o(e,t,n??{});return e.createElement(a.type,a.props,...r)},cloneElement:(t,n,...r)=>{let a=e.cloneElement(t,n??void 0,...r),l=a.ref,i=o(e,a.type,{...a.props,ref:l});return i.type===a.type&&"string"!=typeof a.type?a:e.createElement(i.type,{...i.props,key:a.key})}}}n.d(t,{MA:()=>l,YJ:()=>i})},C(e,t,n){n.r(t);let r=(0,n("p").YJ)(window.React),{Children:a,Component:o,Fragment:l,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:f,act:p,cloneElement:m,createContext:d,createElement:y,createFactory:h,createRef:g,forwardRef:S,isValidElement:w,lazy:_,memo:b,startTransition:E,unstable_act:R,useCallback:v,useContext:$,useDebugValue:N,useDeferredValue:P,useEffect:C,useId:z,useImperativeHandle:O,useInsertionEffect:M,useLayoutEffect:D,useMemo:k,useReducer:T,useRef:j,useState:I,useSyncExternalStore:x,useTransition:A,version:W,use:L}=r;n.d(t,{},{Children:a,Component:o,Fragment:l,Profiler:i,PureComponent:c,StrictMode:s,Suspense:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:f,act:p,cloneElement:m,createContext:d,createElement:y,createFactory:h,createRef:g,default:r,forwardRef:S,isValidElement:w,lazy:_,memo:b,startTransition:E,unstable_act:R,use:L,useCallback:v,useContext:$,useDebugValue:N,useDeferredValue:P,useEffect:C,useId:z,useImperativeHandle:O,useInsertionEffect:M,useLayoutEffect:D,useMemo:k,useReducer:T,useRef:j,useState:I,useSyncExternalStore:x,useTransition:A,version:W})}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t,r)=>{var a=(t,r)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,[r]:t[a]})};a(t,"get"),a(r,"value")},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let{jsx:e,jsxs:t,jsxDEV:r,Fragment:a}=(0,n("p").MA)(window.React);var o=n("vD"),l=n("C");let i=window.WallarmDS.VStack,c=window.WallarmDS.createTableColumnHelper,s=window.WallarmDS.Table,u=window.WallarmDS.Text,f=window.WallarmDS.useClientPagination,p=window.WallarmDS.Pagination,m=window.WallarmDS.PaginationEllipsis,d=window.WallarmDS.PaginationItem,y=window.WallarmDS.PaginationList,h=window.WallarmDS.PaginationNext,g=window.WallarmDS.PaginationPageSize,S=window.WallarmDS.PaginationPrevious,w={title:"Navigation/Pagination",component:p,subcomponents:{PaginationPageSize:g,PaginationPrevious:S,PaginationList:y,PaginationItem:d,PaginationEllipsis:m,PaginationNext:h},parameters:{layout:"centered",docs:{description:{component:"Page-through navigation for a bounded set — previous and next, numbered pages with automatic ellipsis, and an optional rows-per-page selector. Infinite scroll is the house default for long data, so this is the deliberate alternative: reach for it when knowing and controlling your position genuinely helps — jumping to a page, coming back to page two, choosing a page size. “Lots of rows” on its own is not the cue. It is compound, so render only the parts you want, in the order you want."}}}},_=["GET","POST","PUT","DELETE"],b=Array.from({length:47},(e,t)=>({id:`ep-${t+1}`,method:_[t%_.length],path:`/api/v2/resource/${t+1}`,requests:(t+1)*137,status:t%3==0?"Deprecated":"Active"})),E=c(),R=[E.accessor("method",{header:"Method",size:120,cell:({getValue:t})=>e(u,{size:"sm",children:t()})}),E.accessor("path",{header:"Endpoint",size:320,cell:({getValue:t})=>e(u,{size:"sm",children:t()})}),E.accessor("requests",{header:"Requests",size:160,cell:({getValue:t})=>e(u,{size:"sm",children:t().toLocaleString()})}),E.accessor("status",{header:"Status",size:160,cell:({getValue:t})=>e(u,{size:"sm",children:t()})})];function v(t){return e(p,{count:120,pageSize:10,defaultPage:2,align:t,children:e(y,{})},t)}function $(e){return e.id}let N=[{name:"Full",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{count:120,pageSize:10,defaultPage:2,align:"center","aria-label":"Search results",children:[e(S,{}),e(y,{}),e(h,{})]}),r[0]=n):n=r[0],n},meta:w},{name:"Simple",story:()=>{let t,n=(0,o.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=e(p,{count:120,pageSize:10,defaultPage:2,align:"center",children:e(y,{})}),n[0]=t):t=n[0],t},meta:w},{name:"LinksOnly",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{count:120,pageSize:10,defaultPage:2,align:"center",children:[e(S,{}),e(h,{})]}),r[0]=n):n=r[0],n},meta:w},{name:"WithPageSize",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{count:120,defaultPageSize:25,defaultPage:2,align:"right",children:[e(g,{options:[10,25,50]}),e(S,{}),e(y,{}),e(h,{})]}),r[0]=n):n=r[0],n},meta:w},{name:"Sizes",story:()=>{let n,r,a=(0,o.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{count:120,pageSize:10,defaultPage:2,size:"medium",align:"center",children:[e(S,{}),e(y,{}),e(h,{})]}),a[0]=n):n=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(r=t(i,{gap:24,children:[n,t(p,{count:120,pageSize:10,defaultPage:2,size:"small",align:"center",children:[e(S,{}),e(y,{}),e(h,{})]})]}),a[1]=r):r=a[1],r},meta:w},{name:"Alignment",story:()=>{let t,n,r=(0,o.c)(2);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=["left","center","right"],r[0]=t):t=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(n=e(i,{gap:24,className:"w-600",children:t.map(v)}),r[1]=n):n=r[1],n},meta:w},{name:"ManyPages",story:()=>{let n,r=(0,o.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(n=t(p,{count:500,pageSize:10,defaultPage:6,siblingCount:1,boundaryCount:1,align:"center",children:[e(S,{}),e(y,{}),e(h,{})]}),r[0]=n):n=r[0],n},meta:w},{name:"Playground",story:()=>{let n,r,a,i,c,s,u,f=(0,o.c)(9),[m,d]=(0,l.useState)(1),[w,_]=(0,l.useState)(10);return f[0]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{let{page:t}=e;return d(t)},r=e=>{let{pageSize:t}=e;return _(t)},f[0]=n,f[1]=r):(n=f[0],r=f[1]),f[2]===Symbol.for("react.memo_cache_sentinel")?(a=e(g,{options:[10,25,50]}),i=e(S,{}),c=e(y,{}),s=e(h,{}),f[2]=a,f[3]=i,f[4]=c,f[5]=s):(a=f[2],i=f[3],c=f[4],s=f[5]),f[6]!==m||f[7]!==w?(u=t(p,{count:120,page:m,pageSize:w,align:"left",onPageChange:n,onPageSizeChange:r,children:[a,i,c,s]}),f[6]=m,f[7]=w,f[8]=u):u=f[8],u},meta:w},{name:"InTable",story:()=>{let n,r,a,l,c,u,m,d,w,_=(0,o.c)(14),E=f(b,10);return _[0]!==E?({pageData:n,...r}=E,_[0]=E,_[1]=n,_[2]=r):(n=_[1],r=_[2]),_[3]!==n?(a=e(s,{data:n,columns:R,getRowId:$}),_[3]=n,_[4]=a):a=_[4],_[5]===Symbol.for("react.memo_cache_sentinel")?(l=e(g,{options:[5,10,25]}),c=e(S,{}),u=e(y,{}),m=e(h,{}),_[5]=l,_[6]=c,_[7]=u,_[8]=m):(l=_[5],c=_[6],u=_[7],m=_[8]),_[9]!==r?(d=t(p,{...r,align:"right","aria-label":"API endpoints",children:[l,c,u,m]}),_[9]=r,_[10]=d):d=_[10],_[11]!==a||_[12]!==d?(w=e("div",{className:"w-800",children:t(i,{gap:12,children:[a,d]})}),_[11]=a,_[12]=d,_[13]=w):w=_[13],w},meta:w}];function P({entry:e}){let{story:t,meta:n}=e,r={...n.args,...t.args},a="function"==typeof t||t.$$typeof?t:t.render||n.render||n.component,o=()=>l.default.createElement(a,r),i={args:r,globals:{theme:"light"},parameters:{...n.parameters,...t.parameters},viewMode:"story"};for(let e of[...n.decorators||[],...t.decorators||[]].reverse()){let t=o;o=()=>e(t,i)}return l.default.createElement("section",{"data-preview-story":e.name,className:"p-16"},l.default.createElement("h2",{className:"text-sm mb-12"},e.name),l.default.createElement(o))}window.WallarmPreview={mount(e){let t=window.ReactDOM.createRoot(e);return t.render(l.default.createElement(window.WallarmDS.Root,null,N.map((e,t)=>l.default.createElement(P,{key:t,entry:e})))),t}}})();
|