@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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/upload.tsx
|
|
4
|
+
const UploadIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M8 10.25V2.5M4.75 5.75 8 2.5l3.25 3.25" }), /* @__PURE__ */ jsx("path", { d: "M2.75 10.75v1a2 2 0 0 0 2 2h6.5a2 2 0 0 0 2-2v-1" })]
|
|
7
|
+
});
|
|
8
|
+
export { UploadIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/user.tsx
|
|
4
|
+
const UserIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
7
|
+
cx: "8",
|
|
8
|
+
cy: "5",
|
|
9
|
+
r: "2.5"
|
|
10
|
+
}), /* @__PURE__ */ jsx("path", { d: "M3 13.75c0-2.35 2.25-4 5-4s5 1.65 5 4" })]
|
|
11
|
+
});
|
|
12
|
+
export { UserIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/users.tsx
|
|
4
|
+
const UsersIcon = ({ size = "md" }) => /* @__PURE__ */ jsxs(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
7
|
+
cx: "5.75",
|
|
8
|
+
cy: "5.25",
|
|
9
|
+
r: "2.25"
|
|
10
|
+
}), /* @__PURE__ */ jsx("path", { d: "M2 13.5c0-2.2 1.65-3.6 3.75-3.6s3.75 1.4 3.75 3.6M10 3a2.25 2.25 0 0 1 0 4.5M11.5 10.1c1.4.5 2.5 1.7 2.5 3.4" })]
|
|
11
|
+
});
|
|
12
|
+
export { UsersIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LineIcon } from "./line-icon.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
// src/components/icons/x.tsx
|
|
4
|
+
const XIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(LineIcon, {
|
|
5
|
+
size,
|
|
6
|
+
children: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" })
|
|
7
|
+
});
|
|
8
|
+
export { XIcon };
|
|
@@ -1,139 +1,121 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button, ButtonRenderItemProps } from "./buttons/button/button.mjs";
|
|
1
|
+
import { Button } from "./buttons/button/button.mjs";
|
|
3
2
|
import "./buttons/button/index.mjs";
|
|
4
3
|
import { CopyButton } from "./buttons/copy-button/copy-button.mjs";
|
|
5
4
|
import "./buttons/copy-button/index.mjs";
|
|
5
|
+
import { IconButton } from "./buttons/icon-button/icon-button.mjs";
|
|
6
6
|
import "./buttons/icon-button/index.mjs";
|
|
7
7
|
import { ToolbarItemProps } from "./buttons/toolbar/toolbar.mjs";
|
|
8
8
|
import { Toolbar } from "./buttons/toolbar/index.mjs";
|
|
9
|
-
import { Accordion } from "./data-display/accordion/index.mjs";
|
|
10
9
|
import { Avatar } from "./data-display/avatar/avatar.mjs";
|
|
11
|
-
import "./data-display/
|
|
10
|
+
import { Accordion } from "./data-display/accordion/index.mjs";
|
|
12
11
|
import { Badge } from "./data-display/badge/badge.mjs";
|
|
12
|
+
import "./data-display/avatar/index.mjs";
|
|
13
|
+
import { Card, CardRenderAnchorProps } from "./data-display/card/card.mjs";
|
|
13
14
|
import "./data-display/badge/index.mjs";
|
|
14
|
-
import { Card } from "./data-display/card/card.mjs";
|
|
15
15
|
import "./data-display/card/index.mjs";
|
|
16
|
+
import { Heading } from "./data-display/heading/heading.mjs";
|
|
16
17
|
import { Carousel } from "./data-display/carousel/index.mjs";
|
|
17
|
-
import {
|
|
18
|
+
import { Alert } from "./feedback/alert/alert.mjs";
|
|
18
19
|
import "./data-display/code/index.mjs";
|
|
19
|
-
import {
|
|
20
|
-
import "./feedback/empty-state/index.mjs";
|
|
21
|
-
import { CellAlign, Table } from "./data-display/table/table.mjs";
|
|
22
|
-
import "./data-display/table/index.mjs";
|
|
23
|
-
import { DataTable, DataTableColumn, DataTableSort } from "./data-display/data-table/data-table.mjs";
|
|
20
|
+
import { Callout } from "./feedback/callout/callout.mjs";
|
|
24
21
|
import "./data-display/data-table/index.mjs";
|
|
25
|
-
import {
|
|
22
|
+
import { Skeleton } from "./feedback/skeleton/skeleton.mjs";
|
|
26
23
|
import "./data-display/heading/index.mjs";
|
|
27
|
-
import {
|
|
24
|
+
import { Spinner } from "./feedback/spinner/spinner.mjs";
|
|
28
25
|
import "./data-display/kbd/index.mjs";
|
|
29
|
-
import {
|
|
26
|
+
import { TextField } from "./form/text-field/text-field.mjs";
|
|
30
27
|
import "./data-display/prose/index.mjs";
|
|
31
|
-
import
|
|
28
|
+
import "./data-display/table/index.mjs";
|
|
29
|
+
import { Grid, GridProps } from "./layout/grid/grid.mjs";
|
|
32
30
|
import "./data-display/tree/index.mjs";
|
|
33
|
-
import {
|
|
31
|
+
import { Separator } from "./layout/separator/separator.mjs";
|
|
34
32
|
import "./feedback/alert/index.mjs";
|
|
35
|
-
import { Callout } from "./feedback/callout/callout.mjs";
|
|
36
33
|
import "./feedback/callout/index.mjs";
|
|
37
|
-
import {
|
|
34
|
+
import { Stack, StackProps } from "./layout/stack/stack.mjs";
|
|
35
|
+
import "./feedback/empty-state/index.mjs";
|
|
38
36
|
import "./feedback/progress/index.mjs";
|
|
39
|
-
import {
|
|
37
|
+
import { Stepper, StepperStep } from "./navigation/stepper/stepper.mjs";
|
|
40
38
|
import "./feedback/skeleton/index.mjs";
|
|
41
|
-
import {
|
|
39
|
+
import { Dialog } from "./overlays/dialog/dialog.mjs";
|
|
42
40
|
import "./feedback/spinner/index.mjs";
|
|
43
|
-
import {
|
|
44
|
-
import { ToastProvider } from "./feedback/toast/provider.mjs";
|
|
41
|
+
import { Drawer } from "./overlays/drawer/drawer.mjs";
|
|
45
42
|
import "./feedback/toast/index.mjs";
|
|
46
|
-
import {
|
|
43
|
+
import { Tree, TreeItem } from "./data-display/tree/tree.mjs";
|
|
47
44
|
import "./form/autocomplete/index.mjs";
|
|
48
|
-
import { Calendar } from "./form/calendar/calendar.mjs";
|
|
49
45
|
import "./form/calendar/index.mjs";
|
|
50
|
-
import {
|
|
46
|
+
import { Code } from "./data-display/code/code.mjs";
|
|
51
47
|
import "./form/checkbox/index.mjs";
|
|
52
|
-
import {
|
|
48
|
+
import { EmptyState } from "./feedback/empty-state/empty-state.mjs";
|
|
53
49
|
import "./form/checkbox-card/index.mjs";
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
50
|
+
import { CellAlign, Table } from "./data-display/table/table.mjs";
|
|
51
|
+
import "./form/checkbox-group/index.mjs";
|
|
52
|
+
import { DataTable, DataTableColumn, DataTableSort } from "./data-display/data-table/data-table.mjs";
|
|
56
53
|
import "./form/color-picker/index.mjs";
|
|
57
|
-
import {
|
|
54
|
+
import { Kbd } from "./data-display/kbd/kbd.mjs";
|
|
58
55
|
import "./form/combobox/index.mjs";
|
|
59
|
-
import {
|
|
60
|
-
import "./form/date-field/index.mjs";
|
|
61
|
-
import { DatePicker } from "./form/date-picker/date-picker.mjs";
|
|
56
|
+
import { Prose } from "./data-display/prose/prose.mjs";
|
|
62
57
|
import "./form/date-picker/index.mjs";
|
|
58
|
+
import { Progress } from "./feedback/progress/progress.mjs";
|
|
63
59
|
import { FileField } from "./form/file-field/index.mjs";
|
|
64
|
-
import {
|
|
60
|
+
import { ToastOptions, useToast } from "./feedback/toast/context.mjs";
|
|
61
|
+
import { ToastProvider } from "./feedback/toast/provider.mjs";
|
|
65
62
|
import "./form/form/index.mjs";
|
|
66
|
-
import {
|
|
63
|
+
import { Autocomplete } from "./form/autocomplete/autocomplete.mjs";
|
|
67
64
|
import "./form/form-control/index.mjs";
|
|
68
|
-
import {
|
|
65
|
+
import { Calendar } from "./form/calendar/calendar.mjs";
|
|
69
66
|
import "./form/number-field/index.mjs";
|
|
70
|
-
import {
|
|
67
|
+
import { CheckboxCard, CheckboxCardOption } from "./form/checkbox-card/checkbox-card.mjs";
|
|
71
68
|
import "./form/password-input/index.mjs";
|
|
72
|
-
import {
|
|
69
|
+
import { CheckboxGroup } from "./form/checkbox-group/checkbox-group.mjs";
|
|
73
70
|
import "./form/radio/index.mjs";
|
|
74
|
-
import {
|
|
71
|
+
import { Checkbox } from "./form/checkbox/checkbox.mjs";
|
|
75
72
|
import "./form/radio-card/index.mjs";
|
|
76
|
-
import {
|
|
73
|
+
import { ColorPicker, ColorPickerSwatch } from "./form/color-picker/color-picker.mjs";
|
|
77
74
|
import "./form/range-slider/index.mjs";
|
|
78
|
-
import {
|
|
75
|
+
import { Combobox, ComboboxSearch } from "./form/combobox/combobox.mjs";
|
|
79
76
|
import "./form/select/index.mjs";
|
|
80
|
-
import {
|
|
77
|
+
import { DatePicker } from "./form/date-picker/date-picker.mjs";
|
|
81
78
|
import "./form/slider/index.mjs";
|
|
82
|
-
import { Switch } from "./form/switch/switch.mjs";
|
|
83
79
|
import "./form/switch/index.mjs";
|
|
84
|
-
import {
|
|
80
|
+
import { FormControl } from "./form/form-control/form-control.mjs";
|
|
85
81
|
import "./form/text-field/index.mjs";
|
|
86
|
-
import {
|
|
82
|
+
import { Form } from "./form/form/form.mjs";
|
|
87
83
|
import "./form/textarea/index.mjs";
|
|
88
|
-
import {
|
|
89
|
-
import { ColorScaleIcon } from "./icons/color-scale.mjs";
|
|
90
|
-
import { GitHubIcon } from "./icons/github-mark.mjs";
|
|
91
|
-
import { Logo, LogoIcon } from "./icons/logo.mjs";
|
|
92
|
-
import { AIIcon, AccessibilityIcon, AlertIcon, AssistantIcon, AtomIcon, BadIcon, BlogIcon, BoringIcon, CheckIcon, ChevronIcon, CloseIcon, CodeXmlIcon, ColorContrastIcon, ColorInfoIcon, CopyIcon, DarkModeIcon, DifficultIcon, EasyIcon, ExternalLinkIcon, FlaskIcon, ForkIcon, FormIcon, FullscreenIcon, GoodIcon, HistoryIcon, HorizontalWritingIcon, InformativeIcon, InterestingIcon, LightModeIcon, LinkIcon, ListIcon, LocationIcon, LockIcon, LockOpenIcon, MailIcon, MinusIcon, MixedColorIcon, NavigationMenuIcon, NewsIcon, PackageIcon, PaletteIcon, PlusIcon, PrepareIcon, PublishDateIcon, RSSIcon, RefreshIcon, SendIcon, ShallowIcon, ShieldCheckIcon, SlideIcon, SparklesIcon, SquircleIcon, SubscribeIcon, TableIcon, TagIcon, UpdateDateIcon, ViewIcon, ViewOffIcon } from "./icons/lucide.mjs";
|
|
93
|
-
import { QiitaIcon } from "./icons/qiita.mjs";
|
|
94
|
-
import { TwitterIcon } from "./icons/twitter.mjs";
|
|
95
|
-
import { VerticalWritingIcon } from "./icons/vertical-writing.mjs";
|
|
96
|
-
import "./icons/index.mjs";
|
|
84
|
+
import { NumberField } from "./form/number-field/number-field.mjs";
|
|
97
85
|
import { GapSize } from "./layout/_shared/gap.mjs";
|
|
86
|
+
import { PasswordInput } from "./form/password-input/password-input.mjs";
|
|
98
87
|
import { PaddingSize } from "./layout/_shared/padding.mjs";
|
|
99
|
-
import {
|
|
88
|
+
import { RadioCard, RadioCardOption } from "./form/radio-card/radio-card.mjs";
|
|
100
89
|
import "./layout/grid/index.mjs";
|
|
90
|
+
import { Radio } from "./form/radio/radio.mjs";
|
|
101
91
|
import { ResizablePanels } from "./layout/resizable-panels/index.mjs";
|
|
102
|
-
import {
|
|
92
|
+
import { RangeSlider } from "./form/range-slider/range-slider.mjs";
|
|
103
93
|
import "./layout/separator/index.mjs";
|
|
104
|
-
import {
|
|
94
|
+
import { Select } from "./form/select/select.mjs";
|
|
105
95
|
import "./layout/stack/index.mjs";
|
|
106
|
-
import {
|
|
96
|
+
import { Slider } from "./form/slider/slider.mjs";
|
|
107
97
|
import "./navigation/anchor/index.mjs";
|
|
98
|
+
import { Switch } from "./form/switch/switch.mjs";
|
|
108
99
|
import { Breadcrumb } from "./navigation/breadcrumb/index.mjs";
|
|
109
|
-
import {
|
|
100
|
+
import { Textarea } from "./form/textarea/textarea.mjs";
|
|
110
101
|
import "./navigation/pagination/index.mjs";
|
|
111
|
-
import { Stepper, StepperStep } from "./navigation/stepper/stepper.mjs";
|
|
112
102
|
import "./navigation/stepper/index.mjs";
|
|
103
|
+
import { Anchor } from "./navigation/anchor/anchor.mjs";
|
|
113
104
|
import { SideNav } from "./navigation/side-nav/index.mjs";
|
|
114
|
-
import {
|
|
105
|
+
import { Pagination } from "./navigation/pagination/pagination.mjs";
|
|
115
106
|
import "./navigation/table-of-contents/index.mjs";
|
|
116
107
|
import { Tabs } from "./navigation/tabs/index.mjs";
|
|
117
|
-
import {
|
|
118
|
-
import "./observers/in-view/index.mjs";
|
|
119
|
-
import { Resize } from "./observers/resize/resize.mjs";
|
|
120
|
-
import "./observers/resize/index.mjs";
|
|
121
|
-
import { CommandPalette, CommandPaletteItem } from "./overlays/command-palette/command-palette.mjs";
|
|
108
|
+
import { TableOfContents, TableOfContentsItem } from "./navigation/table-of-contents/table-of-contents.mjs";
|
|
122
109
|
import "./overlays/command-palette/index.mjs";
|
|
123
110
|
import { ContextMenu } from "./overlays/context-menu/index.mjs";
|
|
124
|
-
import {
|
|
125
|
-
import
|
|
111
|
+
import { CommandPalette, CommandPaletteItem } from "./overlays/command-palette/command-palette.mjs";
|
|
112
|
+
import "./overlays/dialog/index.mjs";
|
|
126
113
|
import "./overlays/drawer/index.mjs";
|
|
127
114
|
import { DropdownMenu } from "./overlays/dropdown-menu/index.mjs";
|
|
128
|
-
import { ListBox } from "./overlays/list-box/
|
|
129
|
-
import
|
|
130
|
-
import "./overlays/
|
|
131
|
-
import { PopoverContentProps, PopoverTriggerProps } from "./overlays/popover/hooks.mjs";
|
|
115
|
+
import { ListBox } from "./overlays/list-box/list-box.mjs";
|
|
116
|
+
import "./overlays/list-box/index.mjs";
|
|
117
|
+
import { PopoverTriggerProps } from "./overlays/popover/hooks.mjs";
|
|
132
118
|
import { Popover } from "./overlays/popover/index.mjs";
|
|
133
|
-
import { UIProvider } from "./providers/ui-provider.mjs";
|
|
134
|
-
import { PortalRootProvider, usePortalRoot } from "./providers/portal-root.mjs";
|
|
135
|
-
import "./providers/index.mjs";
|
|
136
119
|
import { TooltipTriggerProps } from "./overlays/tooltip/tooltip.mjs";
|
|
137
120
|
import { Tooltip } from "./overlays/tooltip/index.mjs";
|
|
138
|
-
|
|
139
|
-
export { AIIcon, AccessibilityIcon, Accordion, Alert, type AlertAction, AlertIcon, Anchor, AssistantIcon, AtomIcon, Autocomplete, Avatar, BadIcon, Badge, type BaseIconProps, BlogIcon, BoringIcon, Breadcrumb, Button, type ButtonRenderItemProps, Calendar, Callout, Card, Carousel, type CellAlign, CheckIcon, Checkbox, CheckboxCard, type CheckboxCardOption, CheckboxGroup, ChevronIcon, ChromeIcon, CloseIcon, Code, CodeXmlIcon, ColorContrastIcon, ColorInfoIcon, ColorPicker, type ColorPickerSwatch, ColorScaleIcon, Combobox, type ComboboxSearch, CommandPalette, type CommandPaletteItem, ContextMenu, CopyButton, CopyIcon, DarkModeIcon, DataTable, type DataTableColumn, type DataTableSort, DateField, DatePicker, Dialog, DifficultIcon, Drawer, DropdownMenu, EasyIcon, EdgeIcon, EmptyState, ExternalLinkIcon, FileField, FirefoxIcon, FlaskIcon, ForkIcon, Form, FormControl, FormIcon, FullscreenIcon, type GapSize, GitHubIcon, GoodIcon, Grid, type GridProps, Heading, HistoryIcon, HorizontalWritingIcon, IconButton, type IconButtonRenderItemProps, type IconButtonTriggerProps, type IconRenderProps, InView, InformativeIcon, InterestingIcon, Kbd, LightModeIcon, LinkIcon, ListBox, ListIcon, LocationIcon, LockIcon, LockOpenIcon, Logo, LogoIcon, MailIcon, MinusIcon, MixedColorIcon, Modal, NavigationMenuIcon, NewsIcon, NumberField, PackageIcon, type PaddingSize, Pagination, PaletteIcon, PasswordInput, PlusIcon, Popover, type PopoverContentProps, type PopoverTriggerProps, PortalRootProvider, PrepareIcon, Progress, Prose, PublishDateIcon, QiitaIcon, RSSIcon, Radio, RadioCard, type RadioCardOption, RangeSlider, RefreshIcon, ResizablePanels, Resize, SafariIcon, Select, SendIcon, Separator, ShallowIcon, ShieldCheckIcon, SideNav, Skeleton, SlideIcon, Slider, SparklesIcon, Spinner, SquircleIcon, Stack, type StackProps, Stepper, type StepperStep, SubscribeIcon, Switch, Table, TableIcon, TableOfContents, type TableOfContentsItem, Tabs, TagIcon, TextField, Textarea, type ToastAction, type ToastOptions, ToastProvider, Toolbar, type ToolbarItemProps, Tooltip, type TooltipTriggerProps, Tree, type TreeItem, TwitterIcon, UIProvider, UpdateDateIcon, VerticalWritingIcon, ViewIcon, ViewOffIcon, usePortalRoot, useToast };
|
|
121
|
+
export { Accordion, Alert, Anchor, Autocomplete, Avatar, Badge, Breadcrumb, Button, Calendar, Callout, Card, type CardRenderAnchorProps, Carousel, type CellAlign, Checkbox, CheckboxCard, type CheckboxCardOption, CheckboxGroup, Code, ColorPicker, type ColorPickerSwatch, Combobox, type ComboboxSearch, CommandPalette, type CommandPaletteItem, ContextMenu, CopyButton, DataTable, type DataTableColumn, type DataTableSort, DatePicker, Dialog, Drawer, DropdownMenu, EmptyState, FileField, Form, FormControl, type GapSize, Grid, type GridProps, Heading, IconButton, Kbd, ListBox, NumberField, type PaddingSize, Pagination, PasswordInput, Popover, type PopoverTriggerProps, Progress, Prose, Radio, RadioCard, type RadioCardOption, RangeSlider, ResizablePanels, Select, Separator, SideNav, Skeleton, Slider, Spinner, Stack, type StackProps, Stepper, type StepperStep, Switch, Table, TableOfContents, type TableOfContentsItem, Tabs, TextField, Textarea, type ToastOptions, ToastProvider, Toolbar, type ToolbarItemProps, Tooltip, type TooltipTriggerProps, Tree, type TreeItem, useToast };
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import { Spinner } from "./feedback/spinner/spinner.mjs";
|
|
2
1
|
import { Button } from "./buttons/button/button.mjs";
|
|
3
|
-
import { ChromeIcon, EdgeIcon, FirefoxIcon, SafariIcon } from "./icons/browsers.mjs";
|
|
4
|
-
import { ColorScaleIcon } from "./icons/color-scale.mjs";
|
|
5
|
-
import { GitHubIcon } from "./icons/github-mark.mjs";
|
|
6
|
-
import { Logo, LogoIcon } from "./icons/logo.mjs";
|
|
7
|
-
import { AIIcon, AccessibilityIcon, AlertIcon, AssistantIcon, AtomIcon, BadIcon, BlogIcon, BoringIcon, CheckIcon, ChevronIcon, CloseIcon, CodeXmlIcon, ColorContrastIcon, ColorInfoIcon, CopyIcon, DarkModeIcon, DifficultIcon, EasyIcon, ExternalLinkIcon, FlaskIcon, ForkIcon, FormIcon, FullscreenIcon, GoodIcon, HistoryIcon, HorizontalWritingIcon, InformativeIcon, InterestingIcon, LightModeIcon, LinkIcon, ListIcon, LocationIcon, LockIcon, LockOpenIcon, MailIcon, MinusIcon, MixedColorIcon, NavigationMenuIcon, NewsIcon, PackageIcon, PaletteIcon, PlusIcon, PrepareIcon, PublishDateIcon, RSSIcon, RefreshIcon, SendIcon, ShallowIcon, ShieldCheckIcon, SlideIcon, SparklesIcon, SquircleIcon, SubscribeIcon, TableIcon, TagIcon, UpdateDateIcon, ViewIcon, ViewOffIcon } from "./icons/lucide.mjs";
|
|
8
|
-
import { QiitaIcon } from "./icons/qiita.mjs";
|
|
9
|
-
import { TwitterIcon } from "./icons/twitter.mjs";
|
|
10
|
-
import { VerticalWritingIcon } from "./icons/vertical-writing.mjs";
|
|
11
|
-
import { Popover } from "./overlays/popover/index.mjs";
|
|
12
|
-
import { Tooltip } from "./overlays/tooltip/index.mjs";
|
|
13
|
-
import { IconButton } from "./buttons/icon-button/icon-button.mjs";
|
|
14
2
|
import { CopyButton } from "./buttons/copy-button/copy-button.mjs";
|
|
15
|
-
import {
|
|
3
|
+
import { IconButton } from "./buttons/icon-button/icon-button.mjs";
|
|
16
4
|
import { Toolbar } from "./buttons/toolbar/index.mjs";
|
|
17
5
|
import { Accordion } from "./data-display/accordion/index.mjs";
|
|
18
6
|
import { Avatar } from "./data-display/avatar/avatar.mjs";
|
|
@@ -20,27 +8,27 @@ import { Badge } from "./data-display/badge/badge.mjs";
|
|
|
20
8
|
import { Card } from "./data-display/card/card.mjs";
|
|
21
9
|
import { Carousel } from "./data-display/carousel/index.mjs";
|
|
22
10
|
import { Code } from "./data-display/code/code.mjs";
|
|
23
|
-
import { Checkbox } from "./form/checkbox/checkbox.mjs";
|
|
24
|
-
import { CheckboxGroup } from "./form/checkbox-group/index.mjs";
|
|
25
|
-
import { EmptyState } from "./feedback/empty-state/empty-state.mjs";
|
|
26
|
-
import { Table } from "./data-display/table/table.mjs";
|
|
27
11
|
import { DataTable } from "./data-display/data-table/data-table.mjs";
|
|
28
12
|
import { Heading } from "./data-display/heading/heading.mjs";
|
|
29
13
|
import { Kbd } from "./data-display/kbd/kbd.mjs";
|
|
30
14
|
import { Prose } from "./data-display/prose/prose.mjs";
|
|
15
|
+
import { Table } from "./data-display/table/table.mjs";
|
|
31
16
|
import { Tree } from "./data-display/tree/tree.mjs";
|
|
32
17
|
import { Alert } from "./feedback/alert/alert.mjs";
|
|
33
18
|
import { Callout } from "./feedback/callout/callout.mjs";
|
|
19
|
+
import { EmptyState } from "./feedback/empty-state/empty-state.mjs";
|
|
34
20
|
import { Progress } from "./feedback/progress/progress.mjs";
|
|
35
21
|
import { Skeleton } from "./feedback/skeleton/skeleton.mjs";
|
|
36
|
-
import {
|
|
22
|
+
import { Spinner } from "./feedback/spinner/spinner.mjs";
|
|
37
23
|
import { ToastProvider } from "./feedback/toast/provider.mjs";
|
|
24
|
+
import { useToast } from "./feedback/toast/context.mjs";
|
|
38
25
|
import { Autocomplete } from "./form/autocomplete/autocomplete.mjs";
|
|
39
26
|
import { Calendar } from "./form/calendar/calendar.mjs";
|
|
27
|
+
import { Checkbox } from "./form/checkbox/checkbox.mjs";
|
|
40
28
|
import { CheckboxCard } from "./form/checkbox-card/checkbox-card.mjs";
|
|
29
|
+
import { CheckboxGroup } from "./form/checkbox-group/checkbox-group.mjs";
|
|
41
30
|
import { ColorPicker } from "./form/color-picker/color-picker.mjs";
|
|
42
31
|
import { Combobox } from "./form/combobox/combobox.mjs";
|
|
43
|
-
import { DateField } from "./form/date-field/date-field.mjs";
|
|
44
32
|
import { DatePicker } from "./form/date-picker/date-picker.mjs";
|
|
45
33
|
import { FileField } from "./form/file-field/index.mjs";
|
|
46
34
|
import { Form } from "./form/form/form.mjs";
|
|
@@ -57,6 +45,7 @@ import { TextField } from "./form/text-field/text-field.mjs";
|
|
|
57
45
|
import { Textarea } from "./form/textarea/textarea.mjs";
|
|
58
46
|
import { Grid } from "./layout/grid/grid.mjs";
|
|
59
47
|
import { ResizablePanels } from "./layout/resizable-panels/index.mjs";
|
|
48
|
+
import { Separator } from "./layout/separator/separator.mjs";
|
|
60
49
|
import { Stack } from "./layout/stack/stack.mjs";
|
|
61
50
|
import { Anchor } from "./navigation/anchor/anchor.mjs";
|
|
62
51
|
import { Breadcrumb } from "./navigation/breadcrumb/index.mjs";
|
|
@@ -65,15 +54,12 @@ import { Stepper } from "./navigation/stepper/stepper.mjs";
|
|
|
65
54
|
import { SideNav } from "./navigation/side-nav/index.mjs";
|
|
66
55
|
import { TableOfContents } from "./navigation/table-of-contents/table-of-contents.mjs";
|
|
67
56
|
import { Tabs } from "./navigation/tabs/index.mjs";
|
|
68
|
-
import { InView } from "./observers/in-view/in-view.mjs";
|
|
69
|
-
import { Resize } from "./observers/resize/resize.mjs";
|
|
70
|
-
import { UIProvider } from "./providers/ui-provider.mjs";
|
|
71
|
-
import { PortalRootProvider, usePortalRoot } from "./providers/portal-root.mjs";
|
|
72
|
-
import { Modal } from "./overlays/modal/modal.mjs";
|
|
73
57
|
import { CommandPalette } from "./overlays/command-palette/command-palette.mjs";
|
|
74
58
|
import { ContextMenu } from "./overlays/context-menu/index.mjs";
|
|
75
|
-
import { Dialog } from "./overlays/dialog/
|
|
59
|
+
import { Dialog } from "./overlays/dialog/dialog.mjs";
|
|
76
60
|
import { Drawer } from "./overlays/drawer/drawer.mjs";
|
|
77
61
|
import { DropdownMenu } from "./overlays/dropdown-menu/index.mjs";
|
|
78
|
-
import { ListBox } from "./overlays/list-box/
|
|
79
|
-
|
|
62
|
+
import { ListBox } from "./overlays/list-box/list-box.mjs";
|
|
63
|
+
import { Popover } from "./overlays/popover/index.mjs";
|
|
64
|
+
import { Tooltip } from "./overlays/tooltip/index.mjs";
|
|
65
|
+
export { Accordion, Alert, Anchor, Autocomplete, Avatar, Badge, Breadcrumb, Button, Calendar, Callout, Card, Carousel, Checkbox, CheckboxCard, CheckboxGroup, Code, ColorPicker, Combobox, CommandPalette, ContextMenu, CopyButton, DataTable, DatePicker, Dialog, Drawer, DropdownMenu, EmptyState, FileField, Form, FormControl, Grid, Heading, IconButton, Kbd, ListBox, NumberField, Pagination, PasswordInput, Popover, Progress, Prose, Radio, RadioCard, RangeSlider, ResizablePanels, Select, Separator, SideNav, Skeleton, Slider, Spinner, Stack, Stepper, Switch, Table, TableOfContents, Tabs, TextField, Textarea, ToastProvider, Toolbar, Tooltip, Tree, useToast };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
2
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
3
|
+
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
6
4
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
7
5
|
import { useWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
6
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
7
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
8
8
|
import resizable_panels_module_default from "./resizable-panels.module.mjs";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useCallback, useId, useMemo, useRef, useState } from "react";
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
border-radius: var(--radius-sm);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
23
|
-
align
|
|
24
|
-
|
|
22
|
+
._7nx_2W_icon {
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
margin-inline-start: calc(var(--spacing) * .5);
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,24 +1,37 @@
|
|
|
1
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
+
import { ExternalLinkIcon } from "../../icons/external-link.mjs";
|
|
1
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
2
|
-
import
|
|
4
|
+
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
5
|
import anchor_module_default from "./anchor.module.mjs";
|
|
4
6
|
import { clsx } from "clsx";
|
|
5
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
8
|
// src/components/navigation/anchor/anchor.tsx
|
|
7
|
-
const
|
|
9
|
+
const EXTERNAL_URL = /^(?:https?:)?[/\\]{2}/iu;
|
|
10
|
+
const defaultRenderAnchor = ({ kind: _kind, children: anchorChildren, ...rest }) => /* @__PURE__ */ jsx("a", {
|
|
8
11
|
...rest,
|
|
9
12
|
children: anchorChildren
|
|
10
13
|
});
|
|
11
14
|
const Anchor = ({ href, children, openInNewTab = false, renderAnchor = defaultRenderAnchor, ...rest }) => {
|
|
12
|
-
const kind = !
|
|
13
|
-
const
|
|
15
|
+
const kind = !EXTERNAL_URL.test(href) && !openInNewTab ? "internal" : "external";
|
|
16
|
+
const className = clsx(anchor_module_default.root, focus_ring_module_default.ringNoBorder);
|
|
14
17
|
const props = kind === "internal" ? {
|
|
15
|
-
className
|
|
18
|
+
className,
|
|
16
19
|
children
|
|
17
20
|
} : {
|
|
18
|
-
className
|
|
21
|
+
className,
|
|
19
22
|
target: "_blank",
|
|
20
23
|
rel: "noopener noreferrer",
|
|
21
|
-
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25
|
+
children,
|
|
26
|
+
/* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: anchor_module_default.icon,
|
|
28
|
+
children: /* @__PURE__ */ jsx(ExternalLinkIcon, { size: "sm" })
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: sr_only_module_default.srOnly,
|
|
32
|
+
children: getMessages().opensInNewTab
|
|
33
|
+
})
|
|
34
|
+
] })
|
|
22
35
|
};
|
|
23
36
|
return renderAnchor({
|
|
24
37
|
...rest,
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
1
|
+
import { AnchorHTMLAttributes, FC, PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
export declare const List: FC<PropsWithChildren<{
|
|
3
3
|
size?: 'sm' | 'md' | 'lg';
|
|
4
4
|
}>>;
|
|
5
5
|
export declare const Item: FC<PropsWithChildren>;
|
|
6
6
|
export declare const Separator: FC;
|
|
7
|
+
type RestProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'children' | 'className' | 'style'>;
|
|
7
8
|
type RenderBreadcrumbAnchorProps<T extends string> = {
|
|
8
9
|
href: NoInfer<T>;
|
|
9
10
|
className: string;
|
|
10
11
|
children: ReactNode;
|
|
11
|
-
};
|
|
12
|
-
export declare const Link: <T extends string>({ href, current, children, renderAnchor }: PropsWithChildren<{
|
|
12
|
+
} & RestProps;
|
|
13
|
+
export declare const Link: <T extends string>({ href, current, children, renderAnchor, ...rest }: PropsWithChildren<{
|
|
13
14
|
href: T;
|
|
15
|
+
/** 今のページ。リンクにせず `<span aria-current="page">` を描き、ほかの属性は付けない。 */
|
|
14
16
|
current?: boolean;
|
|
15
17
|
renderAnchor?: (props: RenderBreadcrumbAnchorProps<T>) => ReactNode;
|
|
16
|
-
}>) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
18
|
+
} & RestProps>) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
17
19
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
2
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
4
4
|
import breadcrumb_module_default from "./breadcrumb.module.mjs";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -36,11 +36,12 @@ const defaultRenderBreadcrumbAnchor = ({ children, ...rest }) => /* @__PURE__ */
|
|
|
36
36
|
...rest,
|
|
37
37
|
children
|
|
38
38
|
});
|
|
39
|
-
const Link = ({ href, current = false, children, renderAnchor = defaultRenderBreadcrumbAnchor }) => current ? /* @__PURE__ */ jsx("span", {
|
|
39
|
+
const Link = ({ href, current = false, children, renderAnchor = defaultRenderBreadcrumbAnchor, ...rest }) => current ? /* @__PURE__ */ jsx("span", {
|
|
40
40
|
"aria-current": "page",
|
|
41
41
|
className: breadcrumb_module_default.current,
|
|
42
42
|
children
|
|
43
43
|
}) : renderAnchor({
|
|
44
|
+
...rest,
|
|
44
45
|
href,
|
|
45
46
|
className: clsx(breadcrumb_module_default.link, focus_ring_module_default.ringNoBorder),
|
|
46
47
|
children
|
|
@@ -6,8 +6,8 @@ type Props = {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
prevLabel?: string;
|
|
8
8
|
nextLabel?: string;
|
|
9
|
-
|
|
9
|
+
label?: string;
|
|
10
10
|
ref?: Ref<HTMLElement>;
|
|
11
|
-
} & Omit<HTMLAttributes<HTMLElement>, 'className' | 'style' | 'onChange' | 'children'>;
|
|
11
|
+
} & Omit<HTMLAttributes<HTMLElement>, 'className' | 'style' | 'onChange' | 'children' | 'aria-label'>;
|
|
12
12
|
export declare const Pagination: FC<Props>;
|
|
13
13
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import { Button } from "../../buttons/button/button.mjs";
|
|
4
|
-
import { ChevronIcon } from "../../icons/
|
|
4
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
5
5
|
import pagination_module_default from "./pagination.module.mjs";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/components/navigation/pagination/pagination.tsx
|
|
8
|
-
const Pagination = ({ totalPages, currentPage, onChange, disabled = false, prevLabel, nextLabel,
|
|
8
|
+
const Pagination = ({ totalPages, currentPage, onChange, disabled = false, prevLabel, nextLabel, label, ref, ...rest }) => {
|
|
9
9
|
const messages = getMessages();
|
|
10
10
|
const safeTotal = Math.max(1, totalPages);
|
|
11
11
|
const safeCurrent = Math.min(Math.max(1, currentPage), safeTotal);
|
|
@@ -13,7 +13,7 @@ const Pagination = ({ totalPages, currentPage, onChange, disabled = false, prevL
|
|
|
13
13
|
const isLast = safeCurrent >= safeTotal;
|
|
14
14
|
return /* @__PURE__ */ jsx("nav", {
|
|
15
15
|
...rest,
|
|
16
|
-
"aria-label":
|
|
16
|
+
"aria-label": label ?? messages.paginationLabel,
|
|
17
17
|
ref,
|
|
18
18
|
children: /* @__PURE__ */ jsxs("div", {
|
|
19
19
|
className: pagination_module_default.row,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChevronIcon } from "../../icons/lucide.mjs";
|
|
2
1
|
import { NAV_LIST_CLASS_NAME, NAV_TITLE_CLASS_NAME, navLinkClassName } from "../../_internal/nav-link.mjs";
|
|
2
|
+
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
3
3
|
import side_nav_module_default from "./side-nav.module.mjs";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
2
3
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import
|
|
4
|
+
import { CheckIcon } from "../../icons/check.mjs";
|
|
4
5
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
|
-
import
|
|
6
|
-
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
6
|
+
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
7
7
|
import stepper_module_default from "./stepper.module.mjs";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { useRef } from "react";
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export declare const Tabs: {
|
|
2
|
-
readonly Root: import("react").FC<
|
|
3
|
-
defaultSelectedId?: string | null;
|
|
4
|
-
selectedId?: string;
|
|
2
|
+
readonly Root: import("react").FC<({
|
|
5
3
|
onChange?: (id: string) => void;
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
} & ({
|
|
5
|
+
selectedId: string;
|
|
6
|
+
defaultSelectedId?: never;
|
|
7
|
+
} | {
|
|
8
|
+
defaultSelectedId: string;
|
|
9
|
+
selectedId?: never;
|
|
10
|
+
})) & {
|
|
11
|
+
children?: import("react").ReactNode | undefined;
|
|
12
|
+
}>;
|
|
8
13
|
readonly List: import("react").FC<import("react").PropsWithChildren<{
|
|
9
14
|
label: string;
|
|
10
15
|
}>>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
|
|
3
|
-
defaultSelectedId?: string | null;
|
|
4
|
-
selectedId?: string;
|
|
2
|
+
type RootProps = PropsWithChildren<{
|
|
5
3
|
onChange?: (id: string) => void;
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
} & ({
|
|
5
|
+
selectedId: string;
|
|
6
|
+
defaultSelectedId?: never;
|
|
7
|
+
} | {
|
|
8
|
+
defaultSelectedId: string;
|
|
9
|
+
selectedId?: never;
|
|
10
|
+
})>;
|
|
11
|
+
export declare const Root: FC<RootProps>;
|
|
8
12
|
export declare const List: FC<PropsWithChildren<{
|
|
9
13
|
label: string;
|
|
10
14
|
}>>;
|
|
@@ -13,4 +17,5 @@ export declare const Tab: FC<PropsWithChildren<{
|
|
|
13
17
|
}>>;
|
|
14
18
|
export declare const Panel: FC<PropsWithChildren<{
|
|
15
19
|
id: string;
|
|
16
|
-
}>>;
|
|
20
|
+
}>>;
|
|
21
|
+
export {};
|