@k8ordo/ui 2.3.1 → 4.0.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 +75 -183
- package/dist/catalog/icon-map.d.mts +108 -0
- package/dist/catalog/icon-map.mjs +212 -0
- package/dist/catalog/icon-names.d.mts +1 -0
- package/dist/catalog/icon-names.mjs +108 -0
- package/dist/catalog/index.d.mts +1289 -0
- package/dist/catalog/index.mjs +419 -0
- package/dist/catalog/render.css +34 -0
- package/dist/catalog/render.d.mts +72 -0
- package/dist/catalog/render.mjs +631 -0
- package/dist/catalog/render.module.mjs +11 -0
- package/dist/{integrations/_shared → catalog}/schemas.d.mts +550 -307
- package/dist/{integrations/_shared → catalog}/schemas.mjs +191 -184
- package/dist/catalog/to-tree.d.mts +4 -0
- package/dist/catalog/to-tree.mjs +17 -0
- package/dist/components/_internal/checked-values.d.mts +1 -0
- package/dist/components/_internal/checked-values.mjs +5 -0
- package/dist/components/_internal/field-message.css +25 -0
- package/dist/components/_internal/field-message.d.mts +10 -0
- package/dist/components/_internal/field-message.mjs +22 -0
- package/dist/components/_internal/field-message.module.mjs +9 -0
- package/dist/components/_internal/focus-ring.css +1 -1
- package/dist/components/_internal/high-contrast.css +1 -0
- package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
- package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
- package/dist/components/ai/_internal/attachment-preview.mjs +3 -3
- package/dist/components/ai/_internal/collapsible.mjs +2 -2
- package/dist/components/ai/attachment/attachment.d.mts +1 -1
- package/dist/components/ai/attachment/index.d.mts +1 -1
- package/dist/components/ai/conversation/conversation.mjs +4 -4
- package/dist/components/ai/index.d.mts +2 -2
- package/dist/components/ai/message/index.d.mts +2 -2
- package/dist/components/ai/message/message.d.mts +2 -2
- package/dist/components/ai/message/message.mjs +14 -12
- package/dist/components/ai/prompt-input/prompt-input.mjs +5 -5
- package/dist/components/ai/reasoning/reasoning.mjs +1 -1
- package/dist/components/ai/source/index.d.mts +2 -2
- package/dist/components/ai/source/source.d.mts +2 -2
- package/dist/components/ai/source/source.mjs +2 -2
- package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
- package/dist/components/ai/tool-invocation/tool-invocation.mjs +2 -1
- package/dist/components/buttons/button/button.css +1 -1
- package/dist/components/buttons/button/button.d.mts +34 -37
- package/dist/components/buttons/button/button.mjs +37 -24
- package/dist/components/buttons/button/button.module.mjs +0 -1
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.mjs +6 -4
- package/dist/components/buttons/icon-button/icon-button.css +3 -3
- package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
- package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
- package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/toolbar.css +5 -1
- package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
- package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
- package/dist/components/data-display/accordion/accordion-button.mjs +5 -5
- package/dist/components/data-display/accordion/index.d.mts +3 -3
- package/dist/components/data-display/card/card-action.d.mts +6 -0
- package/dist/components/data-display/card/card-action.mjs +21 -0
- package/dist/components/data-display/card/card.css +24 -0
- package/dist/components/data-display/card/card.d.mts +26 -3
- package/dist/components/data-display/card/card.mjs +46 -6
- package/dist/components/data-display/card/card.module.mjs +4 -1
- package/dist/components/data-display/card/index.d.mts +2 -2
- package/dist/components/data-display/carousel/carousel.mjs +3 -3
- package/dist/components/data-display/code/code.css +4 -0
- package/dist/components/data-display/code-block/code-block.mjs +1 -1
- package/dist/components/data-display/data-table/data-table.css +0 -3
- package/dist/components/data-display/data-table/data-table.mjs +25 -26
- package/dist/components/data-display/tree/tree.d.mts +1 -1
- package/dist/components/data-display/tree/tree.mjs +7 -6
- package/dist/components/feedback/alert/alert.d.mts +2 -7
- package/dist/components/feedback/alert/alert.mjs +12 -11
- package/dist/components/feedback/alert/index.d.mts +2 -2
- package/dist/components/feedback/callout/callout.mjs +3 -3
- package/dist/components/feedback/progress/progress.mjs +1 -1
- package/dist/components/feedback/toast/context.d.mts +4 -5
- package/dist/components/feedback/toast/index.d.mts +2 -2
- package/dist/components/feedback/toast/provider.d.mts +7 -2
- package/dist/components/feedback/toast/provider.mjs +7 -2
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +15 -12
- package/dist/components/form/calendar/calendar.mjs +4 -6
- package/dist/components/form/checkbox/checkbox.d.mts +3 -1
- package/dist/components/form/checkbox/checkbox.mjs +45 -45
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
- package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
- package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
- package/dist/components/form/checkbox-group/index.d.mts +2 -34
- package/dist/components/form/checkbox-group/index.mjs +1 -8
- package/dist/components/form/color-picker/color-picker.css +3 -5
- package/dist/components/form/color-picker/color-picker.d.mts +0 -1
- package/dist/components/form/color-picker/color-picker.mjs +4 -4
- package/dist/components/form/combobox/combobox.d.mts +0 -1
- package/dist/components/form/combobox/combobox.mjs +9 -8
- package/dist/components/form/date-picker/date-picker.css +0 -5
- package/dist/components/form/date-picker/date-picker.mjs +22 -23
- package/dist/components/form/file-field/file-field.d.mts +6 -3
- package/dist/components/form/file-field/file-field.mjs +42 -19
- package/dist/components/form/file-field/index.d.mts +4 -1
- package/dist/components/form/form/form.mjs +0 -1
- package/dist/components/form/form-control/form-control.css +0 -15
- package/dist/components/form/form-control/form-control.d.mts +3 -4
- package/dist/components/form/form-control/form-control.mjs +44 -46
- package/dist/components/form/form-control/form-control.module.mjs +0 -3
- package/dist/components/form/number-field/number-field.d.mts +2 -2
- package/dist/components/form/number-field/number-field.mjs +13 -52
- package/dist/components/form/password-input/password-input.mjs +3 -2
- package/dist/components/form/radio/radio.mjs +4 -2
- package/dist/components/form/radio-card/radio-card.mjs +9 -2
- package/dist/components/form/range-slider/range-slider.d.mts +4 -2
- package/dist/components/form/range-slider/range-slider.mjs +2 -4
- package/dist/components/form/select/select.css +6 -4
- package/dist/components/form/select/select.d.mts +5 -0
- package/dist/components/form/select/select.mjs +10 -7
- package/dist/components/form/slider/slider.d.mts +2 -2
- package/dist/components/form/slider/slider.mjs +3 -6
- package/dist/components/form/switch/switch.d.mts +3 -0
- package/dist/components/form/switch/switch.mjs +43 -31
- package/dist/components/form/text-field/index.d.mts +2 -2
- package/dist/components/form/text-field/text-field.css +4 -0
- package/dist/components/form/text-field/text-field.d.mts +1 -1
- package/dist/components/form/textarea/textarea.d.mts +0 -1
- package/dist/components/form/textarea/textarea.mjs +1 -1
- package/dist/components/icons/alert.d.mts +6 -0
- package/dist/components/icons/alert.mjs +17 -0
- package/dist/components/icons/{vertical-writing.d.mts → arrow-down.d.mts} +1 -1
- package/dist/components/icons/arrow-down.mjs +8 -0
- package/dist/components/icons/arrow-left.d.mts +3 -0
- package/dist/components/icons/arrow-left.mjs +8 -0
- package/dist/components/icons/arrow-right.d.mts +3 -0
- package/dist/components/icons/arrow-right.mjs +8 -0
- package/dist/components/icons/{twitter.d.mts → arrow-up.d.mts} +1 -1
- package/dist/components/icons/arrow-up.mjs +8 -0
- package/dist/components/icons/base.d.mts +0 -1
- package/dist/components/icons/base.mjs +1 -2
- package/dist/components/icons/{qiita.d.mts → bell.d.mts} +1 -1
- package/dist/components/icons/bell.mjs +8 -0
- package/dist/components/icons/{github-mark.d.mts → blend.d.mts} +1 -1
- package/dist/components/icons/blend.mjs +16 -0
- package/dist/components/icons/book-text.d.mts +3 -0
- package/dist/components/icons/book-text.mjs +8 -0
- package/dist/components/icons/bookmark.d.mts +3 -0
- package/dist/components/icons/bookmark.mjs +8 -0
- package/dist/components/icons/bot-message.d.mts +3 -0
- package/dist/components/icons/bot-message.mjs +8 -0
- package/dist/components/icons/bot.d.mts +3 -0
- package/dist/components/icons/bot.mjs +14 -0
- package/dist/components/icons/calendar.d.mts +3 -0
- package/dist/components/icons/calendar.mjs +14 -0
- package/dist/components/icons/check.d.mts +3 -0
- package/dist/components/icons/check.mjs +8 -0
- package/dist/components/icons/chevron-down.d.mts +3 -0
- package/dist/components/icons/chevron-down.mjs +8 -0
- package/dist/components/icons/chevron-left.d.mts +3 -0
- package/dist/components/icons/chevron-left.mjs +8 -0
- package/dist/components/icons/chevron-right.d.mts +3 -0
- package/dist/components/icons/chevron-right.mjs +8 -0
- package/dist/components/icons/chevron-up.d.mts +3 -0
- package/dist/components/icons/chevron-up.mjs +8 -0
- package/dist/components/icons/chevron.d.mts +6 -0
- package/dist/components/icons/chevron.mjs +17 -0
- package/dist/components/icons/chevrons-up-down.d.mts +3 -0
- package/dist/components/icons/chevrons-up-down.mjs +8 -0
- package/dist/components/icons/circle-alert.d.mts +3 -0
- package/dist/components/icons/circle-alert.mjs +12 -0
- package/dist/components/icons/circle-check.d.mts +3 -0
- package/dist/components/icons/circle-check.mjs +12 -0
- package/dist/components/icons/circle-help.d.mts +3 -0
- package/dist/components/icons/circle-help.mjs +12 -0
- package/dist/components/icons/circle-x.d.mts +3 -0
- package/dist/components/icons/circle-x.mjs +12 -0
- package/dist/components/icons/clipboard-check.d.mts +3 -0
- package/dist/components/icons/clipboard-check.mjs +18 -0
- package/dist/components/icons/clock.d.mts +3 -0
- package/dist/components/icons/clock.mjs +12 -0
- package/dist/components/icons/code.d.mts +3 -0
- package/dist/components/icons/code.mjs +8 -0
- package/dist/components/icons/color-scale.mjs +18 -30
- package/dist/components/icons/contrast.d.mts +3 -0
- package/dist/components/icons/contrast.mjs +15 -0
- package/dist/components/icons/copy.d.mts +3 -0
- package/dist/components/icons/copy.mjs +14 -0
- package/dist/components/icons/download.d.mts +3 -0
- package/dist/components/icons/download.mjs +8 -0
- package/dist/components/icons/ellipsis-vertical.d.mts +3 -0
- package/dist/components/icons/ellipsis-vertical.mjs +27 -0
- package/dist/components/icons/ellipsis.d.mts +3 -0
- package/dist/components/icons/ellipsis.mjs +27 -0
- package/dist/components/icons/external-link.d.mts +3 -0
- package/dist/components/icons/external-link.mjs +8 -0
- package/dist/components/icons/eye-closed.d.mts +3 -0
- package/dist/components/icons/eye-closed.mjs +8 -0
- package/dist/components/icons/eye.d.mts +3 -0
- package/dist/components/icons/eye.mjs +12 -0
- package/dist/components/icons/file-text.d.mts +3 -0
- package/dist/components/icons/file-text.mjs +12 -0
- package/dist/components/icons/file.d.mts +3 -0
- package/dist/components/icons/file.mjs +8 -0
- package/dist/components/icons/filter.d.mts +3 -0
- package/dist/components/icons/filter.mjs +8 -0
- package/dist/components/icons/flask.d.mts +3 -0
- package/dist/components/icons/flask.mjs +8 -0
- package/dist/components/icons/folder-open.d.mts +3 -0
- package/dist/components/icons/folder-open.mjs +8 -0
- package/dist/components/icons/folder.d.mts +3 -0
- package/dist/components/icons/folder.mjs +8 -0
- package/dist/components/icons/git-fork.d.mts +3 -0
- package/dist/components/icons/git-fork.mjs +25 -0
- package/dist/components/icons/git-pull-request.d.mts +3 -0
- package/dist/components/icons/git-pull-request.mjs +20 -0
- package/dist/components/icons/globe.d.mts +3 -0
- package/dist/components/icons/globe.mjs +12 -0
- package/dist/components/icons/grid.d.mts +3 -0
- package/dist/components/icons/grid.mjs +37 -0
- package/dist/components/icons/grip-vertical.d.mts +3 -0
- package/dist/components/icons/grip-vertical.mjs +45 -0
- package/dist/components/icons/heart.d.mts +3 -0
- package/dist/components/icons/heart.mjs +8 -0
- package/dist/components/icons/history.d.mts +3 -0
- package/dist/components/icons/history.mjs +8 -0
- package/dist/components/icons/home.d.mts +3 -0
- package/dist/components/icons/home.mjs +8 -0
- package/dist/components/icons/image.d.mts +3 -0
- package/dist/components/icons/image.mjs +22 -0
- package/dist/components/icons/index.d.mts +107 -9
- package/dist/components/icons/index.mjs +107 -8
- package/dist/components/icons/info.d.mts +3 -0
- package/dist/components/icons/info.mjs +12 -0
- package/dist/components/icons/lightbulb.d.mts +3 -0
- package/dist/components/icons/lightbulb.mjs +8 -0
- package/dist/components/icons/line-icon.d.mts +3 -0
- package/dist/components/icons/line-icon.mjs +17 -0
- package/dist/components/icons/link.d.mts +3 -0
- package/dist/components/icons/link.mjs +11 -0
- package/dist/components/icons/list.d.mts +3 -0
- package/dist/components/icons/list.mjs +8 -0
- package/dist/components/icons/lock-open.d.mts +3 -0
- package/dist/components/icons/lock-open.mjs +14 -0
- package/dist/components/icons/lock.d.mts +3 -0
- package/dist/components/icons/lock.mjs +14 -0
- package/dist/components/icons/log-in.d.mts +3 -0
- package/dist/components/icons/log-in.mjs +8 -0
- package/dist/components/icons/log-out.d.mts +3 -0
- package/dist/components/icons/log-out.mjs +8 -0
- package/dist/components/icons/mail.d.mts +3 -0
- package/dist/components/icons/mail.mjs +14 -0
- package/dist/components/icons/map-pin.d.mts +3 -0
- package/dist/components/icons/map-pin.mjs +12 -0
- package/dist/components/icons/maximize.d.mts +3 -0
- package/dist/components/icons/maximize.mjs +8 -0
- package/dist/components/icons/menu.d.mts +3 -0
- package/dist/components/icons/menu.mjs +8 -0
- package/dist/components/icons/message-circle.d.mts +3 -0
- package/dist/components/icons/message-circle.mjs +8 -0
- package/dist/components/icons/minimize.d.mts +3 -0
- package/dist/components/icons/minimize.mjs +8 -0
- package/dist/components/icons/minus.d.mts +3 -0
- package/dist/components/icons/minus.mjs +8 -0
- package/dist/components/icons/monitor.d.mts +3 -0
- package/dist/components/icons/monitor.mjs +14 -0
- package/dist/components/icons/moon.d.mts +3 -0
- package/dist/components/icons/moon.mjs +8 -0
- package/dist/components/icons/package.d.mts +3 -0
- package/dist/components/icons/package.mjs +8 -0
- package/dist/components/icons/paint-bucket.d.mts +3 -0
- package/dist/components/icons/paint-bucket.mjs +8 -0
- package/dist/components/icons/palette.d.mts +3 -0
- package/dist/components/icons/palette.mjs +8 -0
- package/dist/components/icons/panel-left.d.mts +3 -0
- package/dist/components/icons/panel-left.mjs +14 -0
- package/dist/components/icons/paperclip.d.mts +3 -0
- package/dist/components/icons/paperclip.mjs +11 -0
- package/dist/components/icons/pause.d.mts +3 -0
- package/dist/components/icons/pause.mjs +20 -0
- package/dist/components/icons/pencil.d.mts +3 -0
- package/dist/components/icons/pencil.mjs +8 -0
- package/dist/components/icons/pin.d.mts +3 -0
- package/dist/components/icons/pin.mjs +11 -0
- package/dist/components/icons/play.d.mts +3 -0
- package/dist/components/icons/play.mjs +8 -0
- package/dist/components/icons/plus.d.mts +3 -0
- package/dist/components/icons/plus.mjs +8 -0
- package/dist/components/icons/presentation.d.mts +3 -0
- package/dist/components/icons/presentation.mjs +8 -0
- package/dist/components/icons/redo.d.mts +3 -0
- package/dist/components/icons/redo.mjs +8 -0
- package/dist/components/icons/refresh.d.mts +3 -0
- package/dist/components/icons/refresh.mjs +8 -0
- package/dist/components/icons/rocket.d.mts +3 -0
- package/dist/components/icons/rocket.mjs +19 -0
- package/dist/components/icons/rss.d.mts +3 -0
- package/dist/components/icons/rss.mjs +13 -0
- package/dist/components/icons/search.d.mts +3 -0
- package/dist/components/icons/search.mjs +12 -0
- package/dist/components/icons/send.d.mts +3 -0
- package/dist/components/icons/send.mjs +8 -0
- package/dist/components/icons/settings.d.mts +3 -0
- package/dist/components/icons/settings.mjs +12 -0
- package/dist/components/icons/share.d.mts +3 -0
- package/dist/components/icons/share.mjs +25 -0
- package/dist/components/icons/shield-check.d.mts +3 -0
- package/dist/components/icons/shield-check.mjs +8 -0
- package/dist/components/icons/smile.d.mts +3 -0
- package/dist/components/icons/smile.mjs +12 -0
- package/dist/components/icons/sparkles.d.mts +3 -0
- package/dist/components/icons/sparkles.mjs +8 -0
- package/dist/components/icons/square.d.mts +3 -0
- package/dist/components/icons/square.mjs +14 -0
- package/dist/components/icons/squircle.d.mts +3 -0
- package/dist/components/icons/squircle.mjs +8 -0
- package/dist/components/icons/star.d.mts +3 -0
- package/dist/components/icons/star.mjs +8 -0
- package/dist/components/icons/sun.d.mts +3 -0
- package/dist/components/icons/sun.mjs +12 -0
- package/dist/components/icons/table.d.mts +3 -0
- package/dist/components/icons/table.mjs +14 -0
- package/dist/components/icons/tag.d.mts +3 -0
- package/dist/components/icons/tag.mjs +8 -0
- package/dist/components/icons/text-horizontal.d.mts +3 -0
- package/dist/components/icons/text-horizontal.mjs +8 -0
- package/dist/components/icons/text-vertical.d.mts +3 -0
- package/dist/components/icons/text-vertical.mjs +8 -0
- package/dist/components/icons/thumbs-down.d.mts +3 -0
- package/dist/components/icons/thumbs-down.mjs +8 -0
- package/dist/components/icons/thumbs-up.d.mts +3 -0
- package/dist/components/icons/thumbs-up.mjs +8 -0
- package/dist/components/icons/trash.d.mts +3 -0
- package/dist/components/icons/trash.mjs +8 -0
- package/dist/components/icons/triangle-alert.d.mts +3 -0
- package/dist/components/icons/triangle-alert.mjs +8 -0
- package/dist/components/icons/undo.d.mts +3 -0
- package/dist/components/icons/undo.mjs +8 -0
- package/dist/components/icons/upload.d.mts +3 -0
- package/dist/components/icons/upload.mjs +8 -0
- package/dist/components/icons/user.d.mts +3 -0
- package/dist/components/icons/user.mjs +12 -0
- package/dist/components/icons/users.d.mts +3 -0
- package/dist/components/icons/users.mjs +12 -0
- package/dist/components/icons/x.d.mts +3 -0
- package/dist/components/icons/x.mjs +8 -0
- package/dist/components/index.d.mts +58 -76
- package/dist/components/index.mjs +13 -27
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
- package/dist/components/navigation/anchor/anchor.css +3 -3
- package/dist/components/navigation/anchor/anchor.mjs +20 -7
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
- package/dist/components/navigation/pagination/pagination.d.mts +2 -2
- package/dist/components/navigation/pagination/pagination.mjs +3 -3
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
- package/dist/components/navigation/stepper/stepper.mjs +3 -3
- package/dist/components/navigation/tabs/index.d.mts +10 -5
- package/dist/components/navigation/tabs/tabs.d.mts +11 -6
- package/dist/components/navigation/tabs/tabs.mjs +24 -27
- package/dist/components/overlays/_internal/modal-header.css +38 -0
- package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
- package/dist/components/overlays/_internal/modal-header.mjs +32 -0
- package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
- package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
- package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
- package/dist/components/overlays/context-menu/index.d.mts +27 -2
- package/dist/components/overlays/dialog/dialog.css +3 -21
- package/dist/components/overlays/dialog/dialog.d.mts +20 -9
- package/dist/components/overlays/dialog/dialog.mjs +35 -73
- package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
- package/dist/components/overlays/dialog/index.d.mts +2 -15
- package/dist/components/overlays/dialog/index.mjs +1 -8
- package/dist/components/overlays/drawer/drawer.css +4 -26
- package/dist/components/overlays/drawer/drawer.d.mts +7 -2
- package/dist/components/overlays/drawer/drawer.mjs +24 -37
- package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +30 -12
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
- package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
- package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
- package/dist/components/overlays/dropdown-menu/shared.css +1 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
- package/dist/components/overlays/list-box/hooks.mjs +2 -2
- package/dist/components/overlays/list-box/index.d.mts +2 -25
- package/dist/components/overlays/list-box/index.mjs +1 -9
- package/dist/components/overlays/list-box/list-box.d.mts +11 -16
- package/dist/components/overlays/list-box/list-box.mjs +24 -16
- package/dist/components/overlays/modal/modal.d.mts +8 -7
- package/dist/components/overlays/modal/modal.mjs +23 -32
- package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
- package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
- package/dist/components/overlays/popover/hooks.d.mts +0 -2
- package/dist/components/overlays/popover/hooks.mjs +0 -2
- package/dist/components/overlays/popover/index.d.mts +19 -2
- package/dist/components/overlays/popover/index.mjs +7 -2
- package/dist/components/overlays/popover/popover.css +6 -0
- package/dist/components/overlays/popover/popover.d.mts +15 -2
- package/dist/components/overlays/popover/popover.mjs +28 -13
- package/dist/components/overlays/popover/popover.module.mjs +2 -1
- package/dist/components/overlays/tooltip/bridge.css +1 -1
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
- package/dist/helpers/index.mjs +1 -1
- package/dist/i18n/en.mjs +1 -2
- package/dist/i18n/index.d.mts +3 -4
- package/dist/i18n/index.mjs +1 -2
- package/dist/i18n/ja.mjs +1 -2
- package/dist/i18n/messages.d.mts +2 -4
- package/dist/i18n/usage.d.mts +2 -1
- package/dist/i18n/usage.mjs +3 -3
- package/dist/index.d.mts +30 -45
- package/dist/index.mjs +4 -18
- package/dist/internal/iso-date.mjs +1 -1
- package/dist/styles/index.css +79 -231
- package/dist/styles/tailwind.css +1 -4
- package/dist/styles/tokens.css +281 -0
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/variables.d.mts +4 -2
- package/docs/GUIDE.md +145 -69
- package/docs/llms.txt +38 -11
- package/docs/props.generated.json +1414 -645
- package/docs/references/ai-chat.md +94 -44
- package/docs/references/color.md +15 -15
- package/docs/references/components.md +636 -504
- package/docs/references/generative-ui.md +378 -187
- package/docs/references/interaction-design.md +6 -5
- package/docs/references/spatial-design.md +8 -8
- package/docs/references/types.md +22 -25
- package/package.json +43 -73
- package/dist/components/ai/_internal/icons.d.mts +0 -6
- package/dist/components/ai/_internal/icons.mjs +0 -13
- package/dist/components/form/date-field/date-field.css +0 -31
- package/dist/components/form/date-field/date-field.d.mts +0 -7
- package/dist/components/form/date-field/date-field.mjs +0 -19
- package/dist/components/form/date-field/date-field.module.mjs +0 -4
- package/dist/components/form/date-field/index.d.mts +0 -2
- package/dist/components/form/date-field/index.mjs +0 -1
- package/dist/components/icons/browsers.d.mts +0 -6
- package/dist/components/icons/browsers.mjs +0 -890
- package/dist/components/icons/github-mark.mjs +0 -18
- package/dist/components/icons/logo.css +0 -17
- package/dist/components/icons/logo.d.mts +0 -4
- package/dist/components/icons/logo.mjs +0 -29
- package/dist/components/icons/logo.module.mjs +0 -8
- package/dist/components/icons/lucide-imports.d.mts +0 -67
- package/dist/components/icons/lucide-imports.mjs +0 -67
- package/dist/components/icons/lucide.d.mts +0 -67
- package/dist/components/icons/lucide.mjs +0 -255
- package/dist/components/icons/qiita.mjs +0 -27
- package/dist/components/icons/twitter.css +0 -9
- package/dist/components/icons/twitter.mjs +0 -20
- package/dist/components/icons/twitter.module.mjs +0 -4
- package/dist/components/icons/vertical-writing.mjs +0 -25
- package/dist/components/observers/in-view/index.d.mts +0 -2
- package/dist/components/observers/in-view/index.mjs +0 -1
- package/dist/components/observers/resize/index.d.mts +0 -2
- package/dist/components/observers/resize/index.mjs +0 -1
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
- package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
- package/dist/components/providers/index.d.mts +0 -3
- package/dist/components/providers/index.mjs +0 -3
- package/dist/components/providers/portal-root.d.mts +0 -8
- package/dist/components/providers/portal-root.mjs +0 -11
- package/dist/components/providers/ui-provider.d.mts +0 -2
- package/dist/components/providers/ui-provider.mjs +0 -6
- package/dist/integrations/_shared/openui-defs.d.mts +0 -15
- package/dist/integrations/_shared/openui-defs.mjs +0 -230
- package/dist/integrations/_shared/renderers.css +0 -50
- package/dist/integrations/_shared/renderers.d.mts +0 -88
- package/dist/integrations/_shared/renderers.mjs +0 -936
- package/dist/integrations/_shared/renderers.module.mjs +0 -13
- package/dist/integrations/ai-sdk/index.d.mts +0 -3
- package/dist/integrations/ai-sdk/index.mjs +0 -1
- package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
- package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
- package/dist/integrations/json-render/catalog.d.mts +0 -1155
- package/dist/integrations/json-render/catalog.mjs +0 -373
- package/dist/integrations/json-render/registry.d.mts +0 -26
- package/dist/integrations/json-render/registry.mjs +0 -192
- package/dist/integrations/openui/form-views.d.mts +0 -24
- package/dist/integrations/openui/form-views.mjs +0 -89
- package/dist/integrations/openui/library.d.mts +0 -202
- package/dist/integrations/openui/library.mjs +0 -83
- package/dist/integrations/openui/prompt.d.mts +0 -2
- package/dist/integrations/openui/prompt.mjs +0 -18
- /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
- /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
- /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
|
@@ -1,1155 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { Spec, UIElement } from "@json-render/core";
|
|
3
|
-
/**
|
|
4
|
-
* `@k8ordo/ui/json-render`(サーバー安全)
|
|
5
|
-
*
|
|
6
|
-
* LLM が生成してよい部品の契約(Zod スキーマのみ)。React に依存しないので
|
|
7
|
-
* RSC のサーバーコンポーネントから import して `catalog.prompt()` で
|
|
8
|
-
* システムプロンプトを生成できる。
|
|
9
|
-
*
|
|
10
|
-
* 実際の描画は `@k8ordo/ui/json-render/registry`('use client')。
|
|
11
|
-
*/
|
|
12
|
-
export declare const catalog: import("@json-render/core").Catalog<{
|
|
13
|
-
spec: import("@json-render/core").SchemaType<"object", {
|
|
14
|
-
root: import("@json-render/core").SchemaType<"string", unknown>;
|
|
15
|
-
elements: import("@json-render/core").SchemaType<"record", import("@json-render/core").SchemaType<"object", {
|
|
16
|
-
type: import("@json-render/core").SchemaType<"ref", string>;
|
|
17
|
-
props: import("@json-render/core").SchemaType<"propsOf", string>;
|
|
18
|
-
children: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
|
|
19
|
-
slots: {
|
|
20
|
-
optional: true;
|
|
21
|
-
kind: "record";
|
|
22
|
-
inner?: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>> | undefined;
|
|
23
|
-
};
|
|
24
|
-
visible: {
|
|
25
|
-
optional: true;
|
|
26
|
-
kind: "any";
|
|
27
|
-
inner?: unknown;
|
|
28
|
-
};
|
|
29
|
-
repeat: {
|
|
30
|
-
optional: true;
|
|
31
|
-
kind: "any";
|
|
32
|
-
inner?: unknown;
|
|
33
|
-
};
|
|
34
|
-
}>>;
|
|
35
|
-
}>;
|
|
36
|
-
catalog: import("@json-render/core").SchemaType<"object", {
|
|
37
|
-
components: import("@json-render/core").SchemaType<"map", {
|
|
38
|
-
props: import("@json-render/core").SchemaType<"zod", unknown>;
|
|
39
|
-
slots: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
|
|
40
|
-
description: import("@json-render/core").SchemaType<"string", unknown>;
|
|
41
|
-
example: import("@json-render/core").SchemaType<"any", unknown>;
|
|
42
|
-
}>;
|
|
43
|
-
actions: import("@json-render/core").SchemaType<"map", {
|
|
44
|
-
params: import("@json-render/core").SchemaType<"zod", unknown>;
|
|
45
|
-
description: import("@json-render/core").SchemaType<"string", unknown>;
|
|
46
|
-
}>;
|
|
47
|
-
}>;
|
|
48
|
-
}, {
|
|
49
|
-
components: {
|
|
50
|
-
Stack: {
|
|
51
|
-
props: z.ZodObject<{
|
|
52
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
53
|
-
column: "column";
|
|
54
|
-
row: "row";
|
|
55
|
-
}>>;
|
|
56
|
-
gap: z.ZodOptional<z.ZodEnum<{
|
|
57
|
-
lg: "lg";
|
|
58
|
-
md: "md";
|
|
59
|
-
none: "none";
|
|
60
|
-
sm: "sm";
|
|
61
|
-
xl: "xl";
|
|
62
|
-
}>>;
|
|
63
|
-
padding: z.ZodOptional<z.ZodEnum<{
|
|
64
|
-
lg: "lg";
|
|
65
|
-
md: "md";
|
|
66
|
-
none: "none";
|
|
67
|
-
sm: "sm";
|
|
68
|
-
xl: "xl";
|
|
69
|
-
}>>;
|
|
70
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
center: "center";
|
|
72
|
-
end: "end";
|
|
73
|
-
start: "start";
|
|
74
|
-
stretch: "stretch";
|
|
75
|
-
}>>;
|
|
76
|
-
justify: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
between: "between";
|
|
78
|
-
center: "center";
|
|
79
|
-
end: "end";
|
|
80
|
-
start: "start";
|
|
81
|
-
}>>;
|
|
82
|
-
}, z.core.$strip>;
|
|
83
|
-
slots: string[];
|
|
84
|
-
description: string;
|
|
85
|
-
};
|
|
86
|
-
Grid: {
|
|
87
|
-
props: z.ZodObject<{
|
|
88
|
-
cols: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<"auto-fill">, z.ZodLiteral<"auto-fit">]>>;
|
|
89
|
-
minItemSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<24>, z.ZodLiteral<32>, z.ZodLiteral<40>, z.ZodLiteral<48>, z.ZodLiteral<64>, z.ZodLiteral<80>]>>;
|
|
90
|
-
gap: z.ZodOptional<z.ZodEnum<{
|
|
91
|
-
lg: "lg";
|
|
92
|
-
md: "md";
|
|
93
|
-
none: "none";
|
|
94
|
-
sm: "sm";
|
|
95
|
-
xl: "xl";
|
|
96
|
-
}>>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
slots: string[];
|
|
99
|
-
description: string;
|
|
100
|
-
};
|
|
101
|
-
Button: {
|
|
102
|
-
props: z.ZodObject<{
|
|
103
|
-
label: z.ZodString;
|
|
104
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
outline: "outline";
|
|
106
|
-
skeleton: "skeleton";
|
|
107
|
-
solid: "solid";
|
|
108
|
-
}>>;
|
|
109
|
-
color: z.ZodOptional<z.ZodEnum<{
|
|
110
|
-
base: "base";
|
|
111
|
-
primary: "primary";
|
|
112
|
-
secondary: "secondary";
|
|
113
|
-
}>>;
|
|
114
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
115
|
-
lg: "lg";
|
|
116
|
-
md: "md";
|
|
117
|
-
sm: "sm";
|
|
118
|
-
}>>;
|
|
119
|
-
fullWidth: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
-
href: z.ZodOptional<z.ZodString>;
|
|
121
|
-
}, z.core.$strip>;
|
|
122
|
-
description: string;
|
|
123
|
-
};
|
|
124
|
-
Card: {
|
|
125
|
-
props: z.ZodObject<{
|
|
126
|
-
width: z.ZodOptional<z.ZodEnum<{
|
|
127
|
-
fit: "fit";
|
|
128
|
-
full: "full";
|
|
129
|
-
}>>;
|
|
130
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
131
|
-
outline: "outline";
|
|
132
|
-
shadow: "shadow";
|
|
133
|
-
}>>;
|
|
134
|
-
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
136
|
-
lg: "lg";
|
|
137
|
-
md: "md";
|
|
138
|
-
sm: "sm";
|
|
139
|
-
}>>;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
slots: string[];
|
|
142
|
-
description: string;
|
|
143
|
-
};
|
|
144
|
-
Badge: {
|
|
145
|
-
props: z.ZodObject<{
|
|
146
|
-
label: z.ZodString;
|
|
147
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
148
|
-
error: "error";
|
|
149
|
-
info: "info";
|
|
150
|
-
neutral: "neutral";
|
|
151
|
-
success: "success";
|
|
152
|
-
warning: "warning";
|
|
153
|
-
}>>;
|
|
154
|
-
variant: z.ZodOptional<z.ZodEnum<{
|
|
155
|
-
outline: "outline";
|
|
156
|
-
solid: "solid";
|
|
157
|
-
}>>;
|
|
158
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
159
|
-
lg: "lg";
|
|
160
|
-
md: "md";
|
|
161
|
-
sm: "sm";
|
|
162
|
-
}>>;
|
|
163
|
-
}, z.core.$strip>;
|
|
164
|
-
description: string;
|
|
165
|
-
};
|
|
166
|
-
Heading: {
|
|
167
|
-
props: z.ZodObject<{
|
|
168
|
-
label: z.ZodString;
|
|
169
|
-
level: z.ZodOptional<z.ZodEnum<{
|
|
170
|
-
h1: "h1";
|
|
171
|
-
h2: "h2";
|
|
172
|
-
h3: "h3";
|
|
173
|
-
h4: "h4";
|
|
174
|
-
h5: "h5";
|
|
175
|
-
h6: "h6";
|
|
176
|
-
}>>;
|
|
177
|
-
lineClamp: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>>;
|
|
178
|
-
}, z.core.$strip>;
|
|
179
|
-
description: string;
|
|
180
|
-
};
|
|
181
|
-
Alert: {
|
|
182
|
-
props: z.ZodObject<{
|
|
183
|
-
tone: z.ZodEnum<{
|
|
184
|
-
error: "error";
|
|
185
|
-
info: "info";
|
|
186
|
-
success: "success";
|
|
187
|
-
warning: "warning";
|
|
188
|
-
}>;
|
|
189
|
-
message: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
190
|
-
}, z.core.$strip>;
|
|
191
|
-
description: string;
|
|
192
|
-
};
|
|
193
|
-
Callout: {
|
|
194
|
-
props: z.ZodObject<{
|
|
195
|
-
tone: z.ZodEnum<{
|
|
196
|
-
error: "error";
|
|
197
|
-
info: "info";
|
|
198
|
-
success: "success";
|
|
199
|
-
warning: "warning";
|
|
200
|
-
}>;
|
|
201
|
-
label: z.ZodOptional<z.ZodString>;
|
|
202
|
-
content: z.ZodString;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
description: string;
|
|
205
|
-
};
|
|
206
|
-
Spinner: {
|
|
207
|
-
props: z.ZodObject<{
|
|
208
|
-
label: z.ZodOptional<z.ZodString>;
|
|
209
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
210
|
-
lg: "lg";
|
|
211
|
-
md: "md";
|
|
212
|
-
sm: "sm";
|
|
213
|
-
}>>;
|
|
214
|
-
}, z.core.$strip>;
|
|
215
|
-
description: string;
|
|
216
|
-
};
|
|
217
|
-
Separator: {
|
|
218
|
-
props: z.ZodObject<{
|
|
219
|
-
orientation: z.ZodOptional<z.ZodEnum<{
|
|
220
|
-
horizontal: "horizontal";
|
|
221
|
-
vertical: "vertical";
|
|
222
|
-
}>>;
|
|
223
|
-
color: z.ZodOptional<z.ZodEnum<{
|
|
224
|
-
base: "base";
|
|
225
|
-
mute: "mute";
|
|
226
|
-
subtle: "subtle";
|
|
227
|
-
}>>;
|
|
228
|
-
}, z.core.$strip>;
|
|
229
|
-
description: string;
|
|
230
|
-
};
|
|
231
|
-
TextField: {
|
|
232
|
-
props: z.ZodObject<{
|
|
233
|
-
name: z.ZodString;
|
|
234
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
235
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
236
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
}, z.core.$strip>;
|
|
240
|
-
description: string;
|
|
241
|
-
};
|
|
242
|
-
Checkbox: {
|
|
243
|
-
props: z.ZodObject<{
|
|
244
|
-
name: z.ZodString;
|
|
245
|
-
label: z.ZodString;
|
|
246
|
-
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
248
|
-
}, z.core.$strip>;
|
|
249
|
-
description: string;
|
|
250
|
-
};
|
|
251
|
-
Switch: {
|
|
252
|
-
props: z.ZodObject<{
|
|
253
|
-
name: z.ZodString;
|
|
254
|
-
label: z.ZodString;
|
|
255
|
-
defaultChecked: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
258
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
description: string;
|
|
261
|
-
};
|
|
262
|
-
Select: {
|
|
263
|
-
props: z.ZodObject<{
|
|
264
|
-
name: z.ZodString;
|
|
265
|
-
options: z.ZodArray<z.ZodObject<{
|
|
266
|
-
value: z.ZodString;
|
|
267
|
-
label: z.ZodString;
|
|
268
|
-
}, z.core.$strip>>;
|
|
269
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
270
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
-
}, z.core.$strip>;
|
|
273
|
-
description: string;
|
|
274
|
-
};
|
|
275
|
-
Tabs: {
|
|
276
|
-
props: z.ZodObject<{
|
|
277
|
-
label: z.ZodOptional<z.ZodString>;
|
|
278
|
-
tabs: z.ZodArray<z.ZodObject<{
|
|
279
|
-
label: z.ZodString;
|
|
280
|
-
content: z.ZodString;
|
|
281
|
-
}, z.core.$strip>>;
|
|
282
|
-
}, z.core.$strip>;
|
|
283
|
-
description: string;
|
|
284
|
-
};
|
|
285
|
-
Accordion: {
|
|
286
|
-
props: z.ZodObject<{
|
|
287
|
-
items: z.ZodArray<z.ZodObject<{
|
|
288
|
-
title: z.ZodString;
|
|
289
|
-
content: z.ZodString;
|
|
290
|
-
defaultOpen: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
-
}, z.core.$strip>>;
|
|
292
|
-
}, z.core.$strip>;
|
|
293
|
-
description: string;
|
|
294
|
-
};
|
|
295
|
-
Stepper: {
|
|
296
|
-
props: z.ZodObject<{
|
|
297
|
-
label: z.ZodString;
|
|
298
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
299
|
-
label: z.ZodString;
|
|
300
|
-
description: z.ZodOptional<z.ZodString>;
|
|
301
|
-
}, z.core.$strip>>;
|
|
302
|
-
current: z.ZodInt;
|
|
303
|
-
orientation: z.ZodOptional<z.ZodEnum<{
|
|
304
|
-
horizontal: "horizontal";
|
|
305
|
-
vertical: "vertical";
|
|
306
|
-
}>>;
|
|
307
|
-
}, z.core.$strip>;
|
|
308
|
-
description: string;
|
|
309
|
-
};
|
|
310
|
-
Breadcrumb: {
|
|
311
|
-
props: z.ZodObject<{
|
|
312
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
313
|
-
lg: "lg";
|
|
314
|
-
md: "md";
|
|
315
|
-
sm: "sm";
|
|
316
|
-
}>>;
|
|
317
|
-
items: z.ZodArray<z.ZodObject<{
|
|
318
|
-
label: z.ZodString;
|
|
319
|
-
href: z.ZodOptional<z.ZodString>;
|
|
320
|
-
current: z.ZodOptional<z.ZodBoolean>;
|
|
321
|
-
}, z.core.$strip>>;
|
|
322
|
-
}, z.core.$strip>;
|
|
323
|
-
description: string;
|
|
324
|
-
};
|
|
325
|
-
DataTable: {
|
|
326
|
-
props: z.ZodObject<{
|
|
327
|
-
label: z.ZodString;
|
|
328
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
329
|
-
label: z.ZodString;
|
|
330
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
331
|
-
center: "center";
|
|
332
|
-
left: "left";
|
|
333
|
-
right: "right";
|
|
334
|
-
}>>;
|
|
335
|
-
sortable: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
-
}, z.core.$strip>>;
|
|
337
|
-
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
338
|
-
selectable: z.ZodOptional<z.ZodBoolean>;
|
|
339
|
-
}, z.core.$strip>;
|
|
340
|
-
description: string;
|
|
341
|
-
};
|
|
342
|
-
Tree: {
|
|
343
|
-
props: z.ZodObject<{
|
|
344
|
-
label: z.ZodString;
|
|
345
|
-
items: z.ZodArray<z.ZodObject<{
|
|
346
|
-
id: z.ZodString;
|
|
347
|
-
label: z.ZodString;
|
|
348
|
-
parentId: z.ZodOptional<z.ZodString>;
|
|
349
|
-
expanded: z.ZodOptional<z.ZodBoolean>;
|
|
350
|
-
}, z.core.$strip>>;
|
|
351
|
-
}, z.core.$strip>;
|
|
352
|
-
description: string;
|
|
353
|
-
};
|
|
354
|
-
SideNav: {
|
|
355
|
-
props: z.ZodObject<{
|
|
356
|
-
label: z.ZodString;
|
|
357
|
-
groups: z.ZodArray<z.ZodObject<{
|
|
358
|
-
title: z.ZodString;
|
|
359
|
-
links: z.ZodArray<z.ZodObject<{
|
|
360
|
-
label: z.ZodString;
|
|
361
|
-
href: z.ZodString;
|
|
362
|
-
current: z.ZodOptional<z.ZodBoolean>;
|
|
363
|
-
}, z.core.$strip>>;
|
|
364
|
-
}, z.core.$strip>>;
|
|
365
|
-
}, z.core.$strip>;
|
|
366
|
-
description: string;
|
|
367
|
-
};
|
|
368
|
-
Table: {
|
|
369
|
-
props: z.ZodObject<{
|
|
370
|
-
caption: z.ZodOptional<z.ZodString>;
|
|
371
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
372
|
-
label: z.ZodString;
|
|
373
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
374
|
-
center: "center";
|
|
375
|
-
left: "left";
|
|
376
|
-
right: "right";
|
|
377
|
-
}>>;
|
|
378
|
-
}, z.core.$strip>>;
|
|
379
|
-
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
380
|
-
}, z.core.$strip>;
|
|
381
|
-
description: string;
|
|
382
|
-
};
|
|
383
|
-
Anchor: {
|
|
384
|
-
props: z.ZodObject<{
|
|
385
|
-
label: z.ZodString;
|
|
386
|
-
href: z.ZodString;
|
|
387
|
-
openInNewTab: z.ZodOptional<z.ZodBoolean>;
|
|
388
|
-
}, z.core.$strip>;
|
|
389
|
-
description: string;
|
|
390
|
-
};
|
|
391
|
-
Avatar: {
|
|
392
|
-
props: z.ZodObject<{
|
|
393
|
-
src: z.ZodOptional<z.ZodString>;
|
|
394
|
-
alt: z.ZodOptional<z.ZodString>;
|
|
395
|
-
name: z.ZodOptional<z.ZodString>;
|
|
396
|
-
fallback: z.ZodOptional<z.ZodString>;
|
|
397
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
398
|
-
lg: "lg";
|
|
399
|
-
md: "md";
|
|
400
|
-
sm: "sm";
|
|
401
|
-
}>>;
|
|
402
|
-
}, z.core.$strip>;
|
|
403
|
-
description: string;
|
|
404
|
-
};
|
|
405
|
-
Code: {
|
|
406
|
-
props: z.ZodObject<{
|
|
407
|
-
code: z.ZodString;
|
|
408
|
-
}, z.core.$strip>;
|
|
409
|
-
description: string;
|
|
410
|
-
};
|
|
411
|
-
Kbd: {
|
|
412
|
-
props: z.ZodObject<{
|
|
413
|
-
keys: z.ZodArray<z.ZodString>;
|
|
414
|
-
}, z.core.$strip>;
|
|
415
|
-
description: string;
|
|
416
|
-
};
|
|
417
|
-
EmptyState: {
|
|
418
|
-
props: z.ZodObject<{
|
|
419
|
-
title: z.ZodString;
|
|
420
|
-
description: z.ZodOptional<z.ZodString>;
|
|
421
|
-
icon: z.ZodOptional<z.ZodEnum<{
|
|
422
|
-
accessibility: "accessibility";
|
|
423
|
-
ai: "ai";
|
|
424
|
-
atom: "atom";
|
|
425
|
-
bad: "bad";
|
|
426
|
-
blog: "blog";
|
|
427
|
-
boring: "boring";
|
|
428
|
-
check: "check";
|
|
429
|
-
close: "close";
|
|
430
|
-
"color-contrast": "color-contrast";
|
|
431
|
-
"color-info": "color-info";
|
|
432
|
-
copy: "copy";
|
|
433
|
-
"dark-mode": "dark-mode";
|
|
434
|
-
difficult: "difficult";
|
|
435
|
-
easy: "easy";
|
|
436
|
-
"external-link": "external-link";
|
|
437
|
-
form: "form";
|
|
438
|
-
github: "github";
|
|
439
|
-
good: "good";
|
|
440
|
-
history: "history";
|
|
441
|
-
"horizontal-writing": "horizontal-writing";
|
|
442
|
-
informative: "informative";
|
|
443
|
-
interesting: "interesting";
|
|
444
|
-
"light-mode": "light-mode";
|
|
445
|
-
link: "link";
|
|
446
|
-
list: "list";
|
|
447
|
-
location: "location";
|
|
448
|
-
logo: "logo";
|
|
449
|
-
mail: "mail";
|
|
450
|
-
minus: "minus";
|
|
451
|
-
"mixed-color": "mixed-color";
|
|
452
|
-
"navigation-menu": "navigation-menu";
|
|
453
|
-
news: "news";
|
|
454
|
-
palette: "palette";
|
|
455
|
-
plus: "plus";
|
|
456
|
-
prepare: "prepare";
|
|
457
|
-
"publish-date": "publish-date";
|
|
458
|
-
qiita: "qiita";
|
|
459
|
-
rss: "rss";
|
|
460
|
-
send: "send";
|
|
461
|
-
shallow: "shallow";
|
|
462
|
-
"shield-check": "shield-check";
|
|
463
|
-
slide: "slide";
|
|
464
|
-
sparkles: "sparkles";
|
|
465
|
-
subscribe: "subscribe";
|
|
466
|
-
table: "table";
|
|
467
|
-
tag: "tag";
|
|
468
|
-
twitter: "twitter";
|
|
469
|
-
"update-date": "update-date";
|
|
470
|
-
"vertical-writing": "vertical-writing";
|
|
471
|
-
view: "view";
|
|
472
|
-
"view-off": "view-off";
|
|
473
|
-
}>>;
|
|
474
|
-
}, z.core.$strip>;
|
|
475
|
-
description: string;
|
|
476
|
-
};
|
|
477
|
-
Carousel: {
|
|
478
|
-
props: z.ZodObject<{
|
|
479
|
-
label: z.ZodString;
|
|
480
|
-
slideSize: z.ZodOptional<z.ZodEnum<{
|
|
481
|
-
full: "full";
|
|
482
|
-
lg: "lg";
|
|
483
|
-
md: "md";
|
|
484
|
-
sm: "sm";
|
|
485
|
-
}>>;
|
|
486
|
-
}, z.core.$strip>;
|
|
487
|
-
slots: string[];
|
|
488
|
-
description: string;
|
|
489
|
-
};
|
|
490
|
-
Progress: {
|
|
491
|
-
props: z.ZodObject<{
|
|
492
|
-
value: z.ZodOptional<z.ZodNumber>;
|
|
493
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
494
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
495
|
-
label: z.ZodOptional<z.ZodString>;
|
|
496
|
-
}, z.core.$strip>;
|
|
497
|
-
description: string;
|
|
498
|
-
};
|
|
499
|
-
Skeleton: {
|
|
500
|
-
props: z.ZodObject<{
|
|
501
|
-
shape: z.ZodOptional<z.ZodEnum<{
|
|
502
|
-
circle: "circle";
|
|
503
|
-
rect: "rect";
|
|
504
|
-
}>>;
|
|
505
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
506
|
-
lg: "lg";
|
|
507
|
-
md: "md";
|
|
508
|
-
sm: "sm";
|
|
509
|
-
}>>;
|
|
510
|
-
animate: z.ZodOptional<z.ZodBoolean>;
|
|
511
|
-
}, z.core.$strip>;
|
|
512
|
-
description: string;
|
|
513
|
-
};
|
|
514
|
-
Icon: {
|
|
515
|
-
props: z.ZodObject<{
|
|
516
|
-
name: z.ZodEnum<{
|
|
517
|
-
accessibility: "accessibility";
|
|
518
|
-
ai: "ai";
|
|
519
|
-
atom: "atom";
|
|
520
|
-
bad: "bad";
|
|
521
|
-
blog: "blog";
|
|
522
|
-
boring: "boring";
|
|
523
|
-
check: "check";
|
|
524
|
-
close: "close";
|
|
525
|
-
"color-contrast": "color-contrast";
|
|
526
|
-
"color-info": "color-info";
|
|
527
|
-
copy: "copy";
|
|
528
|
-
"dark-mode": "dark-mode";
|
|
529
|
-
difficult: "difficult";
|
|
530
|
-
easy: "easy";
|
|
531
|
-
"external-link": "external-link";
|
|
532
|
-
form: "form";
|
|
533
|
-
github: "github";
|
|
534
|
-
good: "good";
|
|
535
|
-
history: "history";
|
|
536
|
-
"horizontal-writing": "horizontal-writing";
|
|
537
|
-
informative: "informative";
|
|
538
|
-
interesting: "interesting";
|
|
539
|
-
"light-mode": "light-mode";
|
|
540
|
-
link: "link";
|
|
541
|
-
list: "list";
|
|
542
|
-
location: "location";
|
|
543
|
-
logo: "logo";
|
|
544
|
-
mail: "mail";
|
|
545
|
-
minus: "minus";
|
|
546
|
-
"mixed-color": "mixed-color";
|
|
547
|
-
"navigation-menu": "navigation-menu";
|
|
548
|
-
news: "news";
|
|
549
|
-
palette: "palette";
|
|
550
|
-
plus: "plus";
|
|
551
|
-
prepare: "prepare";
|
|
552
|
-
"publish-date": "publish-date";
|
|
553
|
-
qiita: "qiita";
|
|
554
|
-
rss: "rss";
|
|
555
|
-
send: "send";
|
|
556
|
-
shallow: "shallow";
|
|
557
|
-
"shield-check": "shield-check";
|
|
558
|
-
slide: "slide";
|
|
559
|
-
sparkles: "sparkles";
|
|
560
|
-
subscribe: "subscribe";
|
|
561
|
-
table: "table";
|
|
562
|
-
tag: "tag";
|
|
563
|
-
twitter: "twitter";
|
|
564
|
-
"update-date": "update-date";
|
|
565
|
-
"vertical-writing": "vertical-writing";
|
|
566
|
-
view: "view";
|
|
567
|
-
"view-off": "view-off";
|
|
568
|
-
}>;
|
|
569
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
570
|
-
lg: "lg";
|
|
571
|
-
md: "md";
|
|
572
|
-
sm: "sm";
|
|
573
|
-
}>>;
|
|
574
|
-
}, z.core.$strip>;
|
|
575
|
-
description: string;
|
|
576
|
-
};
|
|
577
|
-
ChevronIcon: {
|
|
578
|
-
props: z.ZodObject<{
|
|
579
|
-
direction: z.ZodEnum<{
|
|
580
|
-
down: "down";
|
|
581
|
-
left: "left";
|
|
582
|
-
right: "right";
|
|
583
|
-
up: "up";
|
|
584
|
-
}>;
|
|
585
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
586
|
-
lg: "lg";
|
|
587
|
-
md: "md";
|
|
588
|
-
sm: "sm";
|
|
589
|
-
}>>;
|
|
590
|
-
}, z.core.$strip>;
|
|
591
|
-
description: string;
|
|
592
|
-
};
|
|
593
|
-
StatusIcon: {
|
|
594
|
-
props: z.ZodObject<{
|
|
595
|
-
status: z.ZodEnum<{
|
|
596
|
-
error: "error";
|
|
597
|
-
info: "info";
|
|
598
|
-
success: "success";
|
|
599
|
-
warning: "warning";
|
|
600
|
-
}>;
|
|
601
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
602
|
-
lg: "lg";
|
|
603
|
-
md: "md";
|
|
604
|
-
sm: "sm";
|
|
605
|
-
}>>;
|
|
606
|
-
}, z.core.$strip>;
|
|
607
|
-
description: string;
|
|
608
|
-
};
|
|
609
|
-
IconButton: {
|
|
610
|
-
props: z.ZodObject<{
|
|
611
|
-
icon: z.ZodEnum<{
|
|
612
|
-
accessibility: "accessibility";
|
|
613
|
-
ai: "ai";
|
|
614
|
-
atom: "atom";
|
|
615
|
-
bad: "bad";
|
|
616
|
-
blog: "blog";
|
|
617
|
-
boring: "boring";
|
|
618
|
-
check: "check";
|
|
619
|
-
close: "close";
|
|
620
|
-
"color-contrast": "color-contrast";
|
|
621
|
-
"color-info": "color-info";
|
|
622
|
-
copy: "copy";
|
|
623
|
-
"dark-mode": "dark-mode";
|
|
624
|
-
difficult: "difficult";
|
|
625
|
-
easy: "easy";
|
|
626
|
-
"external-link": "external-link";
|
|
627
|
-
form: "form";
|
|
628
|
-
github: "github";
|
|
629
|
-
good: "good";
|
|
630
|
-
history: "history";
|
|
631
|
-
"horizontal-writing": "horizontal-writing";
|
|
632
|
-
informative: "informative";
|
|
633
|
-
interesting: "interesting";
|
|
634
|
-
"light-mode": "light-mode";
|
|
635
|
-
link: "link";
|
|
636
|
-
list: "list";
|
|
637
|
-
location: "location";
|
|
638
|
-
logo: "logo";
|
|
639
|
-
mail: "mail";
|
|
640
|
-
minus: "minus";
|
|
641
|
-
"mixed-color": "mixed-color";
|
|
642
|
-
"navigation-menu": "navigation-menu";
|
|
643
|
-
news: "news";
|
|
644
|
-
palette: "palette";
|
|
645
|
-
plus: "plus";
|
|
646
|
-
prepare: "prepare";
|
|
647
|
-
"publish-date": "publish-date";
|
|
648
|
-
qiita: "qiita";
|
|
649
|
-
rss: "rss";
|
|
650
|
-
send: "send";
|
|
651
|
-
shallow: "shallow";
|
|
652
|
-
"shield-check": "shield-check";
|
|
653
|
-
slide: "slide";
|
|
654
|
-
sparkles: "sparkles";
|
|
655
|
-
subscribe: "subscribe";
|
|
656
|
-
table: "table";
|
|
657
|
-
tag: "tag";
|
|
658
|
-
twitter: "twitter";
|
|
659
|
-
"update-date": "update-date";
|
|
660
|
-
"vertical-writing": "vertical-writing";
|
|
661
|
-
view: "view";
|
|
662
|
-
"view-off": "view-off";
|
|
663
|
-
}>;
|
|
664
|
-
label: z.ZodString;
|
|
665
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
666
|
-
lg: "lg";
|
|
667
|
-
md: "md";
|
|
668
|
-
sm: "sm";
|
|
669
|
-
}>>;
|
|
670
|
-
color: z.ZodOptional<z.ZodEnum<{
|
|
671
|
-
base: "base";
|
|
672
|
-
primary: "primary";
|
|
673
|
-
secondary: "secondary";
|
|
674
|
-
transparent: "transparent";
|
|
675
|
-
}>>;
|
|
676
|
-
}, z.core.$strip>;
|
|
677
|
-
description: string;
|
|
678
|
-
};
|
|
679
|
-
CopyButton: {
|
|
680
|
-
props: z.ZodObject<{
|
|
681
|
-
value: z.ZodString;
|
|
682
|
-
label: z.ZodOptional<z.ZodString>;
|
|
683
|
-
iconOnly: z.ZodOptional<z.ZodBoolean>;
|
|
684
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
685
|
-
lg: "lg";
|
|
686
|
-
md: "md";
|
|
687
|
-
sm: "sm";
|
|
688
|
-
}>>;
|
|
689
|
-
}, z.core.$strip>;
|
|
690
|
-
description: string;
|
|
691
|
-
};
|
|
692
|
-
Textarea: {
|
|
693
|
-
props: z.ZodObject<{
|
|
694
|
-
name: z.ZodString;
|
|
695
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
696
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
697
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
-
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
-
rows: z.ZodOptional<z.ZodInt>;
|
|
701
|
-
autoResize: z.ZodOptional<z.ZodBoolean>;
|
|
702
|
-
}, z.core.$strip>;
|
|
703
|
-
description: string;
|
|
704
|
-
};
|
|
705
|
-
PasswordInput: {
|
|
706
|
-
props: z.ZodObject<{
|
|
707
|
-
name: z.ZodString;
|
|
708
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
709
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
710
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
711
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
712
|
-
}, z.core.$strip>;
|
|
713
|
-
description: string;
|
|
714
|
-
};
|
|
715
|
-
NumberField: {
|
|
716
|
-
props: z.ZodObject<{
|
|
717
|
-
name: z.ZodString;
|
|
718
|
-
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
719
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
720
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
721
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
722
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
723
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
724
|
-
}, z.core.$strip>;
|
|
725
|
-
description: string;
|
|
726
|
-
};
|
|
727
|
-
Slider: {
|
|
728
|
-
props: z.ZodObject<{
|
|
729
|
-
name: z.ZodString;
|
|
730
|
-
defaultValue: z.ZodOptional<z.ZodNumber>;
|
|
731
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
732
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
733
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
734
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
735
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
736
|
-
}, z.core.$strip>;
|
|
737
|
-
description: string;
|
|
738
|
-
};
|
|
739
|
-
RangeSlider: {
|
|
740
|
-
props: z.ZodObject<{
|
|
741
|
-
name: z.ZodString;
|
|
742
|
-
label: z.ZodString;
|
|
743
|
-
defaultValue: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
744
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
745
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
746
|
-
step: z.ZodOptional<z.ZodNumber>;
|
|
747
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
748
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
749
|
-
}, z.core.$strip>;
|
|
750
|
-
description: string;
|
|
751
|
-
};
|
|
752
|
-
DateField: {
|
|
753
|
-
props: z.ZodObject<{
|
|
754
|
-
name: z.ZodString;
|
|
755
|
-
label: z.ZodString;
|
|
756
|
-
defaultValue: z.ZodOptional<z.ZodISODate>;
|
|
757
|
-
min: z.ZodOptional<z.ZodISODate>;
|
|
758
|
-
max: z.ZodOptional<z.ZodISODate>;
|
|
759
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
-
}, z.core.$strip>;
|
|
763
|
-
description: string;
|
|
764
|
-
};
|
|
765
|
-
DatePicker: {
|
|
766
|
-
props: z.ZodObject<{
|
|
767
|
-
name: z.ZodString;
|
|
768
|
-
label: z.ZodString;
|
|
769
|
-
defaultValue: z.ZodOptional<z.ZodISODate>;
|
|
770
|
-
min: z.ZodOptional<z.ZodISODate>;
|
|
771
|
-
max: z.ZodOptional<z.ZodISODate>;
|
|
772
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
773
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
774
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
-
}, z.core.$strip>;
|
|
776
|
-
description: string;
|
|
777
|
-
};
|
|
778
|
-
Calendar: {
|
|
779
|
-
props: z.ZodObject<{
|
|
780
|
-
name: z.ZodString;
|
|
781
|
-
defaultValue: z.ZodOptional<z.ZodISODate>;
|
|
782
|
-
min: z.ZodOptional<z.ZodISODate>;
|
|
783
|
-
max: z.ZodOptional<z.ZodISODate>;
|
|
784
|
-
}, z.core.$strip>;
|
|
785
|
-
description: string;
|
|
786
|
-
};
|
|
787
|
-
ColorPicker: {
|
|
788
|
-
props: z.ZodObject<{
|
|
789
|
-
name: z.ZodString;
|
|
790
|
-
label: z.ZodString;
|
|
791
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
792
|
-
swatches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
793
|
-
value: z.ZodString;
|
|
794
|
-
label: z.ZodString;
|
|
795
|
-
}, z.core.$strip>>>;
|
|
796
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
797
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
798
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
799
|
-
}, z.core.$strip>;
|
|
800
|
-
description: string;
|
|
801
|
-
};
|
|
802
|
-
Radio: {
|
|
803
|
-
props: z.ZodObject<{
|
|
804
|
-
name: z.ZodString;
|
|
805
|
-
label: z.ZodString;
|
|
806
|
-
options: z.ZodArray<z.ZodObject<{
|
|
807
|
-
value: z.ZodString;
|
|
808
|
-
label: z.ZodString;
|
|
809
|
-
}, z.core.$strip>>;
|
|
810
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
811
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
812
|
-
}, z.core.$strip>;
|
|
813
|
-
description: string;
|
|
814
|
-
};
|
|
815
|
-
RadioCard: {
|
|
816
|
-
props: z.ZodObject<{
|
|
817
|
-
name: z.ZodString;
|
|
818
|
-
label: z.ZodString;
|
|
819
|
-
options: z.ZodArray<z.ZodObject<{
|
|
820
|
-
value: z.ZodString;
|
|
821
|
-
label: z.ZodString;
|
|
822
|
-
description: z.ZodOptional<z.ZodString>;
|
|
823
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
-
}, z.core.$strip>>;
|
|
825
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
826
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
828
|
-
}, z.core.$strip>;
|
|
829
|
-
description: string;
|
|
830
|
-
};
|
|
831
|
-
CheckboxCard: {
|
|
832
|
-
props: z.ZodObject<{
|
|
833
|
-
name: z.ZodString;
|
|
834
|
-
options: z.ZodArray<z.ZodObject<{
|
|
835
|
-
value: z.ZodString;
|
|
836
|
-
label: z.ZodString;
|
|
837
|
-
description: z.ZodOptional<z.ZodString>;
|
|
838
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
839
|
-
}, z.core.$strip>>;
|
|
840
|
-
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
841
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
842
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
843
|
-
label: z.ZodString;
|
|
844
|
-
}, z.core.$strip>;
|
|
845
|
-
description: string;
|
|
846
|
-
};
|
|
847
|
-
Pagination: {
|
|
848
|
-
props: z.ZodObject<{
|
|
849
|
-
name: z.ZodString;
|
|
850
|
-
totalPages: z.ZodNumber;
|
|
851
|
-
defaultPage: z.ZodOptional<z.ZodNumber>;
|
|
852
|
-
prevLabel: z.ZodOptional<z.ZodString>;
|
|
853
|
-
nextLabel: z.ZodOptional<z.ZodString>;
|
|
854
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
855
|
-
}, z.core.$strip>;
|
|
856
|
-
description: string;
|
|
857
|
-
};
|
|
858
|
-
Form: {
|
|
859
|
-
props: z.ZodObject<{
|
|
860
|
-
action: z.ZodOptional<z.ZodString>;
|
|
861
|
-
}, z.core.$strip>;
|
|
862
|
-
slots: string[];
|
|
863
|
-
description: string;
|
|
864
|
-
};
|
|
865
|
-
Modal: {
|
|
866
|
-
props: z.ZodObject<{
|
|
867
|
-
triggerLabel: z.ZodString;
|
|
868
|
-
title: z.ZodString;
|
|
869
|
-
side: z.ZodOptional<z.ZodEnum<{
|
|
870
|
-
bottom: "bottom";
|
|
871
|
-
center: "center";
|
|
872
|
-
left: "left";
|
|
873
|
-
right: "right";
|
|
874
|
-
}>>;
|
|
875
|
-
}, z.core.$strip>;
|
|
876
|
-
slots: string[];
|
|
877
|
-
description: string;
|
|
878
|
-
};
|
|
879
|
-
Dialog: {
|
|
880
|
-
props: z.ZodObject<{
|
|
881
|
-
triggerLabel: z.ZodString;
|
|
882
|
-
title: z.ZodString;
|
|
883
|
-
}, z.core.$strip>;
|
|
884
|
-
slots: string[];
|
|
885
|
-
description: string;
|
|
886
|
-
};
|
|
887
|
-
Drawer: {
|
|
888
|
-
props: z.ZodObject<{
|
|
889
|
-
triggerLabel: z.ZodString;
|
|
890
|
-
title: z.ZodString;
|
|
891
|
-
side: z.ZodOptional<z.ZodEnum<{
|
|
892
|
-
left: "left";
|
|
893
|
-
right: "right";
|
|
894
|
-
}>>;
|
|
895
|
-
}, z.core.$strip>;
|
|
896
|
-
slots: string[];
|
|
897
|
-
description: string;
|
|
898
|
-
};
|
|
899
|
-
Popover: {
|
|
900
|
-
props: z.ZodObject<{
|
|
901
|
-
triggerLabel: z.ZodString;
|
|
902
|
-
}, z.core.$strip>;
|
|
903
|
-
slots: string[];
|
|
904
|
-
description: string;
|
|
905
|
-
};
|
|
906
|
-
Tooltip: {
|
|
907
|
-
props: z.ZodObject<{
|
|
908
|
-
triggerLabel: z.ZodString;
|
|
909
|
-
content: z.ZodString;
|
|
910
|
-
}, z.core.$strip>;
|
|
911
|
-
description: string;
|
|
912
|
-
};
|
|
913
|
-
Toolbar: {
|
|
914
|
-
props: z.ZodObject<{
|
|
915
|
-
label: z.ZodString;
|
|
916
|
-
items: z.ZodArray<z.ZodObject<{
|
|
917
|
-
label: z.ZodString;
|
|
918
|
-
icon: z.ZodOptional<z.ZodEnum<{
|
|
919
|
-
accessibility: "accessibility";
|
|
920
|
-
ai: "ai";
|
|
921
|
-
atom: "atom";
|
|
922
|
-
bad: "bad";
|
|
923
|
-
blog: "blog";
|
|
924
|
-
boring: "boring";
|
|
925
|
-
check: "check";
|
|
926
|
-
close: "close";
|
|
927
|
-
"color-contrast": "color-contrast";
|
|
928
|
-
"color-info": "color-info";
|
|
929
|
-
copy: "copy";
|
|
930
|
-
"dark-mode": "dark-mode";
|
|
931
|
-
difficult: "difficult";
|
|
932
|
-
easy: "easy";
|
|
933
|
-
"external-link": "external-link";
|
|
934
|
-
form: "form";
|
|
935
|
-
github: "github";
|
|
936
|
-
good: "good";
|
|
937
|
-
history: "history";
|
|
938
|
-
"horizontal-writing": "horizontal-writing";
|
|
939
|
-
informative: "informative";
|
|
940
|
-
interesting: "interesting";
|
|
941
|
-
"light-mode": "light-mode";
|
|
942
|
-
link: "link";
|
|
943
|
-
list: "list";
|
|
944
|
-
location: "location";
|
|
945
|
-
logo: "logo";
|
|
946
|
-
mail: "mail";
|
|
947
|
-
minus: "minus";
|
|
948
|
-
"mixed-color": "mixed-color";
|
|
949
|
-
"navigation-menu": "navigation-menu";
|
|
950
|
-
news: "news";
|
|
951
|
-
palette: "palette";
|
|
952
|
-
plus: "plus";
|
|
953
|
-
prepare: "prepare";
|
|
954
|
-
"publish-date": "publish-date";
|
|
955
|
-
qiita: "qiita";
|
|
956
|
-
rss: "rss";
|
|
957
|
-
send: "send";
|
|
958
|
-
shallow: "shallow";
|
|
959
|
-
"shield-check": "shield-check";
|
|
960
|
-
slide: "slide";
|
|
961
|
-
sparkles: "sparkles";
|
|
962
|
-
subscribe: "subscribe";
|
|
963
|
-
table: "table";
|
|
964
|
-
tag: "tag";
|
|
965
|
-
twitter: "twitter";
|
|
966
|
-
"update-date": "update-date";
|
|
967
|
-
"vertical-writing": "vertical-writing";
|
|
968
|
-
view: "view";
|
|
969
|
-
"view-off": "view-off";
|
|
970
|
-
}>>;
|
|
971
|
-
}, z.core.$strip>>;
|
|
972
|
-
orientation: z.ZodOptional<z.ZodEnum<{
|
|
973
|
-
horizontal: "horizontal";
|
|
974
|
-
vertical: "vertical";
|
|
975
|
-
}>>;
|
|
976
|
-
}, z.core.$strip>;
|
|
977
|
-
description: string;
|
|
978
|
-
};
|
|
979
|
-
DropdownMenu: {
|
|
980
|
-
props: z.ZodObject<{
|
|
981
|
-
triggerLabel: z.ZodString;
|
|
982
|
-
items: z.ZodArray<z.ZodObject<{
|
|
983
|
-
label: z.ZodString;
|
|
984
|
-
}, z.core.$strip>>;
|
|
985
|
-
}, z.core.$strip>;
|
|
986
|
-
description: string;
|
|
987
|
-
};
|
|
988
|
-
Toast: {
|
|
989
|
-
props: z.ZodObject<{
|
|
990
|
-
triggerLabel: z.ZodString;
|
|
991
|
-
tone: z.ZodEnum<{
|
|
992
|
-
error: "error";
|
|
993
|
-
info: "info";
|
|
994
|
-
success: "success";
|
|
995
|
-
warning: "warning";
|
|
996
|
-
}>;
|
|
997
|
-
message: z.ZodString;
|
|
998
|
-
}, z.core.$strip>;
|
|
999
|
-
description: string;
|
|
1000
|
-
};
|
|
1001
|
-
ListBox: {
|
|
1002
|
-
props: z.ZodObject<{
|
|
1003
|
-
name: z.ZodString;
|
|
1004
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1005
|
-
value: z.ZodString;
|
|
1006
|
-
label: z.ZodString;
|
|
1007
|
-
}, z.core.$strip>>;
|
|
1008
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1009
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1010
|
-
}, z.core.$strip>;
|
|
1011
|
-
description: string;
|
|
1012
|
-
};
|
|
1013
|
-
CheckboxGroup: {
|
|
1014
|
-
props: z.ZodObject<{
|
|
1015
|
-
name: z.ZodString;
|
|
1016
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1017
|
-
value: z.ZodString;
|
|
1018
|
-
label: z.ZodString;
|
|
1019
|
-
}, z.core.$strip>>;
|
|
1020
|
-
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1021
|
-
label: z.ZodString;
|
|
1022
|
-
}, z.core.$strip>;
|
|
1023
|
-
description: string;
|
|
1024
|
-
};
|
|
1025
|
-
Combobox: {
|
|
1026
|
-
props: z.ZodObject<{
|
|
1027
|
-
name: z.ZodString;
|
|
1028
|
-
label: z.ZodString;
|
|
1029
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1030
|
-
value: z.ZodString;
|
|
1031
|
-
label: z.ZodString;
|
|
1032
|
-
}, z.core.$strip>>;
|
|
1033
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1034
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
1035
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1036
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1037
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
1038
|
-
}, z.core.$strip>;
|
|
1039
|
-
description: string;
|
|
1040
|
-
};
|
|
1041
|
-
Autocomplete: {
|
|
1042
|
-
props: z.ZodObject<{
|
|
1043
|
-
name: z.ZodString;
|
|
1044
|
-
options: z.ZodArray<z.ZodObject<{
|
|
1045
|
-
value: z.ZodString;
|
|
1046
|
-
label: z.ZodString;
|
|
1047
|
-
}, z.core.$strip>>;
|
|
1048
|
-
defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1049
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1050
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
1051
|
-
}, z.core.$strip>;
|
|
1052
|
-
description: string;
|
|
1053
|
-
};
|
|
1054
|
-
FileField: {
|
|
1055
|
-
props: z.ZodObject<{
|
|
1056
|
-
triggerLabel: z.ZodOptional<z.ZodString>;
|
|
1057
|
-
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
1058
|
-
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
1059
|
-
clearable: z.ZodOptional<z.ZodBoolean>;
|
|
1060
|
-
dropzone: z.ZodOptional<z.ZodBoolean>;
|
|
1061
|
-
}, z.core.$strip>;
|
|
1062
|
-
description: string;
|
|
1063
|
-
};
|
|
1064
|
-
FormControl: {
|
|
1065
|
-
props: z.ZodObject<{
|
|
1066
|
-
label: z.ZodString;
|
|
1067
|
-
fieldType: z.ZodOptional<z.ZodEnum<{
|
|
1068
|
-
password: "password";
|
|
1069
|
-
text: "text";
|
|
1070
|
-
textarea: "textarea";
|
|
1071
|
-
}>>;
|
|
1072
|
-
name: z.ZodString;
|
|
1073
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
1074
|
-
defaultValue: z.ZodOptional<z.ZodString>;
|
|
1075
|
-
helpText: z.ZodOptional<z.ZodString>;
|
|
1076
|
-
errorText: z.ZodOptional<z.ZodString>;
|
|
1077
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
1078
|
-
invalid: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
-
}, z.core.$strip>;
|
|
1080
|
-
description: string;
|
|
1081
|
-
};
|
|
1082
|
-
};
|
|
1083
|
-
actions: {};
|
|
1084
|
-
}>;
|
|
1085
|
-
/**
|
|
1086
|
-
* LLM が破りやすい制約を `catalog.prompt({ customRules })` に注入するための
|
|
1087
|
-
* 横断ルール集。json-render のシステムプロンプト本文に追記される。
|
|
1088
|
-
*
|
|
1089
|
-
* @example
|
|
1090
|
-
* const systemPrompt = catalog.prompt({ customRules: [...uiRules] });
|
|
1091
|
-
*/
|
|
1092
|
-
export declare const uiRules: readonly string[];
|
|
1093
|
-
type ComponentSchemas = (typeof catalog)['data']['components'];
|
|
1094
|
-
export type ComponentName = keyof ComponentSchemas;
|
|
1095
|
-
export type ComponentProps<K extends ComponentName> = z.infer<ComponentSchemas[K]['props']>;
|
|
1096
|
-
/**
|
|
1097
|
-
* @k8ordo/ui のコンポーネントだけで構成された型付き spec の要素。
|
|
1098
|
-
* `type` と `props` がコンポーネントごとに検査される。
|
|
1099
|
-
*/
|
|
1100
|
-
export type UISpecElement = { [K in ComponentName]: Omit<UIElement, 'type' | 'props'> & {
|
|
1101
|
-
type: K;
|
|
1102
|
-
props: ComponentProps<K>;
|
|
1103
|
-
}; }[ComponentName];
|
|
1104
|
-
/**
|
|
1105
|
-
* @k8ordo/ui のコンポーネントだけで構成された型付き spec。
|
|
1106
|
-
* `satisfies UISpec` で書くと component 名・props の typo がコンパイルエラーに
|
|
1107
|
-
* なり、エディタ補完も効く。上流の `Spec` へキャストなしで代入できる。
|
|
1108
|
-
*
|
|
1109
|
-
* @example
|
|
1110
|
-
* const spec = {
|
|
1111
|
-
* root: 'root',
|
|
1112
|
-
* elements: {
|
|
1113
|
-
* root: { type: 'Stack', props: { direction: 'column' }, children: ['b'] },
|
|
1114
|
-
* b: { type: 'Button', props: { label: 'OK' } },
|
|
1115
|
-
* },
|
|
1116
|
-
* } satisfies UISpec;
|
|
1117
|
-
*/
|
|
1118
|
-
export type UISpec = {
|
|
1119
|
-
root: string;
|
|
1120
|
-
elements: Record<string, UISpecElement>;
|
|
1121
|
-
state?: Spec['state'];
|
|
1122
|
-
};
|
|
1123
|
-
export type GeneratedSpecIssue = {
|
|
1124
|
-
/** 問題のあった要素キー(spec 全体の問題なら未指定)。 */
|
|
1125
|
-
elementKey?: string;
|
|
1126
|
-
/** 人間(および LLM)向けの説明。 */
|
|
1127
|
-
message: string;
|
|
1128
|
-
};
|
|
1129
|
-
export type ValidateGeneratedSpecResult = {
|
|
1130
|
-
ok: true;
|
|
1131
|
-
spec: UISpec;
|
|
1132
|
-
fixes: string[];
|
|
1133
|
-
} | {
|
|
1134
|
-
ok: false;
|
|
1135
|
-
issues: GeneratedSpecIssue[];
|
|
1136
|
-
repairPrompt: string;
|
|
1137
|
-
};
|
|
1138
|
-
/**
|
|
1139
|
-
* LLM が生成した spec を検証し、描画可能なら型付き spec を、壊れていれば
|
|
1140
|
-
* そのまま LLM に投げ返せる修復プロンプトを返す。
|
|
1141
|
-
*
|
|
1142
|
-
* 内部では (1) 機械修正(`autoFixSpec`)→ (2) 構造検証(`validateSpec`)→
|
|
1143
|
-
* (3) 要素ごとに catalog の Zod スキーマで props 検証(未知キーの検出を含む)、
|
|
1144
|
-
* を行う。`catalog.validate()` は使わない(現行の上流バージョンでは正常な spec を
|
|
1145
|
-
* 誤って弾き、props 検証も実質無効になるため)。
|
|
1146
|
-
*
|
|
1147
|
-
* @example
|
|
1148
|
-
* const result = validateGeneratedSpec(JSON.parse(llmOutput));
|
|
1149
|
-
* if (result.ok) {
|
|
1150
|
-
* return <JsonRenderUI spec={result.spec} />;
|
|
1151
|
-
* }
|
|
1152
|
-
* const retried = await llm(result.repairPrompt);
|
|
1153
|
-
*/
|
|
1154
|
-
export declare const validateGeneratedSpec: (input: unknown) => ValidateGeneratedSpecResult;
|
|
1155
|
-
export {};
|